Screen brightness adjusting method and device, electronic equipment and storage medium
By adjusting the screen brightness based on the light intensity of the ambient light field when the device is in an unmoved state, the problem of inaccurate brightness adjustment caused by the angle limit of the field of view of the light sensor is solved, and the user's visual experience is improved.
Patent Information
- Application Number
- CN202311260211.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, the field of view angle limitation of the light sensor makes it impossible to accurately reflect the ambient light field, especially when the equipment posture changes, resulting in inaccurate screen brightness adjustment, affecting the user's visual experience.
By acquiring the movement data, whether the device is in a moving state, the screen brightness is adjusted based on the light intensity of the ambient light field, which includes the light intensity within a preset range centered on the device.
It effectively avoids unnecessary screen brightness adjustment when the equipment posture changes but the ambient light remains unchanged, improves the user's visual experience, and ensures the accuracy of brightness adjustment by updating the ambient light field in real time.
Smart Images

Figure CN119724110A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a screen brightness adjustment method, device, electronic device and storage medium. Background Art
[0002] At present, many electronic devices have an automatic backlight function, that is, many electronic devices can automatically adjust the screen brightness. The automatic backlight function means: a light sensor is installed on the front or back of the screen, the light sensor collects the current light intensity, and then adjusts the backlight intensity according to the light intensity to achieve screen brightness adjustment. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a screen brightness adjustment method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a screen brightness adjustment method is provided, the method comprising:
[0005] Acquiring movement data, where the movement data is used to indicate whether the electronic device is in a moving state;
[0006] When the electronic device is in a non-moving state, the screen brightness is adjusted based on an ambient light field, where the ambient light field includes the light intensity of ambient light within a preset range centered on the electronic device.
[0007] In some embodiments, adjusting screen brightness based on the ambient light field includes:
[0008] Determine a change in the light sensing direction of the light sensor within a preset time period, wherein the start time point of the preset time period is the time point of acquiring the movement data, and the light sensing direction is a direction perpendicular to the screen of the electronic device and pointing above the screen;
[0009] When the change amount is less than a preset threshold, updating the ambient light field;
[0010] Adjust screen brightness based on the updated ambient light field.
[0011] In some embodiments, updating the ambient light field includes:
[0012] Acquiring a first light intensity through the light sensor;
[0013] Based on the first light intensity, each light intensity in the ambient light field is updated to obtain an updated ambient light field.
[0014] In some embodiments, adjusting the screen brightness based on the updated ambient light field includes:
[0015] The screen brightness is adjusted based on the maximum light intensity in the updated ambient light field.
[0016] In some embodiments, the ambient light field includes a plurality of sub-ambient light fields, and after determining the change amount of the light sensing direction of the light sensor within the first time period, the method further includes:
[0017] When the change amount is greater than or equal to the preset threshold, determining the current light sensing direction of the light sensor;
[0018] The screen brightness is adjusted based on the target sub-ambient light field pointed to by the current light sensing direction.
[0019] In some embodiments, adjusting the screen brightness based on the target sub-ambient light field pointed to by the current light sensing direction includes:
[0020] Acquiring a second light intensity through the light sensor;
[0021] When the second light intensity is greater than the maximum light intensity in the target sub-ambient light field, updating the target sub-ambient light field;
[0022] The screen brightness is adjusted based on the updated target sub-ambient light field.
[0023] In some embodiments, adjusting the screen brightness based on the updated target sub-ambient light field includes:
[0024] The screen brightness is adjusted based on the maximum light intensity in the updated target sub-ambient light field and the at least one sub-ambient light field that has not been updated.
[0025] In some embodiments, determining the change in the light sensing direction of the light sensor within a preset time period includes:
[0026] Within the preset time period, a plurality of posture data are acquired through a posture sensor, wherein the posture data are used to characterize the posture of the electronic device;
[0027] Based on each of the posture data, determining the light sensing direction corresponding to each of the posture data;
[0028] The variation is determined based on the angle difference between each two of the light sensing directions.
[0029] In some embodiments, after acquiring the movement data, the method further includes:
[0030] When the electronic device is in a mobile state, the screen brightness is adjusted based on the current third light intensity.
[0031] In some embodiments, the method further comprises:
[0032] When the electronic device is in a moving state, the ambient light field is reset.
[0033] In some embodiments, obtaining the mobile data includes:
[0034] The movement data is acquired through a pedometer sensor, and the movement data includes the number of steps.
[0035] According to a second aspect of an embodiment of the present disclosure, a screen brightness adjustment device is provided, the device comprising:
[0036] A mobile data acquisition module is configured to acquire mobile data, where the mobile data is used to indicate whether the electronic device is in a mobile state;
[0037] The screen brightness adjustment module is configured to adjust the screen brightness based on the ambient light field when the electronic device is in a non-moving state, wherein the ambient light field includes the light intensity of the ambient light within a preset range centered on the electronic device.
[0038] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0039] processor;
[0040] a memory for storing processor-executable instructions;
[0041] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure.
[0042] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.
[0043] The above method of the present disclosure has the following beneficial effects:
[0044] The method provided by the embodiment of the present disclosure obtains movement data, and the movement data is used to characterize whether the user is in a moving state. When the user is in a non-moving state, the screen brightness is adjusted based on the ambient light field, and the ambient light field includes the light intensity of the ambient light within a preset range centered on the electronic device. The user is in a non-moving state, which means that the user's current environment has not changed, the ambient light perceived by the user's eyes is still the light in the current environment, and the ambient light field is still the ambient light field in the current environment. Therefore, the screen brightness is adjusted based on the ambient light field to avoid adjusting the screen brightness when the screen orientation changes but the ambient light remains unchanged, thereby improving the user's viewing experience.
[0045] 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
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0047] Figure 1 is a schematic diagram showing an application scenario according to an exemplary embodiment;
[0048] Figure 2 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment;
[0049] Figure 3 is a flow chart of another method for adjusting screen brightness according to an exemplary embodiment;
[0050] Figure 4 is a flow chart of another method for adjusting screen brightness according to an exemplary embodiment;
[0051] Figure 5 is a schematic diagram of an ambient light field according to an exemplary embodiment;
[0052] Figure 6 is a flow chart of another method for adjusting screen brightness according to an exemplary embodiment;
[0053] Figure 7 is a block diagram of a screen brightness adjustment device according to an exemplary embodiment;
[0054] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0055] 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 invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0056] In the related art, the screen brightness is usually adjusted directly according to the light intensity collected by the light sensor. However, the light sensor is limited by the field of view angle, which means it can only reflect a part of the light in the environment, while the human eye's perception of ambient light is omnidirectional, and the human eye has a wider field of view and sensitivity. Therefore, directly relying on the light sensor cannot reflect the ambient light field well. For example, the ambient light field remains unchanged, but the electronic device is flipped. In this case, the light intensity collected by the light sensor when the electronic device is flipped may change, thereby adjusting the screen brightness when the ambient light field does not change, resulting in a poor viewing experience for the user.
[0057] For example, see Figure 1 The schematic diagram of the application scenario shown in the figure shows that in a fixed environment, the ambient light is in a relatively static state. However, when the user uses the mobile phone, the posture of the mobile phone will keep changing, and the field of view of the light sensor will also change, resulting in different light intensities collected by the light sensor in different fields of view. However, the ambient light perceived by the human eye remains unchanged.
[0058] The disclosed embodiment provides a screen brightness adjustment solution based on the ambient light field, which adjusts the screen brightness according to whether the environment in which the user is located changes.
[0059] The method provided in the embodiment of the present disclosure is executed by an electronic device, which may be a mobile phone, a tablet computer, a laptop computer, a vehicle-mounted terminal, or other device with an automatic backlight function.
[0060] Figure 2 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment, which is executed by an electronic device, see Figure 2 , the method comprises the following steps:
[0061] Step S201, obtaining movement data, where the movement data is used to indicate whether the electronic device is in a moving state.
[0062] The movement data may be the number of steps or other data indicating whether the electronic device is moving. When a user uses an electronic device, whether the electronic device is in a moving state indicates whether the user is in a moving state. When the electronic device or the user is in a moving state, it indicates that the environment in which the electronic device is located is changing. When the electronic device or the user is in a non-moving state, it indicates that the environment in which the electronic device is located is not changing.
[0063] Step S202: When the electronic device is in a non-moving state, the screen brightness is adjusted based on the ambient light field, where the ambient light field includes the light intensity of the ambient light within a preset range centered on the electronic device.
[0064] Among them, the ambient light field is the ambient light field established in advance by the electronic device, and the ambient light field can be continuously updated. The ambient light field is determined based on the latest light intensity, and accurately represents the light intensity of the ambient light within a preset range centered on the electronic device. The preset range is the range that can be sensed by the light sensor of the pre-set electronic device. Each light intensity included in the ambient light field is data collected by the light sensor, which can be installed on the front, back or other position of the electronic device that can detect light in the environment.
[0065] When the electronic device is not moving, it means that the ambient light field in which the electronic device is currently located is in a relatively static state. In this case, the ambient light field has a more comprehensive field of view than the light intensity collected in real time, and can more accurately reflect the light intensity in the current environment, so the screen brightness is adjusted based on the ambient light field.
[0066] In the method provided by the embodiment of the present disclosure, the user is in a non-moving state, which indicates that the user's current environment has not changed, and the ambient light felt by the user's eyes is still the light in the current environment, and the ambient light field is still the ambient light field in the current environment. Therefore, the screen brightness is adjusted based on the ambient light field to avoid adjusting the screen brightness when the screen orientation changes but the ambient light remains unchanged, thereby improving the user's viewing experience.
[0067] Figure 3 is a flowchart of another method for adjusting screen brightness according to an exemplary embodiment. Figure 3 , the method comprises the following steps:
[0068] Step S301, obtaining mobile data.
[0069] In some embodiments, the electronic device includes a pedometer sensor, and movement data is acquired through the pedometer sensor, where the movement data includes the number of steps.
[0070] Step S302: determining whether the electronic device is in a mobile state based on the movement data.
[0071] In some embodiments, when the movement data includes the number of steps, it is determined whether the number of steps acquired at the first time point has changed compared to the number of steps acquired at the second time point, and when the number of steps has changed, it is determined that the electronic device is in a moving state, and when the number of steps has not changed, it is determined that the electronic device is in a non-moving state. The first time point may be the current time point, and the second time period may be a time point before the first time point and separated from the first time point by a first time length, and the first time length is a preset time length, for example, the first time length is 1 second, 2 seconds, or other shorter time lengths.
[0072] Step S303: when the electronic device is in a moving state, the screen brightness is adjusted based on the current third light intensity.
[0073] The third light intensity is the light intensity collected in real time by the light sensor.
[0074] When the electronic device is in a mobile state, the environment in which the electronic device is located is constantly changing, and the ambient light field can no longer accurately reflect the light intensity of the environment in which the electronic device is currently located. Therefore, the screen brightness is adjusted directly based on the third light intensity.
[0075] In addition, in some embodiments, when the electronic device is in a moving state, it indicates that the ambient light field previously acquired by the electronic device is no longer applicable, and therefore, when the electronic device is in a moving state, the ambient light field is reset, that is, the original ambient light field is cleared. Afterwards, when the electronic device is no longer moving, a new ambient light field can be acquired again.
[0076] Step S304: when the electronic device is in a non-moving state, adjusting the screen brightness based on the ambient light field.
[0077] The specific implementation method of adjusting the screen brightness based on the ambient light field is as follows Figure 4 The illustrated implementation will not be described in detail here.
[0078] It should be noted that in the embodiment of the present disclosure, the electronic device presets and stores a correspondence between light intensity and screen brightness. When adjusting the screen brightness based on the third light intensity or the ambient light field, the screen brightness corresponding to the third light intensity or the ambient light field is determined according to the correspondence.
[0079] In the method provided by the embodiment of the present disclosure, if the user is in a moving state, it means that the user's current environment is constantly changing. In this case, the ambient light field can no longer accurately reflect the light intensity of the environment in which the electronic device is currently located. Therefore, the screen brightness is adjusted directly based on the third light intensity. If the user is in a non-moving state, it means that the user's current environment has not changed. The ambient light perceived by the user's eyes is still the light in the current environment, and the ambient light field is still the ambient light field in the current environment. Therefore, the screen brightness is adjusted based on the ambient light field to avoid adjusting the screen brightness when the screen orientation changes but the ambient light remains unchanged. In different states, the screen brightness is adjusted in different ways, so that the light intensity used to adjust the screen brightness is more accurate, thereby improving the user's viewing experience.
[0080] Figure 4 is a flowchart of another method for adjusting screen brightness according to an exemplary embodiment, which is executed by an electronic device, see Figure 4 , the method comprises the following steps:
[0081] Step S401, when the electronic device is in a non-moving state, determining a change in the light sensing direction of the light sensor within a preset time period.
[0082] In the disclosed embodiment, when the electronic device is not moving, it is also necessary to determine whether the electronic device is flipped, that is, to determine whether the light sensing direction of the light sensor has changed. The starting time point of the preset duration is the time point for acquiring the movement data. For example, the preset duration is 1 second, 2 seconds or other durations, and the light sensing direction is perpendicular to the screen of the electronic device and pointing to the top of the screen. For example, see Figure 5 Schematic diagram of the ambient light field shown, Figure 5 The arrow pointing upward in the middle is the light sensing direction of the light sensor.
[0083] Optionally, the light sensing direction is a three-dimensional vector. For example, the light sensing direction can be expressed as (x, y, z). A three-dimensional coordinate system is established with the light sensor as the coordinate origin. x, y, and z are coordinates on three axes in the three-dimensional coordinate system.
[0084] In some embodiments, a plurality of posture data are acquired through a posture sensor within a preset time period; based on each posture data, the light sensing direction corresponding to each posture data is determined; based on the angle difference between each two light sensing directions, the change amount is determined. The posture data is used to characterize the posture of the electronic device, and the posture sensor includes a motion sensor such as a gyroscope, an acceleration sensor, and an electronic compass. Accordingly, the posture data includes angular velocity, acceleration, magnetic data, etc.
[0085] Optionally, based on each posture data, the light sensing direction corresponding to each posture data is determined, including: based on a preset relationship and the posture data, the light sensing direction corresponding to the posture data is determined, and the preset relationship is used to characterize the relationship between the posture data and the light sensing direction. For example, the preset relationship can be a preset function, and the posture data is substituted as an independent variable into the preset function to obtain the light sensing direction.
[0086] Optionally, determining the change amount based on the angle difference between every two light sensing directions includes: determining the angle difference between every two light sensing directions and determining the maximum angle difference as the change amount; or determining the angle difference between the first light sensing direction and the last light sensing direction as the change amount.
[0087] Step S402: when the change amount is less than a preset threshold, update the ambient light field.
[0088] Among them, the preset threshold is a preset value, for example, the preset threshold is 10 degrees, 8 degrees or other values. In the embodiment of the present disclosure, when the change is less than the preset threshold, it means that the change in the light direction within the preset time length is small, and it can be regarded as that the light direction has not changed. When the light direction does not change, the light intensity in the environment where the electronic device is located may change. Therefore, it is necessary to update the ambient light field so that the ambient light field can represent the latest light intensity in the current environment.
[0089] In some embodiments, a first light intensity is acquired through a light sensor, and based on the first light intensity, each light intensity in the ambient light field is updated to obtain an updated ambient light field, wherein the first light intensity is the light intensity currently collected by the light sensor.
[0090] Optionally, based on the first light intensity, updating each light intensity in the ambient light field includes: determining a first light corresponding to the first light intensity, obtaining the light intensity of a second light at the same position as the first light in the ambient light field, determining a light sensitivity change value between the first light intensity and the light sensitivity change value of the second light, adding each light intensity in the ambient light field to the light sensitivity change value to obtain an updated light intensity, thereby obtaining an updated ambient light field. For example, if the lights in the environment are brightened, then the light sensitivity change value between the first light intensity and the light sensitivity change value of the second light is a positive number, and adding each light intensity to a positive number can obtain a greater light intensity.
[0091] In the disclosed embodiment, the change in the first light intensity reflects the change in the total light intensity in the ambient light field. Therefore, the total light intensity in the ambient light field can be adjusted based on the first light intensity, thereby updating the ambient light field.
[0092] Step S403: adjusting the screen brightness based on the updated ambient light field.
[0093] For the ambient light field, the ambient light field includes multiple light intensities, but different light intensities may be different in size, and the light intensity used when adjusting the screen brightness can be the maximum light intensity among the multiple light intensities, that is, the screen brightness is adjusted based on the maximum light intensity in the updated ambient light field; or, the light intensity used can be any light intensity among the multiple light intensities, that is, the screen brightness is adjusted based on any light intensity in the updated ambient light field; or, the light intensity used can be the average of multiple light intensities, that is, the screen brightness is adjusted based on the average of multiple light intensities.
[0094] Step S404: when the change amount is greater than or equal to a preset threshold, determining the current light sensing direction of the light sensor.
[0095] In the embodiment of the present disclosure, when the change amount is less than the preset threshold value, it means that the change amount of the light direction within the preset time length is large, and the light direction has changed. In the case where the light direction changes, it is necessary to determine the latest light direction of the light sensor. The method for determining the light direction refers to the above embodiment and will not be repeated here.
[0096] Step S405: adjusting the screen brightness based on the target sub-ambient light field pointed to by the current light sensing direction.
[0097] The ambient light field includes multiple sub-ambient light fields, for example, see Figure 5 , regard the ambient light field as a cube, and divide the ambient light field into 6 sub-ambient light fields based on the six faces of the cube. Each sub-ambient light field corresponds to at least one light intensity. Optionally, each sub-ambient light field corresponds to one light intensity, in which case the maximum light intensity in the sub-ambient light field is the light intensity; or each sub-ambient light field corresponds to multiple light intensities, in which case the maximum light intensity in the sub-ambient light field is the maximum light intensity among the multiple light intensities.
[0098] In some embodiments, the target sub-ambient light field to which the light sensing direction is directed is the most important sub-ambient light field among multiple sub-ambient light fields, and therefore, the accuracy of the target sub-ambient light field needs to be ensured. A second light intensity is obtained through a light sensor; when the second light intensity is greater than the maximum light intensity in the target sub-ambient light field, the target sub-ambient light field is updated; based on the updated target sub-ambient light field, the screen brightness is adjusted. Among them, the second light intensity is greater than the maximum light intensity in the target sub-ambient light field, indicating that the light intensity in the target sub-ambient light field has changed, and therefore, the target sub-ambient light field is updated. Optionally, updating the target sub-ambient light field includes: updating the maximum light intensity in the target sub-ambient light field to the second light intensity.
[0099] When the second light intensity is less than or equal to the maximum light intensity in the target sub-ambient light field, the screen brightness is adjusted based on the target sub-ambient light field. That is to say, when the second light intensity is less than the maximum light intensity, it means that the light in the current environment has not become brighter, so the previous target sub-ambient light field can still be used.
[0100] In some embodiments, when adjusting the screen brightness, the overall environment around the electronic device needs to be considered, and therefore, the screen brightness is adjusted based on the maximum light intensity in the updated target sub-ambient light field and at least one sub-ambient light field that has not been updated.
[0101] It should be noted that in some embodiments, when the electronic device is not moving, it is necessary to periodically execute the above implementation, that is, determine whether the ambient light field needs to be updated at regular intervals, so as to adjust the screen brightness based on the latest ambient light field.
[0102] In the method provided by the embodiment of the present disclosure, the user is in a non-moving state, which means that the user's current environment has not changed, the ambient light perceived by the user's eyes is still the light in the current environment, and the ambient light field is still the ambient light field in the current environment. Therefore, the screen brightness is adjusted based on the ambient light field to avoid adjusting the screen brightness when the screen orientation changes but the ambient light remains unchanged. In addition, the latest current ambient light field is determined based on the posture sensor and the light sensor, which can ensure the real-time nature of the ambient light field.
[0103] Furthermore, in the disclosed embodiment, the field of view of the light sensor is increased from the software aspect through the ambient light field, without modifying the structure of the light sensor or adding additional light sensors, and the cost is relatively low.
[0104] In some embodiments, the screen brightness adjustment process is as follows: Figure 6 As shown, see Figure 6 , the method comprises the following steps:
[0105] Step 1: Collect pedometer data.
[0106] Among them, the pedometer is equivalent to the above-mentioned pedometer sensor, and the pedometer data is equivalent to the above-mentioned movement data.
[0107] Step 2, determine whether the electronic device moves according to the pedometer data, if it is determined that the electronic device moves, execute step 3, if it is determined that the electronic device does not move, execute step 5.
[0108] Step 3: reset the ambient light field.
[0109] Step 4: Adjust the backlight of the electronic device according to the real-time light sensitivity value.
[0110] The real-time light sensitivity value is equivalent to the third light intensity. Adjusting the backlight of the electronic device is equivalent to adjusting the screen brightness.
[0111] Step 5: Collect data from the attitude sensor and calculate the light sensing direction.
[0112] Among them, the data of the posture sensor is equivalent to the above-mentioned posture data.
[0113] Step 6, determine whether the change in the light sensing direction is less than a preset threshold value based on the posture data. If the change is less than the preset threshold value, execute step 7; if the change is greater than the preset threshold value, execute step 8.
[0114] Step 7, calculate the light sensitivity change value, update the ambient light field, and execute step 9.
[0115] Step 8: Update the local ambient light field and execute step 9.
[0116] Among them, the local ambient light field is equivalent to the above-mentioned target sub-ambient light field.
[0117] Step 9, calculate the maximum light intensity in the ambient light field, and adjust the backlight of the electronic device based on the maximum light intensity.
[0118] The implementation of steps 1-9 is shown above. Figure 3 and Figure 4 The illustrated implementation will not be described in detail here.
[0119] Figure 7 is a block diagram of a screen brightness adjustment device according to an exemplary embodiment, which is configured in an electronic device, see Figure 7 , the device comprises:
[0120] A mobile data acquisition module is configured to acquire mobile data, where the mobile data is used to indicate whether the electronic device is in a mobile state;
[0121] The screen brightness adjustment module is configured to adjust the screen brightness based on the ambient light field when the electronic device is in a non-moving state. The ambient light field includes the light intensity of the ambient light within a preset range centered on the electronic device.
[0122] In some embodiments, the screen brightness adjustment module is configured to:
[0123] Determine the change amount of the light sensing direction of the light sensor within a preset time period, the start time point of the preset time period is the time point of obtaining the movement data, and the light sensing direction is a direction perpendicular to the screen of the electronic device and pointing above the screen;
[0124] When the change is less than a preset threshold, the ambient light field is updated;
[0125] Adjust screen brightness based on the updated ambient light field.
[0126] In some embodiments, the screen brightness adjustment module is configured to:
[0127] Obtaining a first light intensity through a light sensor;
[0128] Based on the first light intensity, each light intensity in the ambient light field is updated to obtain an updated ambient light field.
[0129] In some embodiments, the screen brightness adjustment module is configured to:
[0130] Adjust the screen brightness based on the maximum light intensity in the updated ambient light field.
[0131] In some embodiments, the ambient light field includes a plurality of sub-ambient light fields, and the apparatus further includes;
[0132] When the light sensing direction determination module is configured to determine the current light sensing direction of the light sensor when the change amount is greater than or equal to a preset threshold;
[0133] The screen brightness adjustment module is configured to adjust the screen brightness based on the target sub-environment light field pointed to by the current light sensing direction.
[0134] In some embodiments, the screen brightness adjustment module is configured to:
[0135] Obtaining a second light intensity through a light sensor;
[0136] When the second light intensity is greater than the maximum light intensity in the target sub-ambient light field, updating the target sub-ambient light field;
[0137] Adjust the screen brightness based on the updated target sub-environment light field.
[0138] In some embodiments, the screen brightness adjustment module is configured to:
[0139] The screen brightness is adjusted based on the maximum light intensity in the updated target sub-ambient light field and the at least one sub-ambient light field that has not been updated.
[0140] In some embodiments, the screen brightness adjustment module is configured to:
[0141] Within a preset time period, a plurality of posture data are obtained through a posture sensor, and the posture data are used to characterize the posture of the electronic device;
[0142] Based on each posture data, determine the light sensing direction corresponding to each posture data;
[0143] The change amount is determined based on the angular difference between each two light sensing directions.
[0144] In some embodiments, the screen brightness adjustment module is further configured to:
[0145] When the electronic device is in a mobile state, the screen brightness is adjusted based on the current third light intensity.
[0146] In some embodiments, the apparatus further comprises:
[0147] The ambient light field resetting module is configured to reset the ambient light field when the electronic device is in a moving state.
[0148] In some embodiments, the mobile data acquisition module is configured to:
[0149] The movement data including the number of steps is obtained through the pedometer sensor.
[0150] 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.
[0151] An embodiment of the present disclosure also provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the screen brightness adjustment method in the above embodiment.
[0152] Figure 8 is a block diagram of an electronic device 800 according to an exemplary embodiment.
[0153] Reference Figure 8 , the electronic 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 .
[0154] The processing component 802 generally controls the overall operation of the electronic 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.
[0155] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic 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.
[0156] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0157] The multimedia component 808 includes a screen that provides an output interface between the electronic 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 electronic 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.
[0158] 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 electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice 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.
[0159] 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: a home button, a volume button, a start button, and a lock button.
[0160] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic 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 acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0161] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 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.
[0162] In an exemplary embodiment, the electronic device 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 methods.
[0163] 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 a processor 820 of an electronic 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.
[0164] The embodiments of the present disclosure also provide a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the screen brightness adjustment method in the above embodiment.
[0165] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0166] It should be understood that the present invention is not limited to the exact construction that has 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 invention is limited only by the appended claims.
Claims
1. A screen brightness adjustment method, characterized in that: The method comprises: Acquiring movement data, where the movement data is used to indicate whether the electronic device is in a moving state; When the electronic device is in a non-moving state, the screen brightness is adjusted based on an ambient light field, where the ambient light field includes the light intensity of ambient light within a preset range centered on the electronic device.
2. The method according to claim 1, characterized in that The step of adjusting the screen brightness based on the ambient light field includes: Determine a change in the light sensing direction of the light sensor within a preset time period, wherein the start time point of the preset time period is the time point of acquiring the movement data, and the light sensing direction is a direction perpendicular to the screen of the electronic device and pointing above the screen; When the change amount is less than a preset threshold, updating the ambient light field; Adjust screen brightness based on the updated ambient light field.
3. The method according to claim 2, characterized in that The updating of the ambient light field comprises: Acquiring a first light intensity through the light sensor; Based on the first light intensity, each light intensity in the ambient light field is updated to obtain an updated ambient light field.
4. The method according to claim 2, characterized in that: The adjusting the screen brightness based on the updated ambient light field includes: The screen brightness is adjusted based on the maximum light intensity in the updated ambient light field.
5. The method according to claim 2, characterized in that: The ambient light field includes a plurality of sub-ambient light fields, and after determining the change amount of the light sensing direction of the light sensor within the first time period, the method further includes: When the change amount is greater than or equal to the preset threshold, determining the current light sensing direction of the light sensor; The screen brightness is adjusted based on the target sub-ambient light field pointed to by the current light sensing direction.
6. The method according to claim 5, characterized in that The adjusting the screen brightness based on the target sub-ambient light field pointed to by the current light sensing direction includes: Acquiring a second light intensity through the light sensor; When the second light intensity is greater than the maximum light intensity in the target sub-ambient light field, updating the target sub-ambient light field; The screen brightness is adjusted based on the updated target sub-ambient light field.
7. The method according to claim 6, characterized in that The adjusting the screen brightness based on the updated target sub-ambient light field includes: The screen brightness is adjusted based on the maximum light intensity in the updated target sub-ambient light field and the at least one sub-ambient light field that has not been updated.
8. The method according to any one of claims 2 to 7, characterized in that The step of determining the change in the light sensing direction of the light sensor within a preset time period includes: Within the preset time period, a plurality of posture data are acquired through a posture sensor, wherein the posture data are used to characterize the posture of the electronic device; Based on each of the posture data, determining the light sensing direction corresponding to each of the posture data; The variation is determined based on the angle difference between each two of the light sensing directions.
9. The method according to any one of claims 1 to 7, characterized in that: After acquiring the mobile data, the method further includes: When the electronic device is in a mobile state, the screen brightness is adjusted based on the current third light intensity.
10. The method according to any one of claims 1 to 7, characterized in that The method further comprises: When the electronic device is in a moving state, the ambient light field is reset.
11. The method according to any one of claims 1 to 7, characterized in that The obtaining of mobile data comprises: The movement data is acquired through a pedometer sensor, and the movement data includes the number of steps.
12. A screen brightness adjustment device, characterized in that: The device comprises: A mobile data acquisition module is configured to acquire mobile data, where the mobile data is used to indicate whether the electronic device is in a mobile state; The screen brightness adjustment module is configured to adjust the screen brightness based on the ambient light field when the electronic device is in a non-moving state, wherein the ambient light field includes the light intensity of the ambient light within a preset range centered on the electronic device.
13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 11.
14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 11.
Citation Information
Patent Citations
Method and device for detecting environmental light brightness
CN104318912A
Information processing method and electronic equipment
CN105446497A
Control method, control device and electronic device
CN105957499A
Screen brightness adjusting method and device, electronic equipment and storage medium
CN110970003A
Ambient light detection method and device, electronic equipment and storage medium
CN113539192A