Brightness adjustment method, brightness adjustment device and storage medium

By combining data from the rear ambient light sensor, touch sensor, and front image acquisition sensor, the problem of incorrect brightness adjustment when the front ambient light sensor is blocked is solved, achieving more accurate brightness control, improving user experience, and reducing power consumption.

CN119964523BActive Publication Date: 2026-03-13BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-08
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In existing technologies, incorrect screen brightness adjustment caused by the front ambient light sensor being blocked leads to eye fatigue and increased power consumption.

Method used

Data is collected using a rear ambient light sensor, a touch sensor, and a front image acquisition sensor. By judging the light intensity, touch signal, and average and depth difference of the image brightness, the terminal is controlled to make accurate brightness adjustments.

Benefits of technology

It improves the accuracy of brightness adjustment, enhances the user experience, and reduces power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119964523B_ABST
    Figure CN119964523B_ABST
Patent Text Reader

Abstract

This disclosure relates to a brightness adjustment method, a brightness adjustment device, and a storage medium. The brightness adjustment method includes: responding to a change in light intensity detected by a front-facing ambient light sensor of a terminal, determining data collected by a first sensor in the terminal; and controlling the terminal to adjust its brightness based on the data collected by the first sensor. This disclosure improves the accuracy of terminal screen brightness adjustment and enhances the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the fields of sensors and image processing, and in particular to brightness adjustment methods, brightness adjustment devices and storage media. Background Technology

[0002] The principle behind automatic brightness adjustment in electronic devices such as terminals and tablets is to use an ambient light sensor (ALS) to detect the brightness of the surrounding environment and then automatically adjust the screen brightness based on the detected brightness value. Specifically, when the light sensor detects that the ambient light is dim, the system automatically lowers the screen brightness to reduce eye strain and save power; when the light sensor detects that the ambient light is bright, the system automatically increases the screen brightness to ensure the clarity and visibility of the screen display. This automatic brightness adjustment principle allows users to obtain the best visual experience in different environments.

[0003] In related technologies, when a user touches the area where the front ambient light sensor is located, or when other forms of obstruction cover it, the sensor reading is very low. The automatic brightness algorithm mistakenly interprets this as low ambient light and therefore reduces the screen brightness. When the obstruction is removed, the sensor reading returns to normal, and the automatic brightness algorithm interprets this as increased ambient light and therefore increases the screen brightness. However, the ambient light level remains unchanged throughout this process, and the user is constantly staring at the screen. These constant changes in screen brightness can easily cause eye fatigue and result in a poor user experience. Furthermore, this continuous adjustment increases power consumption. Summary of the Invention

[0004] To overcome the problems existing in the related technologies, this disclosure provides a brightness adjustment method, a brightness adjustment device, and a storage medium.

[0005] According to a first aspect of the present disclosure, a brightness adjustment method is provided, comprising: responding to a change in light intensity detected by a front ambient light sensor of a terminal; determining data collected by a first sensor in the terminal that is different from the front ambient light sensor; and controlling the terminal to adjust its brightness based on the data collected by the first sensor.

[0006] In one embodiment, the first sensor includes at least one of the following: a rear ambient light sensor, a touch sensor, and a front image acquisition sensor; the data acquired by the first sensor includes at least one of the following: a second light intensity, which is the light intensity acquired by the rear ambient light sensor; a touch signal, which is a signal acquired by the touch sensor, representing that a first area is touched, the first area being a set area including the area where the front ambient light sensor is located; an average image brightness, which is the average brightness of the image acquired by the front image acquisition sensor; and an image depth difference, which is the difference between a first pixel value and a second pixel value of the image acquired by the front image acquisition sensor, wherein the first pixel value represents the pixel value corresponding to the pixel with the largest distance value from the front image acquisition sensor, and the second pixel value represents the pixel value corresponding to the pixel with the smallest distance value from the front image acquisition sensor.

[0007] In one embodiment, the first sensor includes a rear ambient light sensor; the step of controlling the terminal to adjust brightness based on the data collected by the first sensor includes: if the difference between a first light intensity and a second light intensity is greater than a first threshold, then maintaining the current brightness unchanged; the first light intensity is the light intensity collected by the front ambient light sensor, and the second light intensity is the light intensity collected by the rear ambient light sensor.

[0008] In one embodiment, the first sensor includes a rear ambient light sensor; controlling the terminal to adjust brightness based on data collected by the first sensor includes: if the difference between a first light intensity and a second light intensity is less than or equal to a first threshold, then acquiring data collected by a second sensor, wherein the second sensor is a sensor different from the rear ambient light sensor, and controlling the terminal to adjust brightness based on the data collected by the second sensor. The first light intensity is the light intensity collected by the front ambient light sensor, and the second light intensity is the light intensity collected by the rear ambient light sensor.

[0009] In one embodiment, the second sensor includes a touch sensor; the step of controlling the terminal to adjust brightness based on the data collected by the second sensor includes: if the touch sensor collects the touch signal, then maintaining the current brightness unchanged; or if the touch sensor does not collect the touch signal, then acquiring data collected by a third sensor, the third sensor being a sensor different from the rear ambient light sensor and the touch sensor, and controlling the terminal to adjust brightness based on the data collected by the third sensor.

[0010] In one embodiment, the third sensor includes a front-facing image acquisition sensor; the step of controlling the terminal to adjust brightness based on the data acquired by the third sensor includes: if the average brightness of the image acquired by the front-facing image acquisition sensor is greater than a second threshold, then maintaining the current brightness unchanged; or if the average brightness of the image acquired by the front-facing image acquisition sensor is less than or equal to the second threshold, then acquiring data acquired by a fourth sensor, and controlling the terminal to adjust brightness based on the data acquired by the fourth sensor.

[0011] In one embodiment, the fourth sensor includes a front-facing image acquisition sensor; the step of controlling the terminal to adjust brightness based on the data acquired by the fourth sensor includes: if the image depth difference of the image acquired by the front-facing image acquisition sensor is less than a third threshold, then the current brightness remains unchanged; or if the image depth difference of the image acquired by the front-facing image acquisition sensor is greater than or equal to the third threshold, then the terminal is controlled to adjust brightness based on the light intensity acquired by the front-facing sensor.

[0012] According to a second aspect of the present disclosure, a brightness adjustment device is provided, comprising a determining unit, configured to determine data collected by a first sensor in the terminal that is different from the front ambient light sensor in response to a change in light intensity detected by a front ambient light sensor of the terminal; and a control unit, configured to control the terminal to adjust brightness based on the data collected by the first sensor.

[0013] In one embodiment, the first sensor includes at least one of the following: a rear ambient light sensor, a touch sensor, and a front image acquisition sensor; the data acquired by the first sensor includes at least one of the following: a second light intensity, which is the light intensity acquired by the rear ambient light sensor; a touch signal, which is a signal acquired by the touch sensor, representing that a first area is touched, the first area being a set area including the area where the front ambient light sensor is located; an average image brightness, which is the average brightness of the image acquired by the front image acquisition sensor; and an image depth difference, which is the difference between a first pixel value and a second pixel value of the image acquired by the front image acquisition sensor, wherein the first pixel value represents the pixel value corresponding to the pixel with the largest distance value from the front image acquisition sensor, and the second pixel value represents the pixel value corresponding to the pixel with the smallest distance value from the front image acquisition sensor.

[0014] In one embodiment, the first sensor includes a rear ambient light sensor; the control unit controls the terminal to adjust brightness based on data collected by the first sensor in the following manner: if the difference between the first light intensity and the second light intensity is greater than a first threshold, the current brightness is kept unchanged; the first light intensity is the light intensity collected by the front ambient light sensor, and the second light intensity is the light intensity collected by the rear ambient light sensor.

[0015] In one embodiment, the first sensor includes a rear ambient light sensor; the control unit controls the terminal to adjust brightness based on data collected by the first sensor in the following manner: if the difference between a first light intensity and a second light intensity is less than or equal to a first threshold, then data collected by a second sensor is acquired. The second sensor is a sensor different from the rear ambient light sensor. Based on the data collected by the second sensor, the control unit controls the terminal to adjust brightness. The first light intensity is the light intensity collected by the front ambient light sensor, and the second light intensity is the light intensity collected by the rear ambient light sensor.

[0016] In one embodiment, the second sensor includes a touch sensor; the control unit controls the terminal to adjust brightness based on the data collected by the second sensor in the following manner: if the touch sensor collects the touch signal, the current brightness remains unchanged; or if the touch sensor does not collect the touch signal, data collected by a third sensor is acquired, the third sensor being a sensor different from the rear ambient light sensor and the touch sensor, and the terminal is controlled to adjust brightness based on the data collected by the third sensor.

[0017] In one embodiment, the third sensor includes a front-facing image acquisition sensor; the control unit controls the terminal to adjust brightness based on the data acquired by the third sensor in the following manner: if the average brightness of the image acquired by the front-facing image acquisition sensor is greater than a second threshold, the current brightness remains unchanged; or if the average brightness of the image acquired by the front-facing image acquisition sensor is less than or equal to the second threshold, data acquired by a fourth sensor is obtained, and the terminal is controlled to adjust brightness based on the data acquired by the fourth sensor.

[0018] In one embodiment, the fourth sensor includes a front-facing image acquisition sensor; the control unit controls the terminal to adjust brightness based on the data acquired by the fourth sensor in the following manner: if the image depth difference of the image acquired by the front-facing image acquisition sensor is less than a third threshold, the current brightness remains unchanged; or if the image depth difference of the image acquired by the front-facing image acquisition sensor is greater than or equal to the third threshold, the control unit controls the terminal to adjust brightness based on the light intensity acquired by the front-facing sensor.

[0019] According to a third aspect of the present disclosure, a brightness adjustment device is provided, comprising: a processor: a memory for storing processor-executable instructions; wherein the processor is configured to: execute the brightness adjustment method described in the first aspect or any embodiment of the first aspect.

[0020] According to a fourth aspect of the present disclosure, a storage medium is provided, the storage medium storing instructions that, when executed by a processor, enable the processor to perform the brightness adjustment method described in the first aspect or any embodiment of the first aspect.

[0021] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: the brightness adjustment of the control terminal is based on the data collected by the front ambient light sensor and the first sensor, avoiding incorrect brightness adjustment through the front ambient light sensor, improving the accuracy of brightness adjustment, and enhancing the user experience.

[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0023] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0024] Figure 1 This is a flowchart illustrating a brightness adjustment method according to an exemplary embodiment.

[0025] Figure 2 This is a flowchart illustrating a method for controlling brightness adjustment using a rear ambient light sensor according to an exemplary embodiment.

[0026] Figure 3 This is a flowchart illustrating yet another method for controlling brightness adjustment using a rear ambient light sensor, according to an exemplary embodiment.

[0027] Figure 4 This is a flowchart illustrating a method for adjusting brightness in a touch sensor control terminal according to an exemplary embodiment.

[0028] Figure 5 This is a flowchart illustrating a method for adjusting brightness in a front-facing image acquisition sensor control terminal according to an exemplary embodiment.

[0029] Figure 6 This is a flowchart illustrating another method for adjusting brightness in a front-facing image acquisition sensor control terminal according to an exemplary embodiment.

[0030] Figure 7 This is a flowchart illustrating a brightness adjustment method according to an exemplary embodiment.

[0031] Figure 8 This is a block diagram illustrating a brightness adjustment device according to an exemplary embodiment.

[0032] Figure 9 This is a block diagram illustrating a device for brightness adjustment according to an exemplary embodiment. Detailed Implementation

[0033] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure.

[0034] The principle behind automatic brightness adjustment in a mobile device is to use an ambient light sensor (ALS) to detect the brightness of the surrounding environment and then automatically adjust the screen brightness based on the detected brightness value. When the light intensity changes, the ambient light sensor transmits the detected light intensity value to the device's processor. The processor calculates an appropriate screen brightness value based on a pre-set brightness adjustment algorithm and adjusts the screen brightness accordingly. Specifically, when the light sensor detects that the ambient light is dim, the system automatically lowers the screen brightness to reduce eye strain and save power. When the light sensor detects that the ambient light is bright, the system automatically increases the screen brightness to ensure the clarity and visibility of the screen display. This automatic brightness adjustment principle allows users to obtain the best visual experience in different environments.

[0035] Ambient light sensors typically come in two types: front-facing and rear-facing. Front-facing ambient light sensors are usually located in front of the device's screen and are primarily used to detect the intensity of ambient light. Based on the detected light intensity, the device can automatically adjust the screen brightness to provide a more comfortable viewing experience under different lighting conditions. Additionally, front-facing ambient light sensors can help adjust the camera's exposure parameters during video calls or when taking selfies to achieve better image quality. Rear-facing ambient light sensors are located on the back of the device and usually work in conjunction with the rear camera. Their main function is to detect the intensity of ambient light when taking photos or recording videos and automatically adjust the camera's exposure parameters based on lighting conditions to achieve better image quality. On some devices, rear-facing ambient light sensors can also be used to achieve more precise white balance settings to improve shooting results.

[0036] With the rise of full-screen displays, the front-facing ambient light sensor in modern devices is typically hidden beneath the screen, usually located at the top of the screen, near the earpiece or camera. When a user touches or otherwise obstructs the area where the ambient light sensor is located, the sensor reading is low. The automatic brightness algorithm mistakenly interprets this as low ambient light and thus lowers the screen brightness. When the obstruction is removed, the sensor reading returns to normal, and the automatic brightness algorithm interprets this as increased ambient light and thus raises the screen brightness. However, the ambient light level remains unchanged throughout this process, and the user is constantly staring at the screen. These constant changes in screen brightness can easily cause eye strain and result in a poor user experience. Furthermore, this continuous adjustment increases power consumption.

[0037] In view of this, this disclosure proposes a brightness adjustment method.

[0038] The brightness adjustment method is described below according to the embodiments of this disclosure.

[0039] Figure 1 This is a flowchart illustrating a brightness adjustment method according to an exemplary embodiment. Figure 1 As shown, the method includes the following.

[0040] In step S11, in response to a change in light intensity detected by the front ambient light sensor of the terminal, the data collected by the first sensor in the terminal is determined.

[0041] In this embodiment of the disclosure, in response to a user using the terminal, when the terminal detects a change in the light intensity of the front ambient light sensor, it collects data from a first sensor in the terminal that is different from the front ambient light sensor.

[0042] In step S12, the control terminal adjusts the brightness based on the data collected by the first sensor.

[0043] In this embodiment of the disclosure, based on data collected from a first sensor in the terminal that differs from the front ambient light sensor, the control terminal performs targeted brightness adjustment. This brightness adjustment may include controlling the terminal to not adjust the brightness or controlling the terminal to brighten or dim the light.

[0044] In this embodiment of the disclosure, the brightness adjustment of the control terminal is based on data collected by multiple sensors, which improves the accuracy of brightness adjustment, enhances the user experience, avoids power consumption caused by misjudgment in brightness adjustment, and reduces the power consumption of the whole device.

[0045] The following describes the sensor and the data collected by the sensor in the embodiments of this disclosure.

[0046] In this embodiment of the disclosure, the first sensor, different from the front ambient light sensor, includes at least one of the following: a rear ambient light sensor, a touch sensor, and a front image acquisition sensor. The rear ambient light sensor is used to acquire the light intensity detected by the rear ambient light sensor. The touch sensor is used to acquire touch signals in the area where the front ambient light sensor is located. The front image acquisition sensor is used to capture images.

[0047] In this embodiment of the disclosure, the data collected by the rear ambient light sensor, the touch sensor, and the front image acquisition sensor includes at least one of the following: a second light intensity, a touch signal, an average image brightness, and an image depth difference. The second light intensity is the light intensity collected by the rear ambient light sensor, that is, the light intensity detected when the rear ambient light sensor is used is the second light intensity. The touch signal is the signal collected by the touch sensor, representing that the first area is touched. The first area is a defined area including the area where the front ambient light sensor is located. It is understood that if a touch signal is present in the area where the front ambient light sensor is located, then the area where the front ambient light sensor is located is touched. If no touch signal is detected in the area where the front ambient light sensor is located, then the area where the front ambient light sensor is located is not touched by an object.

[0048] Furthermore, in this embodiment, the average image brightness can be understood as the average brightness of the image captured by the front-facing image sensor. The front-facing image sensor is activated, an image is captured, and the average brightness of the captured image is calculated as the average image brightness. The image depth difference can be understood as the difference between the first pixel value and the second pixel value of the image captured by the front-facing image sensor. The first pixel value represents the pixel value corresponding to the pixel with the largest distance from the front-facing image sensor, and the second pixel value represents the pixel value corresponding to the pixel with the smallest distance from the front-facing image sensor. A pixel can be understood as the distance of an object in the captured image from the camera.

[0049] In this embodiment, the brightness of the terminal is adjusted by several data collected by the rear ambient light sensor, the touch sensor and the front image acquisition sensor. The automatic brightness adjustment algorithm is optimized to avoid eye discomfort caused by sudden dimming or brightening of the terminal screen.

[0050] The following embodiments of this disclosure describe the control of brightness adjustment by a rear ambient light sensor.

[0051] Figure 2 This is a flowchart illustrating a method for controlling brightness adjustment using a rear ambient light sensor according to an exemplary embodiment. Figure 2 As shown, the method includes the following.

[0052] In step S21, the control terminal adjusts the brightness based on the rear ambient light sensor.

[0053] In this embodiment of the disclosure, in response to detecting a change in the light intensity detected by the front ambient light sensor, the light intensity of the rear ambient light sensor is acquired. The light intensity acquired by the front ambient light sensor is a first light intensity, and the light intensity acquired by the rear ambient light sensor is a second light intensity.

[0054] In step S22, if the difference between the first light intensity and the second light intensity is greater than the first threshold, the current brightness remains unchanged.

[0055] In this embodiment, in response to detecting a first light intensity and a second light intensity, the difference between the first light intensity and the second light intensity is calculated, and a first threshold is set. The first threshold can be understood as the difference between the first light intensity and the second light intensity that satisfies the requirement of not adjusting the brightness of the terminal screen, and can be preset. If the difference between the first light intensity and the second light intensity is greater than the first threshold, it is considered that the front ambient light sensor is blocked by an object, indicating that the current ambient brightness has not changed, and therefore no automatic adjustment of the terminal screen brightness is performed.

[0056] The following embodiments of this disclosure describe the control of brightness adjustment by a rear ambient light sensor.

[0057] Figure 3 This is a flowchart illustrating yet another method for controlling brightness adjustment using a rear ambient light sensor, according to an exemplary embodiment. For example... Figure 3 As shown, the method includes the following.

[0058] In step S31, the control terminal adjusts the brightness based on the data collected by the rear ambient light sensor.

[0059] In step S32, if the difference between the first light intensity and the second light intensity is less than or equal to the first threshold, then the data collected by the second sensor is acquired.

[0060] In this embodiment of the disclosure, if the difference between the first light intensity and the second light intensity is less than or equal to the first threshold, it is considered that there may be an object blocking the light. This may be because the user has placed the phone on a table or other objects such as their hand, which may be blocking the rear ambient light sensor. Based on this, the data collected by the second sensor, which is different from the rear ambient light sensor, is used to continue to control the brightness adjustment of the terminal.

[0061] In this embodiment of the disclosure, the accuracy of brightness adjustment is improved by determining whether the terminal automatically adjusts the brightness based on the data detected by the front ambient light sensor and the rear ambient light sensor.

[0062] The following embodiments of this disclosure describe the brightness adjustment of a touch sensor control terminal.

[0063] Figure 4 This is a flowchart illustrating a method for adjusting brightness in a touch sensor-controlled terminal according to an exemplary embodiment. Figure 4 As shown, the method includes the following.

[0064] In step S41, the brightness of the control terminal is adjusted based on the touch sensor.

[0065] In this embodiment of the present disclosure, in response to the difference between the first light intensity and the second light intensity being less than or equal to the first threshold, a second sensor is acquired, namely a sensor different from the rear ambient light sensor, namely a touch sensor, and further judgment is made based on the data collected by the touch sensor. The touch sensor is used to collect touch signals and determine whether there are fingers or other objects obstructing the area of ​​the front ambient light sensor.

[0066] In step S42a, if the touch sensor detects a touch signal, the current brightness remains unchanged.

[0067] In this embodiment of the present disclosure, if the touch sensor collects a touch signal, it is assumed that the front ambient light sensor is blocked by a finger and the ambient brightness does not change, so the terminal does not adjust the screen brightness.

[0068] In step S42b, if the touch sensor does not collect a touch signal, the data collected by the third sensor is acquired.

[0069] In this embodiment of the disclosure, if the touch sensor does not collect a touch signal, it is assumed that there is no finger obstruction, and the data collected by the third sensor continues to be collected. The third sensor can be understood as a sensor different from the rear ambient light sensor and the touch sensor. The third sensor is used to continue to determine whether there is obstruction by other objects in order to control the brightness adjustment of the terminal screen.

[0070] In one example, in response to a change in light intensity detected by the front ambient light sensor, a touch signal collected by the touch sensor is acquired. If the touch sensor acquires a touch signal, it is assumed that the front ambient light sensor is blocked by a finger, the ambient brightness remains unchanged, and the terminal does not adjust the screen brightness. If the touch sensor does not acquire a touch signal, data from a third sensor—a sensor different from the rear ambient light sensor and the touch sensor—is acquired to determine whether there is any obstruction from other objects, and the terminal's screen brightness is then adjusted accordingly.

[0071] In this embodiment, the brightness is adjusted based on data collected by the rear ambient light sensor and the touch sensor, which improves the user experience and reduces power consumption.

[0072] The following embodiments of this disclosure describe the brightness adjustment of the front-view image acquisition sensor control terminal.

[0073] Figure 5 This is a flowchart illustrating a method for adjusting brightness in a front-facing image acquisition sensor control terminal according to an exemplary embodiment. Figure 5 As shown, the method includes the following.

[0074] In step S51, the brightness of the control terminal is adjusted based on the front image acquisition sensor.

[0075] In this embodiment of the disclosure, if the touch sensor does not collect a touch signal, the front image acquisition sensor is activated to capture an image and calculate the average brightness of the image, and the average brightness is determined as the average brightness value of the image.

[0076] In step S52a, if the average image brightness is greater than the second threshold, the current brightness remains unchanged.

[0077] In this embodiment of the disclosure, if the average image brightness is greater than a second threshold, it is considered that the front ambient light sensor is blocked, that is, the brightness of the front image acquisition sensor is normal and the ambient brightness has not changed, so no screen brightness adjustment is performed. The second threshold is determined based on a predefined value.

[0078] In step S52b, if the average image brightness is less than or equal to the second threshold, the data collected by the third sensor is acquired.

[0079] In this embodiment of the disclosure, if the average image brightness is less than or equal to the second threshold, then based on the data collected by the third sensor, that is, other sensors different from the rear ambient light sensor and the touch sensor, namely the front image acquisition sensor, depth detection is performed on the image captured by the front image acquisition sensor to determine whether the front image acquisition sensor is also blocked by an object, and the terminal is controlled to adjust the brightness.

[0080] In one example, in response to a change in light intensity detected by the front ambient light sensor, the average brightness of the image captured by the front image sensor is obtained. If the average brightness is greater than a second threshold, the front ambient light sensor is considered to be obstructed, meaning the front image sensor brightness is normal and the ambient brightness is unchanged, and no screen brightness adjustment is performed. If the average brightness is less than or equal to the second threshold, depth detection is performed based on data from a third sensor (other than the rear ambient light sensor and touch sensor, i.e., the front image sensor) to determine whether the front image sensor is also obstructed by an object, and the terminal is then controlled to adjust the brightness.

[0081] In another example, in response to a change in light intensity detected by the front ambient light sensor, a touch signal collected by the touch sensor is acquired. If the touch sensor collects a touch signal, it is assumed that the front ambient light sensor is blocked by a finger, the ambient brightness remains unchanged, and the terminal does not adjust the screen brightness. If the touch sensor does not collect a touch signal, the average brightness of the image captured by the third sensor, i.e., the image captured by the front image sensor, is acquired. If the average image brightness is greater than a second threshold, it is assumed that the front ambient light sensor is blocked, i.e., the brightness of the front image sensor is normal, the ambient brightness remains unchanged, and the screen brightness is not adjusted. If the average image brightness is less than or equal to the second threshold, the image captured by the front image sensor is acquired, depth detection is performed based on the image captured by the front image sensor, it is determined whether the front image sensor is also blocked by an object, and the terminal is controlled to adjust the brightness.

[0082] In this embodiment of the disclosure, based on the average brightness of the image captured by the front image acquisition sensor, it can be determined whether the front ambient light sensor is blocked, which increases the accuracy of brightness adjustment, ensures an improved user experience, and reduces the power consumption of the terminal.

[0083] The following embodiments of this disclosure describe the brightness adjustment of the front-view image acquisition sensor control terminal.

[0084] Figure 6 This is a flowchart illustrating another method for adjusting brightness in a front-facing image acquisition sensor control terminal, according to an exemplary embodiment. For example... Figure 6 As shown, the method includes the following.

[0085] In step S61, the brightness of the control terminal is adjusted based on the front image acquisition sensor.

[0086] In this embodiment, when the average image brightness is less than or equal to a second threshold, the image is input into a depth detection network to detect the image depth. Based on the image depth difference, the terminal is controlled to adjust the brightness. The image depth difference can be understood as the difference between the first pixel value and the second pixel value of the image acquired by the front-facing image sensor. The first pixel value represents the pixel value corresponding to the pixel with the largest distance from the front-facing image sensor, and the second pixel value represents the pixel value corresponding to the pixel with the smallest distance from the front-facing image sensor.

[0087] In step S62a, if the image depth difference is less than the third threshold, the current brightness remains unchanged.

[0088] In this embodiment of the disclosure, if the image depth difference is less than a third threshold, it is considered that the front ambient light sensor is blocked, the current ambient brightness has not changed, and no screen brightness adjustment is performed. The third threshold is determined based on a predefined value.

[0089] In step S62b, if the image depth difference is greater than or equal to the third threshold, the control terminal adjusts the brightness based on the light intensity collected by the front sensor.

[0090] In this embodiment of the disclosure, if the detected image depth difference is greater than or equal to the third threshold, it is considered that the current ambient brightness has changed, and the terminal adjusts the brightness to reduce the screen brightness normally.

[0091] In one example, in response to a change in light intensity detected by the front ambient light sensor, the image depth difference of the image captured by the front image acquisition sensor is obtained. If the image depth difference is less than a third threshold, it is assumed that the front ambient light sensor is blocked and the current ambient brightness has not changed, so no screen brightness adjustment is performed. If the image depth difference is greater than or equal to the third threshold, the control terminal adjusts the brightness based on the light intensity acquired by the front sensor.

[0092] In another example, in response to a change in light intensity detected by the front ambient light sensor, a touch signal collected by the touch sensor is acquired. If the touch sensor acquires a touch signal, it is assumed that the front ambient light sensor is blocked by a finger, the ambient brightness remains unchanged, and the terminal does not adjust the screen brightness. If the touch sensor does not acquire a touch signal, the average brightness of the image captured by the third sensor (i.e., the image captured by the front image sensor) is acquired. If the average image brightness is greater than a second threshold, it is assumed that the front ambient light sensor is blocked, meaning the front image sensor brightness is normal and the ambient brightness remains unchanged, and no screen brightness adjustment is performed. If the average image brightness is less than or equal to the second threshold, the image depth difference of the image captured by the front image sensor is acquired. If the image depth difference is less than a third threshold, it is assumed that the front ambient light sensor is blocked, the current ambient brightness remains unchanged, and no screen brightness adjustment is performed. If the image depth difference is greater than or equal to the third threshold, the terminal adjusts the brightness based on the light intensity acquired by the front sensor.

[0093] In another example, in response to a detected change in light intensity detected by the front ambient light sensor, the average brightness of the image captured by the front image sensor is obtained from a third sensor. If the average brightness is greater than a second threshold, the front ambient light sensor is considered to be blocked, meaning the front image sensor brightness is normal and the ambient brightness is unchanged, so no screen brightness adjustment is performed. If the average brightness is less than or equal to the second threshold, the image depth difference of the image captured by the front image sensor is obtained. If the image depth difference is less than a third threshold, the front ambient light sensor is considered to be blocked, the current ambient brightness is unchanged, and no screen brightness adjustment is performed. If the image depth difference is greater than or equal to the third threshold, the control terminal adjusts the brightness based on the light intensity collected by the front sensor.

[0094] In this embodiment of the disclosure, the process of reducing screen brightness when the front ambient light sensor is blocked and increasing screen brightness after the blockage is removed, which causes eye damage, is avoided, thus improving the user experience.

[0095] The brightness adjustment method is described below according to the embodiments of this disclosure.

[0096] Figure 7 This is a flowchart illustrating a brightness adjustment method according to an exemplary embodiment. Figure 7 As shown, the method includes the following.

[0097] In this embodiment, a decrease in the light intensity of the front ambient light sensor is detected, and the light intensity of the rear ambient light sensor is obtained. If the difference between the light intensities of the front and rear ambient light sensors is greater than a first threshold, it is considered that the front ambient light sensor is blocked and the ambient brightness remains unchanged, so no automatic brightness adjustment is performed. If the difference between the light intensities of the front and rear ambient light sensors is less than or equal to the first threshold, the touch sensor judgment is required to prevent the user from placing the terminal on a table or blocking the rear ambient light sensor with their hand.

[0098] In this embodiment, a touch sensor acquires a touch signal and determines whether there is any obstruction, such as a finger, in the area where the front ambient light sensor is located. If the touch sensor acquires a touch signal, it is assumed that the front ambient light sensor is obstructed, the ambient brightness remains unchanged, and no screen brightness adjustment is performed. If the touch sensor does not acquire a touch signal, the process proceeds to the front image acquisition sensor to determine whether the obstruction is caused by other objects, such as objects other than a hand.

[0099] In this embodiment, the front-facing image acquisition sensor is activated to capture an image, and the average brightness of the image is calculated. If the average image brightness is greater than a second threshold, it is assumed that the front-facing ambient light sensor is blocked, the ambient brightness remains unchanged, and no screen brightness adjustment is performed. If the average image brightness is less than or equal to the second threshold, the image depth is assessed to determine whether the front-facing image acquisition sensor is also blocked.

[0100] In this embodiment, the captured image is input into a depth detection network to detect the image depth. If the image depth difference is less than a third threshold, it is considered that the front ambient light sensor is blocked, the ambient brightness remains unchanged, and no screen brightness adjustment is performed. If the image depth difference is greater than or equal to the third threshold, the control terminal normally reduces the screen brightness.

[0101] In this embodiment, the screen brightness is reduced when the front ambient light sensor is obstructed and then increased again after the obstruction is removed, avoiding the eye strain caused by the user staring at the screen during the switching process. It also avoids eye discomfort from reduced brightness followed by glare from increased brightness. Furthermore, it reduces power consumption caused by screen brightness switching, thus lowering overall device power consumption. The increased power consumption during the switching process caused by the automatic brightness adjustment algorithm reducing screen brightness when the front ambient light sensor is obstructed and then increasing it again after the obstruction is removed is minimized.

[0102] Based on the same concept, this disclosure also provides a brightness adjustment device 100.

[0103] It is understood that the brightness adjustment device 100 provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.

[0104] Figure 8 This is a block diagram illustrating a brightness adjustment device 100 according to an exemplary embodiment. (Refer to...) Figure 8 The device includes a determining unit 101 and a control unit 102.

[0105] The determining unit 101 is used to determine data collected by a first sensor in the terminal that is different from the front ambient light sensor in response to a change in light intensity detected by the front ambient light sensor of the terminal.

[0106] The control unit 102 is used to control the terminal to adjust the brightness based on the data collected by the first sensor.

[0107] In one embodiment, a rear ambient light sensor, a touch sensor, and a front image acquisition sensor are included. The data acquired by the first sensor includes at least one of the following: a second light intensity, which is the light intensity acquired by the rear ambient light sensor; a touch signal, which is a signal acquired by the touch sensor, representing that a first area is touched, and the first area is a set area including the area where the front ambient light sensor is located; an average image brightness, which is the average brightness of the image acquired by the front image acquisition sensor; and an image depth difference, which is the difference between a first pixel value and a second pixel value of the image acquired by the front image acquisition sensor, where the first pixel value represents the pixel value corresponding to the pixel with the largest distance value from the front image acquisition sensor, and the second pixel value represents the pixel value corresponding to the pixel with the smallest distance value from the front image acquisition sensor.

[0108] In one embodiment, the first sensor includes a rear ambient light sensor; the control unit 102 controls the terminal to adjust the brightness based on the data collected by the first sensor in the following manner: if the difference between the first light intensity and the second light intensity is greater than a first threshold, the current brightness remains unchanged; the first light intensity is the light intensity collected by the front ambient light sensor, and the second light intensity is the light intensity collected by the rear ambient light sensor; the first light intensity is the light intensity collected by the front ambient light sensor, and the second light intensity is the light intensity collected by the rear ambient light sensor.

[0109] In one embodiment, the first sensor includes a rear ambient light sensor; the control unit 102 controls the terminal to adjust brightness based on data collected by the first sensor in the following manner: if the difference between a first light intensity and a second light intensity is less than or equal to a first threshold, then data collected by a second sensor is acquired. The second sensor is a sensor different from the rear ambient light sensor. Based on the data collected by the second sensor, the control terminal adjusts brightness. The first light intensity is the light intensity collected by the front ambient light sensor, and the second light intensity is the light intensity collected by the rear ambient light sensor.

[0110] In one embodiment, the second sensor includes a touch sensor; the control unit 102 controls the terminal to adjust the brightness based on the data collected by the second sensor in the following manner: if the touch sensor collects a touch signal, the current brightness remains unchanged; or if the touch sensor does not collect a touch signal, the control unit acquires data collected by a third sensor, which is a sensor different from the rear ambient light sensor and the touch sensor, and controls the terminal to adjust the brightness based on the data collected by the third sensor.

[0111] In one embodiment, the third sensor includes a front-facing image acquisition sensor; the control unit 102 controls the terminal to adjust the brightness based on the data acquired by the third sensor in the following manner: if the average brightness of the image acquired by the front-facing image acquisition sensor is greater than a second threshold, the current brightness remains unchanged; or if the average brightness of the image acquired by the front-facing image acquisition sensor is less than or equal to the second threshold, the control unit acquires the data acquired by the fourth sensor and controls the terminal to adjust the brightness based on the data acquired by the fourth sensor.

[0112] In one embodiment, the fourth sensor includes a front-facing image acquisition sensor; the control unit 102 controls the terminal to adjust the brightness based on the data acquired by the fourth sensor in the following manner: if the image depth difference of the image acquired by the front-facing image acquisition sensor is less than a third threshold, the current brightness remains unchanged; or if the image depth difference of the image acquired by the front-facing image acquisition sensor is greater than or equal to the third threshold, the control terminal adjusts the brightness based on the light intensity acquired by the front-facing sensor.

[0113] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0114] Figure 9 This is a block diagram illustrating a device 200 for brightness adjustment according to an exemplary embodiment. Device 200 can be provided as a terminal. For example, device 200 can be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.

[0115] Reference Figure 9 The device 200 may include one or more of the following components: processing component 202, memory 204, power component 206, multimedia component 208, audio component 210, input / output (I / O) interface 212, sensor component 214, and communication component 216.

[0116] Processing component 202 typically controls the overall operation of device 200, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 202 may include one or more modules to facilitate interaction between processing component 202 and other components. For example, processing component 202 may include a multimedia module to facilitate interaction between multimedia component 208 and processing component 202.

[0117] Memory 204 is configured to store various types of data to support the operation of device 200. Examples of such data include instructions for any application or method operating on device 200, contact data, phonebook data, messages, pictures, videos, etc. Memory 204 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 storage, flash memory, magnetic disk, or optical disk.

[0118] The power supply component 206 provides power to the various components of the device 200. The power supply component 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 200.

[0119] Multimedia component 208 includes a screen that provides an output interface between the device 200 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 208 includes a front-facing camera and / or a rear-facing camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0120] Audio component 210 is configured to output and / or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when device 200 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 204 or transmitted via communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.

[0121] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0122] Sensor assembly 214 includes one or more sensors for providing status assessments of various aspects of device 200. For example, sensor assembly 214 may detect the on / off state of device 200, the relative positioning of components such as the display and keypad of device 200, changes in the position of device 200 or a component of device 200, the presence or absence of user contact with device 200, the orientation or acceleration / deceleration of device 200, and temperature changes of device 200. Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 214 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0123] Communication component 216 is configured to facilitate wired or wireless communication between device 200 and other devices. Device 200 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 216 also includes a near-field communication (NFC) module to facilitate short-range communication. 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.

[0124] In an exemplary embodiment, the apparatus 200 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 methods described above.

[0125] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, which can be executed by a processor 220 of the device 200 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0126] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0127] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.

[0128] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.

[0129] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0130] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.

[0131] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A luminance adjustment method characterized by, The method comprises: in response to a change in light intensity detected by a front-facing ambient light sensor of a terminal, determining data collected by a first sensor in the terminal; based on the data collected by the first sensor, controlling the terminal to perform brightness adjustment; the first sensor comprises a front-facing image collection sensor; the data collected by the first sensor comprises an image depth difference value, the image depth difference value being a difference value between a first pixel value and a second pixel value of an image collected by the front-facing image collection sensor, the first pixel value representing a pixel value corresponding to a pixel point farthest from the front-facing image collection sensor, and the second pixel value representing a pixel value corresponding to a pixel point closest to the front-facing image collection sensor; the brightness adjustment based on the data collected by the first sensor comprises: if the image depth difference value of the image collected by the front-facing image collection sensor is less than a third threshold value, the current brightness is maintained; or if the image depth difference value of the image collected by the front-facing image collection sensor is greater than or equal to the third threshold value, the terminal is controlled to perform brightness adjustment based on the light intensity collected by the front-facing ambient light sensor.

2. The method of claim 1, wherein, The first sensor further comprises at least one of the following: a rear-facing ambient light sensor and a touch sensor; Before the terminal is controlled to perform brightness adjustment based on the light intensity collected by the front-facing ambient light sensor, the data collected by the first sensor further comprises at least one of the following: a second light intensity, the second light intensity being a light intensity collected by the rear-facing ambient light sensor; a touch signal, the touch signal being a signal collected by the touch sensor and representing that a first region is touched, the first region being a set region including a region where the front-facing ambient light sensor is located; an image brightness average value, the image brightness average value being an average brightness of an image collected by the front-facing image collection sensor.

3. The method of claim 2, wherein, The first sensor comprises a rear-facing ambient light sensor; the brightness adjustment based on the data collected by the first sensor comprises: if a difference value between the first light intensity and the second light intensity is greater than a first threshold value, the current brightness is maintained; the first light intensity is a light intensity collected by the front-facing ambient light sensor, and the second light intensity is a light intensity collected by the rear-facing ambient light sensor.

4. The method of claim 3, wherein, The first sensor comprises a rear-facing ambient light sensor; the brightness adjustment based on the data collected by the first sensor comprises: if a difference value between the first light intensity and the second light intensity is less than or equal to a first threshold value, data collected by a second sensor is obtained, the second sensor being different from the rear-facing ambient light sensor, and the terminal is controlled to perform brightness adjustment based on the data collected by the second sensor, the second sensor comprising a touch sensor; the first light intensity is a light intensity collected by the front-facing ambient light sensor, and the second light intensity is a light intensity collected by the rear-facing ambient light sensor.

5. The method of claim 4, wherein, The second sensor comprises a touch sensor; The second sensor is a front image acquisition sensor different from the back ambient light sensor and the touch sensor. If the touch signal is collected by the touch sensor, the current brightness is kept unchanged; or If the touch signal is not collected by the touch sensor, data collected by a front image acquisition sensor is acquired, the front image acquisition sensor is a sensor different from the back ambient light sensor and the touch sensor, and the terminal is controlled to adjust the brightness based on the data collected by the front image acquisition sensor.

6. The method of claim 5, wherein, The second sensor is a front image acquisition sensor different from the back ambient light sensor and the touch sensor. If the image brightness average value of the image collected by the front image acquisition sensor is greater than a second threshold value, the current brightness is kept unchanged; or If the image brightness average value of the image collected by the front image acquisition sensor is less than or equal to the second threshold value, data collected by a front image acquisition sensor is acquired, and the terminal is controlled to adjust the brightness based on the data collected by the front image acquisition sensor.

7. A luminance adjusting device, characterized by comprising: Comprise: A determination unit is configured to determine data collected by a first sensor different from the front ambient light sensor in the terminal in response to a change in light intensity detected by a front ambient light sensor of the terminal; A control unit is configured to control the terminal to adjust the brightness based on the data collected by the first sensor; The first sensor comprises a front image acquisition sensor; The data collected by the first sensor comprises an image depth difference value, the image depth difference value being a difference value between a first pixel value and a second pixel value of an image collected by the front image acquisition sensor, the first pixel value representing a pixel value corresponding to a pixel point with a maximum distance value from the front image acquisition sensor, and the second pixel value representing a pixel value corresponding to a pixel point with a minimum distance value from the front image acquisition sensor; The control unit is configured to keep the current brightness unchanged if the image depth difference value of the image collected by the front image acquisition sensor is less than a third threshold value, or control the terminal to adjust the brightness based on the light intensity collected by the front ambient light sensor if the image depth difference value of the image collected by the front image acquisition sensor is greater than or equal to the third threshold value.

8. The apparatus of claim 7, wherein, The first sensor further comprises at least one of the following: a back ambient light sensor and a touch sensor; Before the control unit controls the terminal to adjust the brightness based on the light intensity collected by the front ambient light sensor, the data collected by the first sensor further comprises at least one of the following: A second light intensity, the second light intensity being a light intensity collected by the back ambient light sensor; A touch signal, the touch signal being a signal collected by the touch sensor and representing that a first region is touched, the first region being a set region including a region where the front ambient light sensor is located; An image brightness average value, the image brightness average value being an average brightness of an image collected by the front image acquisition sensor.

9. A luminance adjusting device, characterized by comprising: Comprise: A processor: A memory for storing processor-executable instructions; The processor is configured to perform the brightness adjustment method in any one of claims 1 to 6.

10. A storage medium, characterized by The storage medium has instructions stored therein, and when the instructions in the storage medium are executed by the processor, the processor is enabled to perform the brightness adjustment method in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and system for controlling screen luminance

    CN106652922A

  • Photographing method, mobile terminal and computer readable storage medium

    CN108495056A