Brightness adjustment method and device

By determining the relative angle of the display screen relative to the reference plane in the electronic device, a suitable brightness compensation coefficient is calculated, and the ambient light brightness is compensated, which solves the problem of abnormal brightness adjustment caused by the occlusion of the photosensitive sensor, and achieves more accurate brightness adjustment.

CN114613310BActive Publication Date: 2025-04-22LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210309842.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2025-04-22
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

Because the photosensitive sensor is blocked, the ambient light brightness sensed by the photosensitive sensor does not match the real ambient brightness, and the screen or keyboard brightness cannot be effectively adjusted, resulting in abnormal brightness adjustment.

Method used

By obtaining the ambient light brightness of the environment in which the electronic device is located, and determining the relative angle of the first body where the display screen of the electronic device is located with respect to the reference plane, a brightness compensation coefficient suitable for compensating the ambient light brightness is determined based on the relative angle, and the ambient light brightness is compensated by this coefficient to obtain the compensated target ambient light brightness, and then the output brightness adjustment is performed.

Benefits of technology

By accurately determining the brightness compensation coefficient, the real ambient light brightness can be more suitable, so that the electronic device can adjust the output light brightness more accurately, solving the problem of abnormal brightness adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114613310B_ABST
    Figure CN114613310B_ABST
Patent Text Reader

Abstract

The present application discloses a brightness adjustment method and device, the method comprising: obtaining the ambient light brightness of the environment in which the electronic device is located; determining the relative angle of the first body where the display screen of the electronic device is located relative to the reference plane; based on the relative angle, determining a brightness compensation coefficient suitable for compensating the ambient light brightness; using the brightness compensation coefficient to compensate the ambient light brightness to obtain the compensated target ambient light brightness; and performing output light brightness adjustment of the electronic device according to the target ambient light brightness. The solution of the present application can adjust the output light brightness more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of control technology, and more specifically, to a brightness adjustment method and device. Background Art

[0002] In order to adjust the screen or keyboard brightness of an electronic device to adapt to changes in ambient light, the electronic device is generally provided with a light sensor that can sense the brightness information of the environment in which the electronic device is located.

[0003] However, due to reasons such as the light sensor being blocked, the ambient light brightness sensed by the light sensor often does not match the actual ambient brightness, making it impossible to effectively adjust the screen or keyboard brightness, resulting in abnormal brightness adjustment. Summary of the invention

[0004] The present application provides a brightness adjustment method and device.

[0005] A brightness adjustment method includes:

[0006] Obtaining the ambient light brightness of the environment where the electronic device is located;

[0007] Determine a relative angle of a first body where a display screen of the electronic device is located relative to a reference plane;

[0008] Based on the relative angle, determining a brightness compensation coefficient suitable for compensating for the brightness of the ambient light;

[0009] Compensating the ambient light brightness by using the brightness compensation coefficient to obtain a compensated target ambient light brightness;

[0010] The output light brightness of the electronic device is adjusted according to the target ambient light brightness.

[0011] In a possible implementation, the ambient light brightness is obtained by a photosensor disposed on the electronic device;

[0012] The method further comprises:

[0013] Determining the direction of the ambient light entering the light-sensitive sensor;

[0014] The determining a relative angle of a first body where a display screen of the electronic device is located relative to a reference plane comprises:

[0015] If the light incident direction indicates that the ambient light enters the light sensor from the area above the light sensor, a relative angle of the first body where the display screen of the electronic device is located relative to the reference plane is determined.

[0016] In another possible implementation, the photosensitive sensor includes a plurality of photosensitive points, or the electronic device is provided with a plurality of photosensitive sensors located at different positions;

[0017] The determining the light direction of the ambient light entering the light-sensitive sensor includes:

[0018] Determine the light direction of the ambient light entering the light sensor based on the distribution of light intensity sensed by different photosensing points in the light sensor;

[0019] or,

[0020] Based on the distribution of light intensities sensed by the multiple light sensors, the light entry direction of the ambient light entering the multiple light sensors is determined.

[0021] In yet another possible implementation, determining a relative angle of a first body where a display screen of the electronic device is located relative to a reference plane includes:

[0022] The relative angle of a first body where a display screen of the electronic device is located relative to a horizontal plane or a vertical plane is determined.

[0023] In another possible implementation, the electronic device includes a first body on which a display screen is located and a second body rotatably connected to the first body;

[0024] The step of determining a relative angle of a first body where a display screen of the electronic device is located relative to a reference plane further includes:

[0025] Determine a relative angle between the first body where the display screen is located and the second body;

[0026] The step of determining a brightness compensation coefficient suitable for compensating for the brightness of the ambient light based on the relative angle comprises:

[0027] If the relative angle is greater than a set angle threshold, determining a brightness compensation coefficient suitable for compensating for the ambient light brightness based on the relative angle;

[0028] If the relative angle is not greater than the set angle threshold, the brightness compensation coefficient is determined to be zero.

[0029] In yet another possible implementation, the method further includes:

[0030] If the light incident direction indicates that the ambient light does not enter the photosensitive sensor from the upper area of ​​the photosensitive sensor, the ambient light brightness is compensated according to a set fixed compensation coefficient to obtain a compensated target ambient light brightness.

[0031] In yet another possible implementation, determining a compensation coefficient suitable for compensating for the ambient light brightness based on the relative angle includes:

[0032] Determining a brightness compensation coefficient corresponding to the relative angle according to a brightness compensation curve;

[0033] or,

[0034] According to the set brightness compensation function, a brightness compensation coefficient required to compensate the relative angle is determined.

[0035] In another possible implementation, the adjusting the output brightness of the electronic device according to the target ambient light brightness includes at least one of the following:

[0036] According to the target ambient light brightness, adjusting the display screen brightness of the electronic device;

[0037] The keyboard backlight brightness of the electronic device is adjusted according to the target ambient light brightness.

[0038] In another possible implementation, the electronic device includes a first body and a second body, and the first body is rotatably connected to the second body;

[0039] The determining of the relative angle of the first body where the display screen of the electronic device is located relative to the horizontal plane or relative to the vertical plane includes:

[0040] When it is determined that the plane where the second body is located is in a horizontal plane, the relative angle of the display screen of the electronic device relative to the horizontal plane is determined based on the relative angle between the first body and the second body.

[0041] A brightness adjustment device includes:

[0042] A brightness sensing unit, used to obtain the ambient light brightness of the environment where the electronic device is located;

[0043] A relative angle determination unit, used to determine a relative angle of a first body where a display screen of the electronic device is located relative to a reference plane;

[0044] A coefficient determination unit, configured to determine a brightness compensation coefficient suitable for compensating for the brightness of the ambient light based on the relative angle;

[0045] A brightness compensation unit, used to compensate the ambient light brightness by using the brightness compensation coefficient to obtain a compensated target ambient light brightness;

[0046] The brightness adjustment unit is used to adjust the output light brightness of the electronic device according to the target ambient light brightness.

[0047] Through the above scheme, it can be known that after obtaining the ambient light brightness of the environment in which the electronic device is located, the present application will determine the relative angle of the first body where the display screen of the electronic device is located relative to the reference plane. Since the relative angles of the first plane where the display screen of the electronic device is located relative to the reference plane are different, the degree to which the light sensor of the electronic device is blocked will also be different, so that the degree of deviation between the ambient light brightness sensed by the electronic device and the actual ambient light brightness is also different. Therefore, according to the relative angle of the first plane where the display screen of the electronic device is located relative to the reference plane, the brightness compensation coefficient of the ambient light brightness is determined, and the brightness compensation coefficient can be determined more accurately and reasonably, so that the compensated target ambient light brightness is more in line with the actual ambient light brightness, so that the electronic device can more accurately adjust the output light brightness. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 A schematic diagram of a process flow of a brightness adjustment method provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of ambient light entering a light-sensitive sensor in an embodiment of the present application;

[0051] Figure 3 For Figure 2 Schematic diagram of a light-sensitive point of a light-sensitive sensor being blocked in a scene of ambient light illumination;

[0052] Figure 4 A schematic diagram of another process of the brightness adjustment method provided in the embodiment of the present application;

[0053] Figure 5a A schematic diagram of the relative angle of the display screen relative to the horizontal plane in the embodiment of the present application;

[0054] Figure 5b Another schematic diagram of the relative angle of the display screen relative to the horizontal plane in the embodiment of the present application;

[0055] Figure 6 A schematic diagram of another process of the brightness adjustment method provided in the embodiment of the present application;

[0056] Figure 7 A schematic diagram showing the comparison of ambient light brightness before and after compensation using the conventional method;

[0057] Figure 8A schematic diagram of a relevant curve for ambient light brightness compensation in an embodiment of the present application;

[0058] Fig. 9 A schematic diagram of a composition structure of a brightness adjustment device provided in an embodiment of the present application;

[0059] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0060] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims and the above drawings are used to distinguish similar parts, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated herein. DETAILED DESCRIPTION

[0061] The solution of the present application can be applied to electronic devices to achieve more reasonable and certain adjustment of the brightness of light output by the electronic device to a screen or keyboard.

[0062] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0063] like Figure 1 As shown, it shows a flow chart of an embodiment of a brightness adjustment method of the present application. The method of this embodiment can be applied to an electronic device, which can be a mobile phone, a tablet computer or a laptop computer.

[0064] The method of this embodiment may include:

[0065] S101, obtaining the ambient light brightness of the environment where the electronic device is located.

[0066] The ambient light brightness obtained by the electronic device is the ambient light brightness sensed by the electronic device, for example, the ambient light brightness sensed by a photosensitive device such as a photosensitive sensor on the electronic device, for example, based on the photosensitive parameters sensed by the photosensitive sensor, to determine the sensed ambient light brightness.

[0067] It is understandable that due to reasons such as the blocking of photosensitive devices such as light sensors on electronic devices, the brightness of the ambient light sensed by the electronic device may deviate from the actual brightness of the ambient light in the environment in which the electronic device is located.

[0068] S102, determining a relative angle of a first body where a display screen of the electronic device is located relative to a reference plane.

[0069] In the present application, for the sake of easy distinction, the body where the display screen of the electronic device is located is referred to as the first body.

[0070] It is understandable that if the electronic device includes only one body, such as a mobile phone or tablet computer, the first body of the electronic device is the body of the electronic device itself. If the electronic device includes at least two bodies, such as a laptop computer, the body of the electronic device with a display screen is called the first body.

[0071] It is understandable that during the process of a user using an electronic device, the position of the first body where the display screen of the electronic device is located may change as the user's usage habits or operating behaviors change, which may cause the first body to block the photosensitive devices such as the electronic device's photosensitive sensors to varying degrees, which will also affect the degree of deviation between the ambient light brightness sensed by the electronic device and the actual ambient light brightness.

[0072] Based on this, the present application needs to determine the relative angle of the first body relative to the reference plane, so as to judge the degree of obstruction of photosensitive devices such as photosensitive sensors through the relative angle, or to judge the degree of deviation of the sensed ambient light brightness from the actual ambient light brightness.

[0073] The reference plane may be set as required, for example, in combination with the positional relationship between the first body of the electronic device and a photosensitive device such as a photosensitive sensor.

[0074] In a possible implementation, the reference plane may include at least one of a horizontal plane and a vertical plane. Accordingly, the relative angle of the first body where the display screen of the electronic device is located relative to the horizontal plane and / or the vertical plane may be determined.

[0075] For example, when the electronic device is a mobile phone or a tablet computer and has only a single body, the first body where the display screen of the electronic device is located is the body of the electronic device. On this basis, the photosensitive sensor will be arranged on the first body, such as on the upper side or other sides of the panel where the display screen is located; or, on the upper side or a certain position of the back plate of the display screen. In this case, the relative angle of the first body of the electronic device relative to at least one of the horizontal plane and the vertical plane will affect the brightness of the ambient light felt by the photosensitive sensor, so the reference plane can be at least one of the horizontal plane and the vertical plane.

[0076] For another example, when the electronic device is an electronic device with two or more bodies such as a laptop computer, the electronic device includes at least a second body connected to the first body in addition to a first body where the display screen is located. In this case, the light sensor can be set on the first body, such as on the upper side of the panel where the display screen is located or other positions, or on the back panel behind the display screen. The light sensor may also be set on the second body, such as on the second body where the keyboard is located.

[0077] No matter where the photosensor is set, considering the usage habits of electronic devices, the main factor that affects the brightness of ambient light sensed by the photosensor is the relative angle of the first body where the display screen of the electronic device is located relative to the horizontal plane and the vertical plane. Therefore, the reference plane can be selected as at least one of the horizontal plane and the vertical plane.

[0078] There are many ways to determine the relative angle of the first body relative to the horizontal plane and the vertical plane. For example, the relative angle of the display screen of the electronic device relative to the horizontal plane or the vertical plane can be determined by combining the gravity value sensed by the gravity sensor in the electronic device. Of course, there can be other ways, which are not limited by this application.

[0079] S103: Determine a brightness compensation coefficient suitable for compensating for the ambient light brightness based on the relative angle.

[0080] When the relative angles are different, the determined brightness compensation coefficients may also be different.

[0081] Unlike the current practice of compensating the ambient light brightness sensed by the electronic device only according to a set fixed compensation coefficient, the present application takes into account the impact of the position change of the first body on the ambient light brightness sensed by the electronic device, and determines the brightness compensation coefficient suitable for compensating the ambient light brightness in combination with the relative angle of the first body relative to the reference plane, thereby being able to more reasonably determine the brightness compensation coefficient that can compensate for the ambient light brightness.

[0082] In a possible implementation, the present application can pre-construct a brightness compensation curve and configure it in an electronic device, and the brightness compensation curve can reflect the brightness compensation coefficients corresponding to different relative angles. The present application does not limit the specific implementation method for determining the brightness compensation curve, for example, the brightness compensation curve can be a compensation curve fitted by comprehensively analyzing the difference between the ambient light sensed by the electronic device at different relative angles and the actual ambient light.

[0083] Correspondingly, the brightness compensation coefficient corresponding to the relative angle of the first body relative to the reference plane can be determined according to the brightness compensation curve.

[0084] In another possible implementation, the present application may also set a brightness compensation function in the electronic device. The brightness compensation function may reflect the functional relationship between different relative angles and the brightness compensation coefficients required to be compensated. Accordingly, the brightness compensation coefficient required to compensate the relative angle of the first body relative to the reference plane may be determined according to the set brightness compensation function.

[0085] Of course, there may be other ways to determine the brightness compensation coefficient corresponding to the relative angle, and there is no limitation to this.

[0086] S104, compensating the ambient light brightness by using the brightness compensation coefficient to obtain a compensated target ambient light brightness.

[0087] For the sake of distinction, the compensated ambient light brightness is referred to as the target ambient light brightness.

[0088] It is understandable that, when the brightness compensation coefficient is determined, the specific method of compensating the ambient light brightness is not limited. For example, the ambient light brightness can be multiplied by the brightness compensation coefficient to obtain the compensated ambient light brightness.

[0089] S105, adjusting the output light brightness of the electronic device according to the target ambient light brightness.

[0090] It can be understood that the compensated target ambient light brightness is closer to the actual ambient light brightness of the environment in which the electronic device is located. Therefore, performing output light brightness adjustment based on the target ambient light brightness can more accurately adjust the light brightness output by the electronic device.

[0091] There are many possibilities for the output light brightness that the electronic device needs to adjust based on the ambient light brightness.

[0092] For example, an electronic device may need to adjust the brightness of its display screen based on the ambient light brightness; therefore, the brightness of the display screen of the electronic device may be adjusted according to the target ambient light brightness.

[0093] For another example, if a physical keyboard is provided on the electronic device, the electronic device can also control the backlight brightness of the keyboard in combination with the ambient light brightness, so as to control the keyboard to have different backlight brightness under different ambient light brightness. Accordingly, the keyboard backlight brightness of the electronic device can be adjusted according to the target ambient light brightness.

[0094] Of course, in actual applications, the electronic device can also adjust the display brightness and keyboard backlight brightness respectively according to the target ambient light brightness, and there is no restriction on this.

[0095] For example, the electronic device may include a microcontroller unit connected to a photosensitive sensor, and the microcontroller unit may determine the ambient light brightness based on the photosensitive parameters reported by the photosensitive sensor, and determine the compensated target ambient light brightness based on the solution of the present application. On this basis, the microcontroller unit may transmit the data of the compensated target ambient light brightness to an embedded controller (EC), and the embedded controller controls and adjusts the brightness presented by the display screen and the keyboard.

[0096] Through the above scheme, it can be known that after obtaining the ambient light brightness of the environment in which the electronic device is located, the present application will determine the relative angle of the first body where the display screen of the electronic device is located relative to the reference plane. Since the relative angles of the first plane where the display screen of the electronic device is located relative to the reference plane are different, the degree to which the light sensor of the electronic device is blocked will also be different, so that the degree of deviation between the ambient light brightness sensed by the electronic device and the actual ambient light brightness is also different. Therefore, according to the relative angle of the first plane where the display screen of the electronic device is located relative to the reference plane, the brightness compensation coefficient of the ambient light brightness is determined, and the brightness compensation coefficient can be determined more accurately and reasonably, so that the compensated target ambient light brightness is more in line with the actual ambient light brightness, so that the electronic device can more accurately adjust the output light brightness.

[0097] It is understandable that, in the present application, the ambient light irradiating the electronic device may be one or more of artificial light sources and light sources such as the sun. The brightness of the ambient light sensed by the electronic device may be obtained by a photosensitive sensor disposed on the electronic device. Therefore, when the relative direction of the ambient light irradiating the electronic device is different, the influence on the brightness of the ambient light sensed by the photosensitive sensor will also be different.

[0098] It is understandable that the light sensor of the electronic device is located on the panel of the electronic device and is arranged in the groove. For example, the light sensor can be arranged on the first body where the display screen is located, for example, on the upper side of the first body. Since the groove affects the field of view, if the ambient light is blocked by the groove, the ambient light brightness felt by the light sensor will not match the actual ambient brightness.

[0099] It is understandable that, in most cases, the ambient light of the environment in which the electronic device is located generally irradiates the photosensitive sensor from the upper area of ​​the electronic device or the upper area of ​​the photosensitive sensor.

[0100] For example, when an electronic device is used indoors and indoor lighting is used as a light source, if the light source is located above the electronic device, then the ambient light emitted by the light source will also shine onto the photosensor from above the electronic device.

[0101] For another example, in an outdoor environment with a fixed light source (such as a street lamp or other lighting source), the ambient light emitted by the light source will generally illuminate the electronic device from above.

[0102] Of course, in some cases, the device may be under natural light such as the sun, but the light from the sun shines on the electronic device through a window or a specific light entrance, thus presenting a situation where ambient light above the electronic device shines on the electronic device. There is no restriction on this.

[0103] In the case mentioned above where the ambient light shines on the electronic device from the area above the electronic device, during the process of the ambient light entering the photosensitive sensor, due to the obstruction of the groove where the photosensitive transmitter is located, some photosensing points of the photosensitive sensor may not be able to sense the ambient light brightness, resulting in a deviation between the ambient light brightness determined based on the photosensitivity parameters sensed by the photosensitive sensor and the actual ambient light brightness.

[0104] like Figure 2 As shown, since the light-sensitive sensor 201 is in the groove, as shown in FIG. Figure 2 The middle groove has an edge 202 , so when the ambient light 203 is incident on the photosensitive sensor through the groove, a part of the photosensitive sensor will not be able to sense the ambient light.

[0105] like Figure 3 As shown, it shows that Figure 2 In a scene where the ambient light illuminates the photosensitive sensor, the distribution of ambient light sensed at different positions of the photosensitive sensor. Figure 3 It can be seen that part of the left photosensitive area in the photosensitive surface 301 of the photosensitive sensor does not sense the ambient light due to shielding, while most of the photosensitive areas on the right side of the photosensitive surface of the photosensitive sensor can sense the ambient light.

[0106] It is understandable that when ambient light shines on the electronic device from the upper area of ​​the electronic device, the position of the first body where the display screen of the electronic device is located will be different due to the way the electronic device is used, so that the situation in which the photosensitive sensor is blocked when the ambient light enters the photosensitive sensor will also be different.

[0107] In a special case, when an electronic device is in use, if the light source is located on both sides of the electronic device, the ambient light sensed by the light sensor or other photosensitive device is less affected by the position change of the display screen of the electronic device. In this case, a fixed ambient light compensation coefficient can be used to compensate for the ambient light brightness sensed by the electronic device. Of course, in general, the situation where the light source is located on both sides of the electronic device is relatively rare.

[0108] Based on the above analysis, the present application can also adopt different compensation methods in combination with the irradiation direction of the ambient light relative to the light-sensitive sensor of the electronic device. Figure 4 Provide explanation.

[0109] like Figure 4 As shown, it shows another flow chart of the brightness adjustment method provided in an embodiment of the present application. The method of this embodiment may include:

[0110] S401, obtaining the ambient light brightness of the environment where the electronic device is located based on a light sensor on the electronic device.

[0111] It is understandable that a photosensitive sensor may be provided on the electronic device, and each photosensitive sensor may include multiple photosensitive points. The electronic device may also be provided with multiple photosensitive sensors located at different positions, such as multiple photosensitive sensors may be distributed closely to each other, or may be provided at multiple positions with a certain distance.

[0112] It is understandable that the light sensor can sense light parameters, and based on the light parameters sensed by the light sensor, the electronic device can calculate the brightness of the sensed ambient light. For example, the light parameters sensed by the light sensor can include light values ​​at different light points, and the brightness of the ambient light is determined based on the average value of the light values ​​sensed at each light point.

[0113] Of course, there may be many possible specific ways to determine the ambient light brightness based on the photosensitivity parameters sensed by the photosensor, and this application does not impose any limitation on this.

[0114] S402, determining the direction of the ambient light entering the light-sensitive sensor.

[0115] It is understandable that, as described above, if the electronic device is in a natural light environment, the light entering the photosensor is natural light. If the electronic device is indoors or illuminated by a light source such as an indoor lighting device, the direction of the ambient light entering the photosensor essentially reflects the relative position information of the light source to the photosensor (or the electronic device).

[0116] There are many possible ways to determine the incoming light direction.

[0117] For example, in one possible case, if the photosensor includes a plurality of photosensing points, the light entry direction of the ambient light entering the photosensor can be determined based on the distribution of light intensities sensed by different photosensing points in the photosensor.

[0118] In particular, the present application can also divide the multiple photosites of the photosensor into multiple logical partitions, each of which is a photosensor area. Accordingly, based on the photosensor areas to which the photosites in the photosensor belong and the distribution of light intensities sensed by different photosensors, the light intensity distribution of the multiple photosensor areas corresponding to the photosensor can be determined, and based on the light intensity distribution of the multiple photosensor areas, the light input direction of the ambient light irradiating the display screen can be determined.

[0119] like Figure 3 As shown, the photosensitive surface of the photosensitive sensor 301 is divided into a plurality of photosensitive areas, each of which is Figure 3 A grid 302 is shown in FIG. Figure 3 It can be seen that since the light intensity in the middle sensing area on the left is weaker, while the light intensity sensed by most of the photosensitive areas on the right is stronger, then considering that the photosensor is blocked by the groove, it can be seen that the ambient light enters the photosensor from the upper left side.

[0120] In another possible implementation, the electronic device may be provided with multiple light sensors, on which basis the light entry direction of the ambient light entering the multiple light sensors may be determined based on the distribution of light intensities sensed by the multiple light sensors. The principle of this implementation is similar to determining the light entry direction based on the distribution of light intensities sensed on different photosensitive areas, and will not be described in detail here.

[0121] It should be noted that in the present application, when determining the incoming light direction, one only needs to care about whether the incoming light direction is incident on the photosensitive sensor from the upper area. Therefore, there is no need to determine the specific direction information of the incoming light direction, as long as the incoming light direction can represent whether the ambient light is incident on the photosensitive sensor from above.

[0122] S403: If the light incident direction indicates that the ambient light enters the light sensor from the upper area of ​​the light sensor, determine a relative angle of the first body where the display screen of the electronic device is located relative to the reference plane.

[0123] It can be understood that the upper area mentioned here may include any area above the photosensitive sensor, regardless of the upper left or upper right, etc.

[0124] From the previous analysis, it can be seen that when indoor light sources or other forms of ambient light illuminate the electronic device from above the electronic device, the change in the position of the first body where the display screen of the electronic device is located may affect the brightness and brightness distribution of the ambient light entering the photosensitive sensor. Therefore, in this case, in order to determine the degree to which the photosensitive sensor is blocked, it is necessary to determine the relative angle of the first body of the electronic device relative to the reference plane.

[0125] For example, the relative angle of the first body of the electronic device relative to a horizontal plane or a vertical plane may be determined.

[0126] S404: Determine a brightness compensation coefficient suitable for compensating for the brightness of the ambient light based on the relative angle.

[0127] S405, compensating the ambient light brightness by using the brightness compensation coefficient to obtain a compensated target ambient light brightness.

[0128] For the above steps S404 and S405, reference may be made to the related introduction of the previous embodiment, which will not be described again here.

[0129] S406: If the incoming light direction indicates that the ambient light does not enter the photosensitive sensor from the upper area of ​​the photosensitive sensor, the sensed ambient light brightness is compensated according to a set fixed compensation coefficient to obtain a compensated target ambient light brightness.

[0130] It is understandable that if the ambient light does not enter the photosensitive sensor from the area above the photosensitive sensor, then it means that the light emitted by the light source or the ambient light such as natural light is irradiating the electronic device from the side of the electronic device. In this case, the position change of the first body where the display screen is located will basically have no effect on the photosensitive sensor sensing the ambient light. Accordingly, the brightness compensation coefficient required to compensate for the ambient light brightness has nothing to do with the relative angle of the first body relative to the reference plane, but is a fixed value.

[0131] For example, taking the electronic device as a laptop, the light source may be a low-height desk lamp or other auxiliary light source located on the left or right side of the laptop. On this basis, since the light source mainly inputs the photosensitive sensor in a direction parallel to the photosensitive sensor, the ambient light sensed by the photosensitive sensor will not change due to the display screen blocking the ambient light emitted by the light source.

[0132] In this case, the brightness of the ambient light sensed by the light sensor is mainly affected by the covering (such as a glass cover) on the groove where the light sensor is located, and this influence is fixed. For example, the groove where the light sensor is set is covered with a glass opening and coated with ink, and the ink has a corresponding light transmittance (such as 20%), so that the brightness of the ambient light sensed by the light sensor is different from the corresponding actual brightness of the environment, but the difference caused by this influence is fixed, so the ambient light brightness coefficient that needs to be compensated is also fixed.

[0133] S407, adjusting the output light brightness of the electronic device according to the target ambient light brightness.

[0134] For the step S407, please refer to the above related introduction, which will not be described again here.

[0135] It can be understood that, from the foregoing introduction, when the relative angle of the electronic device relative to the reference plane in the present application, the reference plane can have multiple possibilities, which may be specifically related to the positional relationship of the photosensitive sensor relative to the first body where the display screen of the electronic device is located.

[0136] In a possible implementation manner, in the present application, the reference plane may include at least one of a horizontal plane and a vertical plane.

[0137] This possible implementation is described below in combination with the arrangement of light-sensitive sensors at different positions of the electronic device.

[0138] In one possible case, the light sensor can be arranged on the panel where the display screen of the electronic device is arranged, that is, the light sensor is arranged on the panel where the display screen is arranged in the first body. For example, a more common method is that the light sensor is arranged on the panel where the display screen is arranged and is located above the display screen.

[0139] In the case where there is ambient light shining downward in the area above the display screen, as the angle of the display screen relative to the horizontal plane changes, the area and range where the light sensor can sense the ambient light due to the obstruction of the groove may change. For example, the closer the plane where the display screen is located is to the horizontal plane, the more areas of ambient light the light sensor can sense. Based on this, in this case, the present application can determine the relative angle of the first body where the display screen is located relative to the horizontal plane, that is, the relative angle of the plane where the display screen is located relative to the horizontal plane.

[0140] Taking into account user habits and the fact that the display screen of an electronic device generally faces the ambient light, the relative angle of the plane where the display screen is located relative to the horizontal plane can be determined as: the angle between the front of the display screen and the horizontal plane, that is, the minimum angle from the front of the display screen to the horizontal plane.

[0141] For ease of understanding, an electronic device including a first body and a second body rotatably connected to the first body is taken as an example for explanation. For example, the electronic device may be a laptop computer.

[0142] like Figure 5a As shown, it is a schematic diagram showing the relative angle of the display screen relative to the horizontal plane.

[0143] exist Figure 5a In the description, an electronic device having a first body 501 and a second body 502 is taken as an example, and a light sensor 503 is provided on the first body.

[0144] exist Figure 5aIn the embodiment, a display screen (not shown) is disposed in the first body 501. The relative angle of the display screen relative to the horizontal plane is mainly concerned with the angle between the front side of the display screen (i.e., the side of the first body where the display screen is disposed) and the horizontal plane. The angle is the angle between the front side of the display screen and the horizontal plane (i.e., the side of the first body where the display screen is disposed). Figure 5a The minimum angle at which the surface reaches the horizontal plane (shown by the solid arrow).

[0145] like Figure 5a As shown, in Figure 5a The second body is placed on a horizontal plane. In this case, the angle b between the first body and the second body is actually the angle between the front of the display screen and the horizontal plane.

[0146] For easier understanding, see Figure 5b ,exist Figure 5b The electronic device comprises: a first body 51, on which a display screen 52 is arranged. At the same time, the electronic device also comprises a second body 53, on one side of which a keyboard 54 is arranged.

[0147] exist Figure 5b The second body is also placed on the horizontal plane. In this case, the relative angle of the display screen to the horizontal plane can actually be the angle between the front of the display screen and the surface where the keyboard is located in the second body, that is, the minimum angle from the front of the display screen to the plane where the keyboard is located in the second body, such as Figure 5b As shown in the middle angle d.

[0148] In order to understand the specific process of calculating the angle of the display screen relative to the horizontal plane, combined with Figure 5a Provide a brief explanation.

[0149] Depend on Figure 5a It can be seen that a three-dimensional coordinate axis is constructed with the position point of the photosensitive sensor, and the three-dimensional coordinate axis includes an axial direction perpendicular to the first body as the Z axis ( Figure 5a The vertical line 504 drawn from the light sensor represents the gravity acceleration value. The angle a between the vertical line 504 and the Z axis can be calculated based on the gravity acceleration value and the trigonometric function relationship.

[0150] On this basis, based on the trigonometric function relationship, it can be deduced that the angle b and angle a of the display screen relative to the horizontal plane in this application are complementary. Therefore, after calculating the angle value of angle a, the angle b between the display screen and the horizontal plane can be obtained.

[0151] At the same time, combined Figure 5a It can be seen that when it is determined that the plane where the second body is located is in the horizontal plane, the relative angle of the display screen of the electronic device to the horizontal plane can also be directly determined based on the angle between the first body and the second body.

[0152] certainly, Figure 5a and Figure 5b Taking the electronic device including the first body and the second body as an example, when the electronic device only includes the first body provided with a display screen, to determine the relative angle of the display screen relative to the horizontal plane, it is only necessary to Figure 5a and Figure 5b The plane where the second body is located can be regarded as a horizontal plane (such as the ground), and the specific process is similar, which will not be repeated here.

[0153] It is understandable that when the photosensitive sensor is arranged on the panel where the display screen of the electronic device is located, if the relative angle of the display screen relative to the vertical plane changes, it will also affect the ambient light felt by the photosensitive sensor. Therefore, the present application can also determine the ambient light brightness compensation coefficient in combination with the relative angle of the display screen relative to the vertical plane, and its principle is similar to that described above.

[0154] In addition, in a special case, the relative angle of the display screen relative to the vertical plane and the relative angle of the display screen relative to the horizontal plane have a complementary relationship, such as Figure 5a Based on this, the present application may also obtain the relative angle of the display screen of the electronic device relative to the vertical plane, and on this basis, the relative angle may be converted into the relative angle of the display screen relative to the horizontal plane, or may determine a suitable ambient light brightness compensation coefficient based on the relative angle of the display screen relative to the vertical plane.

[0155] In another possible case, the photosensitive sensor may be arranged on the back plate of the first body of the electronic device, and the back plate refers to a panel in the first body where no display screen is arranged. In this case, if the ambient light irradiates the first body downward from above, the rotation of the first body of the electronic device relative to the horizontal plane causes the relative angle of the first body relative to the horizontal plane to change, and the ambient light that can be sensed by the photosensitive sensor on the back plate will also be affected. The specific principle is the same as the case where the photosensitive sensor is arranged on the panel where the display screen is located.

[0156] When the light sensor is disposed on the back plate of the first body, the relative angle of the first body relative to the horizontal plane may be determined to be the same as the relative angle of the front display screen relative to the horizontal plane, for example, the relative angle of the front side of the display screen relative to the horizontal plane may be concerned only. Of course, in this case, the pre-configured brightness compensation curve or brightness compensation function may be different from the brightness compensation curve or brightness compensation function configured in the case where the light sensor is disposed on the panel where the display screen is located.

[0157] In another possible case, when the electronic device includes a first body and a second body rotatably connected to the first body, the photosensor may be disposed on the second body of the electronic device, for example, the second body may be a body where a keyboard is located.

[0158] In this case, considering that the second body is usually placed on a horizontal plane for use, for example, a laptop is generally used on a desktop. In this case, if the ambient light is irradiated downward from the area above the photosensor, the main factor affecting the accuracy of the photosensor sensing ambient light is that the first body blocks the photosensor, and the blocking of the photosensor by the first body can be reflected by the relative angle of the first body to the second body. Therefore, in this case, the reference plane of the present application can be the plane where the second body is located.

[0159] Of course, the case where the photosensitive sensor is set on the second body is rare. In addition, considering that the second body is usually placed on a horizontal plane for use, the relative angle of the first body relative to the second body is essentially the relative angle of the first body relative to the horizontal plane. Therefore, for this case, determining the relative angle can also be seen as determining the relative angle of the first body relative to the horizontal plane. Similarly, considering that the relative angle of the first body relative to the horizontal plane is associated with the relative angle of the first body relative to the vertical plane, determining the relative angle can also be seen as determining the relative angle of the first body relative to the vertical plane.

[0160] The brightness adjustment method of the present application is introduced below by taking the case where the electronic device includes a first body and a second body. For ease of understanding, the relative angle of the first body where the display screen is located relative to the reference plane is determined as the relative angle of the first body relative to the horizontal plane.

[0161] like Figure 6 As shown, it shows a flow chart of another embodiment of a brightness adjustment method of the present application. The method of this embodiment may include:

[0162] S601, obtaining the ambient light brightness of the environment where the electronic device is located based on a light sensor on the electronic device.

[0163] For example, the light sensor can be arranged on the panel where the display screen of the first body of the electronic device is located, and arranged above the display screen. Of course, the situation where the light sensor is arranged on the back plate of the first body is also applicable to this embodiment, and will not be repeated here.

[0164] S602: Determine the direction of the ambient light entering the photosensitive sensor based on the distribution of light intensities sensed by different photosensing points in the photosensitive sensor.

[0165] For example, in the presence of a light source other than sunlight, the relative position of the light source with respect to the photosensitive sensor can be determined based on the distribution of light intensities sensed by different photosensing points in the photosensitive sensor.

[0166] This embodiment is described by taking a case of determining the incoming light direction as an example, and the other methods for determining the incoming light direction mentioned above are also applicable to this embodiment.

[0167] S603: If the light incident direction indicates that the ambient light enters the light sensor from the upper area of ​​the light sensor, determine the relative angle of the first body where the display screen of the electronic device is located relative to the horizontal plane and the relative angle of the first body relative to the second body.

[0168] In this embodiment, the relative angle of the first body relative to the reference plane includes not only the relative angle of the first body relative to the horizontal plane, but also the relative angle between the first body and the second body.

[0169] The relative angle between the first body and the second body can be determined by an angle sensor disposed between the first body and the second body. Of course, it can also be determined by other methods, which are not limited.

[0170] It should be noted that, in this embodiment, replacing the relative angle of the first body relative to the horizontal plane with the relative angle of the first body relative to the vertical plane is also applicable to this embodiment, and will not be repeated here.

[0171] S604: If the relative angle is greater than a set angle threshold, a brightness compensation coefficient suitable for compensating for the ambient light brightness is determined based on the relative angle.

[0172] It can be understood that a relative angle greater than a set angle threshold indicates that the relative angle between the first body and the second body of the electronic device will not affect the normal use of the electronic device. In this case, only the relative angle of the first body relative to the horizontal plane (or vertical plane) can be considered to affect the photosensitivity sensor's sensing of ambient light.

[0173] The set angle threshold can be set as needed, for example, the set angle threshold can be 60 degrees.

[0174] The method of determining the brightness compensation coefficient can refer to the related introduction of the previous embodiment, which will not be repeated here.

[0175] S605: If the relative angle is not greater than the set angle threshold, determine that the brightness compensation coefficient is zero.

[0176] It is understandable that if the relative angle between the first body and the second body is less than the set angle threshold, it means that the electronic device is no longer suitable for user operation. In this case, in order to reduce power consumption, the brightness of the display screen and the keyboard backlight of the electronic device can be turned off, based on which the brightness compensation coefficient can be determined to be zero.

[0177] Furthermore, considering that the relative angle between the first body and the second body is less than the set angle threshold, it is no longer suitable for operating the electronic device. Therefore, the present application can also turn off the touch sensing area of ​​the electronic device to not respond to the sensing operation of the touch sensing area.

[0178] S606: Compensate the sensed ambient light brightness based on the determined brightness compensation coefficient to obtain a compensated target ambient light brightness.

[0179] If the brightness compensation coefficient is zero, then the compensated target ambient light brightness may be a brightness value used to characterize the brightness of a display screen being turned off or a keyboard backlight being turned off.

[0180] S607: If the incoming light direction indicates that the ambient light does not enter the photosensitive sensor from the upper area of ​​the photosensitive sensor, the ambient light brightness is compensated according to a set fixed compensation coefficient to obtain a compensated target ambient light brightness.

[0181] S608: Adjust the display screen brightness and keyboard backlight brightness of the electronic device based on the target ambient light brightness.

[0182] In order to facilitate understanding of the benefits of the present application, a comparative explanation is given below of the current compensation method for the ambient light brightness of an electronic device based on a fixed compensation coefficient and the compensation method of the present application.

[0183] like Figure 7 As shown, it shows a schematic diagram of ambient light brightness comparison in which the ambient light brightness sensed by an electronic device is compensated according to a fixed compensation coefficient.

[0184] exist Figure 7 The horizontal axis in the middle represents the angle of the screen to the ground, that is, the relative angle of the display screen to the horizontal plane. The vertical axis in 7 represents the ambient light brightness value.

[0185] Depend on Figure 7 It can be seen that the horizontal line represents the real ambient brightness of the environment where the electronic device is located 701. When the ambient light of the electronic device is stable, the real ambient brightness of the environment where the electronic device is located remains unchanged, that is, no matter how the angle of the display screen relative to the horizontal plane changes, the real ambient brightness is a fixed value.

[0186] As the relative angle of the display screen to the ground (horizontal plane) changes, the ambient light brightness actually sensed by the electronic device will vary, such as Figure 7 The middle curve 702 shows the change of the ambient light brightness sensed by the electronic device at different angles of the display screen relative to the ground.

[0187] The current common method does not care about the angle of the display screen relative to the ground, but uniformly uses a fixed compensation coefficient to compensate for the ambient light brightness sensed by the electronic device. On this basis, after brightness compensation is performed on each ambient light brightness in curve 7 based on the fixed compensation coefficient, curve 703 can be obtained.

[0188] It can be seen from curve 703 that the compensated ambient light brightness will be different when the relative angle between the display screen of the electronic device and the ground is different. By comparing the representative line 701 and curve 703, it can be seen that the compensated ambient light brightness is obviously inconsistent with the actual ambient light brightness.

[0189] The following is an explanation of the ambient light compensation method mentioned in the present application.

[0190] like Figure 8 FIG. 1 is a schematic diagram showing a relevant curve of ambient light brightness compensation based on the solution of an embodiment of the present application.

[0191] exist Figure 8 In the above example, the meanings of the horizontal and vertical axes are the same as those in Figure 7 resemblance.

[0192] Figure 8 The middle horizontal line 801 may represent the actual ambient light brightness of the environment where the electronic device is located, and the actual ambient light brightness is fixed.

[0193] Figure 8 The middle curve 802 is a curve showing changes in the brightness of the ambient light sensed by the electronic device. The curve 802 shows changes in the brightness of the ambient light sensed by the electronic device at different angles of the display screen relative to the ground.

[0194] in addition, Figure 8 8 shows a brightness compensation curve 803 for compensating the ambient light brightness. The brightness compensation curve represents the change of the brightness compensation coefficient required to be compensated at different angles of the display screen relative to the ground. It can be seen from the brightness compensation curve 803 that the brightness compensation coefficient will also change when the relative angle of the display screen relative to the ground is different.

[0195] like Figure 8As shown in , when the relative angle of the display screen to the ground is s degrees, the ambient light brightness sensed by the electronic device is the brightness value L1, and the actual ambient light brightness of the environment where the electronic device is located is the brightness value L2. At the same time, when the relative angle is s degrees, the brightness compensation value determined based on the brightness compensation curve is the brightness compensation coefficient M.

[0196] After compensating the ambient light brightness L1 sensed by the electronic device based on the brightness compensation coefficient M, the brightness value of the compensated ambient light brightness can be obtained as L2, that is, L2 = L1*M.

[0197] Correspondingly, when the angle of the display screen of the electronic device relative to the ground is different, the representation line of the ambient light brightness after compensation by the solution of the present application is also the horizontal line 801, so that the compensated ambient light brightness is consistent with the actual ambient light brightness.

[0198] At the same time, when the relative angle of the display screen of the electronic device to the ground is less than 60 degrees, the present application will turn off the display screen of the electronic device to reduce power consumption, such as Figure 8 The gray area on the left side of the 60-degree angle between the middle screen and the ground indicates that the output display brightness is zero. Of course, the same applies to the keyboard backlight brightness.

[0199] Corresponding to a brightness adjustment method of the present application, the present application also provides a brightness adjustment device.

[0200] like Fig. 9 As shown, it shows a schematic diagram of a composition structure of a brightness adjustment device of the present application. The device of this embodiment may include:

[0201] The brightness sensing unit 901 is used to obtain the ambient light brightness of the environment where the electronic device is located;

[0202] A relative angle determination unit 902, configured to determine a relative angle of a first body where the display screen of the electronic device is located relative to a reference plane;

[0203] A coefficient determination unit 903, configured to determine a brightness compensation coefficient suitable for compensating for the ambient light brightness based on the relative angle;

[0204] A brightness compensation unit 904 is used to compensate the ambient light brightness by using the brightness compensation coefficient to obtain a compensated target ambient light brightness;

[0205] The brightness adjustment unit 905 is used to adjust the output light brightness of the electronic device according to the target ambient light brightness.

[0206] In a possible implementation, the ambient light brightness obtained by the brightness sensing unit is obtained by a photosensor disposed on the electronic device;

[0207] The device also includes:

[0208] A direction determination unit, used to determine the direction of the ambient light entering the light sensor;

[0209] The relative angle determination unit is specifically used to determine the relative angle of the first body where the display screen of the electronic device is located relative to the reference plane if the light incident direction represents that the ambient light enters the light sensor from the area above the light sensor.

[0210] In a possible implementation, the light-sensitive sensor of the electronic device includes a plurality of light-sensitive points, or the electronic device is provided with a plurality of light-sensitive sensors located at different positions;

[0211] Accordingly, the direction determination unit includes:

[0212] A first direction determining unit, configured to determine the light entry direction of the ambient light entering the light sensor based on the distribution of light intensities sensed by different light sensing points in the light sensor;

[0213] or,

[0214] The second direction determining unit is used to determine the light entry direction of the ambient light entering the multiple photosensitive sensors based on the distribution of the light intensity sensed by the multiple photosensitive sensors.

[0215] In yet another possible implementation, the relative angle determination unit is specifically configured to determine a relative angle of a first body on which the display screen of the electronic device is located relative to a horizontal plane or a vertical plane.

[0216] In another possible implementation, the electronic device includes a first body on which a display screen is located and a second body rotatably connected to the first body;

[0217] The relative angle determination unit further includes:

[0218] An angle determination unit, used to determine a relative angle between the first body where the display screen is located and the second body;

[0219] The coefficient determination unit includes:

[0220] A first coefficient determination unit, configured to determine a brightness compensation coefficient suitable for compensating for the ambient light brightness based on the relative angle if the relative angle is greater than a set angle threshold;

[0221] The second coefficient determination unit is used to determine that the brightness compensation coefficient is zero if the relative angle is not greater than a set angle threshold.

[0222] In yet another possible implementation, the device further includes:

[0223] The fixed compensation unit is used to compensate the ambient light brightness according to a set fixed compensation coefficient if the ambient light represented by the incident light direction does not enter the photosensitive sensor from the upper area of ​​the photosensitive sensor to obtain the compensated target ambient light brightness.

[0224] In another possible implementation, the coefficient determination unit is specifically used to determine the brightness compensation coefficient corresponding to the relative angle according to a brightness compensation curve; or to determine the brightness compensation coefficient required to compensate for the relative angle according to a set brightness compensation function.

[0225] In another possible implementation, the brightness adjustment unit includes at least one of the following:

[0226] A first brightness adjustment unit, used to adjust the brightness of the display screen of the electronic device according to the target ambient light brightness;

[0227] The second brightness adjustment unit is used to adjust the keyboard backlight brightness of the electronic device according to the target ambient light brightness.

[0228] In another possible implementation, the electronic device includes a first body and a second body, and the first body is rotatably connected to the second body;

[0229] The relative angle determination unit comprises:

[0230] The relative angle determination subunit is used to determine the relative angle of the display screen of the electronic device relative to the horizontal plane based on the relative angle between the first body and the second body when it is determined that the plane where the second body is located is in the horizontal plane.

[0231] In another aspect, the present application also provides an electronic device, such as Fig.10 As shown, it shows a schematic diagram of a composition structure of the electronic device, the electronic device can be any type of electronic device, and the electronic device at least includes a processor 1001 and a memory 1002;

[0232] The processor 1001 is used to execute the brightness adjustment method in any one of the above embodiments.

[0233] The memory 1002 is used to store programs required by the processor to perform operations.

[0234] It is understandable that the electronic device may further include a display unit 1003 and an input unit 1004 .

[0235] Of course, the electronic device may also have Fig.10There may be more or fewer components, without limitation.

[0236] On the other hand, the present application also provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the brightness adjustment method described in any one of the above embodiments.

[0237] The present application also proposes a computer program, which includes computer instructions stored in a computer-readable storage medium. When the computer program is run on an electronic device, it is used to execute the brightness adjustment method in any of the above embodiments.

[0238] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. At the same time, the features recorded in each embodiment in this specification can be replaced or combined with each other, so that professionals in the field can implement or use this application. For device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0239] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0240] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A brightness adjustment method, comprising: Obtaining the ambient light brightness of the environment in which the electronic device is located, wherein the ambient light brightness is obtained by a photosensor disposed on the electronic device; Determining the direction of the ambient light entering the light-sensitive sensor; If the light incident direction indicates that the ambient light enters the light sensor from the area above the light sensor, determine a relative angle of the first body where the display screen of the electronic device is located relative to the reference plane; Based on the relative angle, determining a brightness compensation coefficient suitable for compensating the ambient light brightness; using the brightness compensation coefficient to compensate the ambient light brightness to obtain a compensated target ambient light brightness; If the light incident direction indicates that the ambient light does not enter the photosensitive sensor from the upper area of ​​the photosensitive sensor, the ambient light brightness is compensated according to a set fixed compensation coefficient to obtain a compensated target ambient light brightness; The output light brightness of the electronic device is adjusted according to the target ambient light brightness.

2. The method according to claim 1, wherein the photosensitive sensor comprises a plurality of photosensitive points, or the electronic device is provided with a plurality of photosensitive sensors located at different positions; The determining the light direction of the ambient light entering the light-sensitive sensor includes: Determine the light direction of the ambient light entering the light sensor based on the distribution of light intensity sensed by different photosensing points in the light sensor; or, Based on the distribution of light intensities sensed by the multiple light sensors, the light entry direction of the ambient light entering the multiple light sensors is determined.

3. The method according to claim 1 or 2, wherein determining the relative angle of the first body where the display screen of the electronic device is located relative to the reference plane comprises: The relative angle of a first body where a display screen of the electronic device is located relative to a horizontal plane or a vertical plane is determined.

4. The method according to claim 3, wherein the electronic device comprises a first body on which a display screen is located and a second body rotatably connected to the first body; The step of determining a relative angle of a first body where a display screen of the electronic device is located relative to a reference plane further includes: Determine a relative angle between the first body where the display screen is located and the second body; The step of determining a brightness compensation coefficient suitable for compensating for the brightness of the ambient light based on the relative angle comprises: If the relative angle is greater than a set angle threshold, determining a brightness compensation coefficient suitable for compensating for the ambient light brightness based on the relative angle; If the relative angle is not greater than the set angle threshold, the brightness compensation coefficient is determined to be zero.

5. The method according to claim 1, wherein determining a compensation coefficient suitable for compensating for ambient light brightness based on the relative angle comprises: Determining a brightness compensation coefficient corresponding to the relative angle according to a brightness compensation curve; or, According to the set brightness compensation function, a brightness compensation coefficient required to compensate the relative angle is determined.

6. The method according to claim 1, wherein the step of adjusting the output brightness of the electronic device according to the target ambient light brightness comprises at least one of the following: According to the target ambient light brightness, adjusting the display screen brightness of the electronic device; The keyboard backlight brightness of the electronic device is adjusted according to the target ambient light brightness.

7. The method according to claim 3, wherein the electronic device comprises a first body and a second body, wherein the first body is rotatably connected to the second body; The determining of the relative angle of the first body where the display screen of the electronic device is located relative to the horizontal plane or relative to the vertical plane includes: When it is determined that the plane where the second body is located is in a horizontal plane, the relative angle of the display screen of the electronic device relative to the horizontal plane is determined based on the relative angle between the first body and the second body.

8. A brightness adjustment device, comprising: A brightness sensing unit, used to obtain the ambient light brightness of the environment in which the electronic device is located, wherein the ambient light brightness is obtained by a light-sensitive sensor disposed on the electronic device; Determining the direction of the ambient light entering the light-sensitive sensor; A relative angle determination unit, configured to determine a relative angle of a first body where a display screen of the electronic device is located relative to a reference plane if the incident light direction indicates that ambient light enters the light sensor from an area above the light sensor; A coefficient determination unit, configured to determine a brightness compensation coefficient suitable for compensating for the brightness of the ambient light based on the relative angle; A brightness compensation unit, used to compensate the ambient light brightness by using the brightness compensation coefficient to obtain a compensated target ambient light brightness; A brightness adjustment unit, used to adjust the output light brightness of the electronic device according to the target ambient light brightness; The brightness adjustment device is also used to compensate the ambient light brightness according to a set fixed compensation coefficient to obtain the compensated target ambient light brightness if the ambient light represented by the incoming light direction does not enter the photosensitive sensor from the upper area of ​​the photosensitive sensor.

Citation Information

Patent Citations

  • Method for adjusting backlight brightness of display unit and electronic equipment

    CN103971648A

  • Control method and control device

    CN106506831A