Screen brightness control method, controller and computer readable storage medium

By judging the reason for the brightness change in front of the screen, determining whether there is an object blocking light or changing posture, and adjusting the brightness according to the screen facing the ground, the problem of erroneous brightness adjustment in the prior art is solved, and more accurate brightness control is achieved.

CN120472860APending Publication Date: 2025-08-12CHENGDU TIANLONG TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510534430.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

Existing mobile phone automatic brightness adjustment technology is prone to brightness adjustment errors under complex lighting conditions.

Method used

By determining whether the brightness change in front of the screen is due to the object blocking light or posture change, if so, it is determined whether the screen is facing the ground. If so, the screen will be turned off, otherwise the brightness will remain unchanged. If not, the brightness will be adjusted automatically.

Benefits of technology

Reduces the screen's overly bright or too dark due to other reasons, and improves the accuracy of the screen's brightness adjustment under complex lighting conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120472860A_ABST
    Figure CN120472860A_ABST
Patent Text Reader

Abstract

The invention discloses a screen brightness control method, a controller and a computer readable storage medium. According to the screen brightness control method, when a brightness change value in front of a screen is greater than a preset brightness change value, whether the brightness change is that an object in front of the screen shields light or the posture of the screen is changed is judged; and if the brightness change is not that the light is shielded by the object in front of the screen and the posture of the screen is not changed, controlling the screen to keep automatic brightness adjustment. If the brightness change is that an object shields light in front of the screen or the posture of the screen is changed, whether the screen faces the ground or not is judged. If the screen faces the ground, the screen is controlled to be turned off. And if the screen does not face the ground, keeping the brightness of the screen unchanged. According to the brightness control, the situation that the screen is too bright and too dark due to other reasons is reduced, and the brightness adjustment accuracy of the screen under the complex light condition is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a method for controlling screen brightness, a controller, and a computer-readable storage medium. Background Art

[0002] On today's mobile devices, such as mobile phones and tablets, screen brightness is typically adjusted using automatic brightness control technology. This technology uses a camera to sense the ambient light and adjusts the screen brightness based on changes in ambient light.

[0003] However, existing mobile phone automatic brightness adjustment technology mainly relies on ambient light sensors, which is prone to brightness adjustment errors under complex lighting conditions. Summary of the Invention

[0004] In view of the above problems, the present application provides a screen brightness control method, a controller and a computer-readable storage medium, which can improve the accuracy of brightness adjustment under complex lighting conditions.

[0005] In order to solve the above technical problems, a technical solution adopted in the present application is to provide a method for controlling screen brightness, which includes: in response to a brightness change value in front of the screen being greater than a preset brightness change value, judging whether the brightness change is caused by an object in front of the screen blocking the light or a change in the posture of the screen; if the brightness change is not caused by an object in front of the screen blocking the light and a change in the posture of the screen, controlling the screen to maintain automatic brightness adjustment; if the brightness change is caused by an object in front of the screen blocking the light or a change in the posture of the screen, judging whether the screen is facing the ground; if the screen is facing the ground, controlling the screen to turn off; if the screen is not facing the ground, keeping the brightness of the screen unchanged.

[0006] In a possible embodiment, after the step of controlling the screen to turn off if the screen is facing the ground, the step further includes: in response to detecting that the screen is not facing the ground or the brightness of the environment has changed, again executing the step of determining whether the brightness change is due to an object in front of the screen blocking the light or the posture of the screen has changed.

[0007] In a possible embodiment, after the step of maintaining the brightness of the screen unchanged if the screen is not facing the ground, the step further includes: in response to detecting a brightness change, controlling the screen to automatically adjust the brightness, and when the brightness change value in front of the screen is greater than a preset brightness change value, executing the step of determining whether the brightness change is due to an object in front of the screen blocking the light or the posture of the screen has changed.

[0008] In a possible embodiment, in response to the brightness change value in front of the screen being greater than a preset brightness change value, the step of judging whether the brightness change is caused by an object in front of the screen blocking the light or a change in the posture of the screen specifically includes: judging whether the brightness change value in front of the screen is greater than the preset brightness change value; if the brightness change value in front of the screen is not greater than the preset brightness change value, controlling the screen to maintain automatic brightness adjustment; if the brightness change value in front of the screen is greater than the preset brightness change value, judging whether the brightness change is caused by an object in front of the screen blocking the light or a change in the posture of the screen.

[0009] In a possible implementation, the step of determining whether the brightness change is caused by an object in front of the screen blocking light specifically includes: acquiring an image in front of the screen through a camera device; and focusing and measuring the object in the image to determine whether the object blocks light.

[0010] In a possible implementation, the focus and distance measurement method is a dual-camera focus and distance measurement method.

[0011] In a possible implementation, the dual-camera focus and distance measurement method includes: acquiring two images through the two cameras, and sequentially performing image matching, parallax calculation, and distance calculation on the two images to perform focus and distance measurement.

[0012] In a possible implementation, the light is sunlight as a light source, and a gyroscope attitude determination method is used to determine whether the screen is facing the ground.

[0013] To solve the above technical problems, another technical solution adopted in this application is to provide a controller, which includes a processor and a memory connected to each other; wherein, the memory stores program instructions, and the processor calls the program instructions from the memory to execute the above control method.

[0014] In order to solve the above technical problems, another technical solution adopted in the present application is to provide a computer-readable storage medium on which program instructions are stored, and the program instructions implement the above control method when executed by a processor.

[0015] Different from the prior art, the present application provides a screen brightness control method, controller and computer-readable storage medium. When the brightness change value in front of the screen is greater than a preset brightness change value, the screen brightness control method determines whether the brightness change is caused by an object in front of the screen blocking the light or the screen's posture has changed; if the brightness change is not caused by an object in front of the screen blocking the light or the screen's posture has changed, the screen is controlled to maintain automatic brightness adjustment; if the brightness change is caused by an object in front of the screen blocking the light or the screen's posture has changed, it is determined whether the screen is facing the ground; if the screen is facing the ground, the screen is controlled to turn off; if the screen is not facing the ground, the screen brightness is kept unchanged. The above-mentioned brightness control reduces the situation where the screen is too bright or too dark due to other reasons, and improves the accuracy of the screen's brightness adjustment under complex lighting conditions.

[0016] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. 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 any creative work.

[0018] Figure 1 This is a flow chart of the first embodiment of the screen brightness control method of the present application;

[0019] Figure 2 for Figure 1 A flowchart illustrating an embodiment of the step 1 of determining whether the brightness change is caused by an object blocking light in front of the screen;

[0020] Figure 3 This is a flow chart of a second embodiment of the screen brightness control method of the present application;

[0021] Figure 4 This is a structural block diagram of an embodiment of the controller of the present application;

[0022] Figure 5 This is a structural block diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0023] The following embodiments of the technical solution of the present application are described in detail. The following embodiments are only used to more clearly illustrate the technical solution of the present application and are therefore only used as examples and are not intended to limit the scope of protection of the present application.

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.

[0025] In the description of the embodiments of the present application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood as indicating or implying relative importance or implicitly indicating the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, unless otherwise clearly and specifically defined, the term "multiple" refers to more than two (including two), similarly, "multiple groups" refers to more than two (including two), and "multiple pieces" refers to more than two (including two).

[0026] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0027] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0028] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.

[0029] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.

[0030] Existing devices usually adjust screen brightness through automatic brightness adjustment technology, but under complex lighting conditions, the automatic brightness adjustment technology has the problem of brightness adjustment errors.

[0031] Based on the above considerations, in order to improve the problem of screen brightness adjustment errors, the present application proposes a screen brightness control method, a controller and a computer-readable storage medium.

[0032] In the present application, the screen may specifically be a screen of a display device such as a mobile phone, a tablet, a smart watch, etc. For the sake of convenience, the following embodiments are described by taking the screen of an embodiment of the present application as a mobile phone screen as an example.

[0033] See also Figure 1 , Figure 1 This is a flow chart of a first embodiment of the screen brightness control method of the present application. In a specific embodiment, the screen brightness control method may include:

[0034] S11: In response to the brightness change value in front of the screen being greater than the preset brightness change value, determine whether the brightness change is caused by an object in front of the screen blocking light or a change in the posture of the screen.

[0035] If the brightness change is not caused by an object blocking the light in front of the screen or a change in the screen posture, execute S121; if the brightness change is caused by an object blocking the light in front of the screen or a change in the screen posture, execute S122.

[0036] The brightness in front of the screen is positively correlated with the amount of light hitting the screen. The more light hitting the screen, the greater the brightness in front of the screen, and the less light hitting the screen, the smaller the brightness in front of the screen. The light source can be sunlight, a lighting device, etc. The reason for the change in brightness in front of the screen may be that the light emitted by the light source is weakened or strengthened, or the reason for the change in brightness in front of the screen is that there is an object in front of the screen blocking the light. The reason for the change in brightness in front of the screen may also be that the posture of the screen has changed. For example, after the screen angle changes, the screen faces the light source, and the screen is closer to the light source. More light will hit the screen, and the brightness in front of the screen will increase. If the screen angle is changed so that the screen is facing away from the light source, less light will hit the screen, and the brightness in front of the screen will decrease.

[0037] Furthermore, in some specific embodiments, S11 may include: determining whether the brightness change value in front of the screen is greater than a preset brightness change value; if the brightness change value in front of the screen is not greater than the preset brightness change value, controlling the screen to maintain automatic brightness adjustment; if the brightness change value in front of the screen is greater than the preset brightness change value, determining whether the brightness change is due to an object in front of the screen blocking the light or the posture of the screen has changed.

[0038] Further, please refer to Figure 2 , Figure 2 for Figure 1 In some specific embodiments, the step of determining whether the brightness change is caused by an object in front of the screen blocking the light may include:

[0039] S111: Acquire an image in front of the screen through a camera device.

[0040] The camera device may be a front-facing camera on the device screen, which acquires the image in front of the screen through the front-facing camera.

[0041] S112: Focusing and measuring the distance of the object in the image to determine whether the object blocks light.

[0042] Specifically, focus ranging is used to measure the distance between an object in an image and the screen. This distance can be determined by refocusing the object to obtain an image. The focus ranging method can be a dual-camera focus ranging method or a single-camera focus ranging method, without limitation.

[0043] In a specific embodiment, the dual-camera focus and distance measurement method may include: acquiring two images through two cameras, and sequentially performing image matching, parallax calculation, and distance calculation on the two images to perform focus and distance measurement.

[0044] Specifically, the two cameras are positioned at different positions on the screen, and two images are acquired by shooting simultaneously with the two cameras. Image matching refers to finding the same feature points of the object to be measured in the two images using an image processing algorithm. Specifically, the image processing algorithm may be a SIFT (Scale-invariant feature transform) algorithm, a SURF (Speeded Up Robust Features) algorithm, or the like. After finding the same feature points of the object to be measured in the two images, a disparity calculation is performed. The disparity calculation specifically refers to calculating the positional difference between each pair of feature points in the two images. The distance of the object can then be calculated. The distance calculation process is to obtain the distance between the object to be measured and the screen through triangulation based on the previous disparity calculation and the spacing between the two cameras. After obtaining the distance between the object and the screen, the angle between the object to be measured and the screen is combined to determine whether the object is blocking the screen.

[0045] S121: Control the screen to maintain automatic brightness adjustment.

[0046] This step is performed when the brightness change value in front of the screen is greater than the preset brightness change value, and the reason for the brightness change is not the existence of an object blocking the light in front of the screen nor the change in the posture of the screen. Among them, when the reason for the brightness change is not the existence of an object blocking the light in front of the screen nor the change in the posture of the screen, it means that the reason for the brightness change is that the light emitted by the light source has weakened or the light emitted by the light source has increased. In this scenario, the screen maintains automatic brightness adjustment, and when the light emitted by the light source is enhanced and the brightness in front of the screen increases, the brightness of the screen is increased. When the light emitted by the light source is weakened and the brightness in front of the screen becomes smaller, the brightness of the screen is reduced, so that the user can have a better visual experience under different light intensities and protect the user's eyes.

[0047] S122: Determine whether the screen is facing the ground.

[0048] If the screen is facing the ground, execute S131; if the screen is not facing the ground, execute S132.

[0049] This step is performed when the brightness change in front of the screen is caused by an object blocking the light or the posture of the screen has changed.

[0050] In one specific embodiment, sunlight is used as the light source, and a gyroscope attitude determination method is used to determine whether the screen is facing the ground. Alternatively, the gyroscope attitude determination method can be used to determine whether the screen's attitude has changed. The gyroscope attitude determination method uses sensors within the device to measure the device's angular velocity, determining the device's attitude and orientation by detecting the device's rotational speed on different axes.

[0051] S131: Control the screen to turn off.

[0052] This step is performed when the screen is facing the ground. When the screen is facing the ground, the user is not using the device or is lying down to view the screen. In this scenario, automatically turning the screen off can reduce device power consumption and remind the user not to view the screen in an inappropriate posture, effectively protecting the user's eyes. Furthermore, turning the screen off when the screen is facing the ground allows the user to quickly capture a screenshot, improving operational convenience.

[0053] S132: Keep the screen brightness unchanged.

[0054] If the brightness change of the screen is due to an object in front of the screen blocking the light or the posture of the screen has changed, and the screen is not facing the ground, the brightness of the screen will be kept unchanged. The related technology provides a method for controlling screen brightness. In the related technology, the device screen uses automatic brightness adjustment technology to adjust the brightness. When an object suddenly appears in front of the screen to block the light, such as when the user's hand blocks the device, or when the angle of the screen changes, the automatic brightness adjustment technology in the related technology will make an incorrect judgment and automatically change the brightness of the screen, resulting in an incorrect brightness adjustment, affecting the user's viewing experience. In the present application, when the brightness change of the screen is due to an object in front of the screen blocking the light or the posture of the screen has changed, and the screen is not facing the ground, the present application will keep the brightness of the screen unchanged, reducing the situation where the screen is too bright or too dark due to other reasons, and improving the accuracy of the brightness adjustment of the screen under complex lighting conditions.

[0055] Different from the prior art, the present application provides a method for controlling screen brightness. When the brightness change value in front of the screen is greater than a preset brightness change value, the method determines whether the brightness change is caused by an object in front of the screen blocking the light or the screen's posture has changed; if the brightness change is not caused by an object in front of the screen blocking the light or the screen's posture has changed, the method controls the screen to maintain automatic brightness adjustment; if the brightness change is caused by an object in front of the screen blocking the light or the screen's posture has changed, the method determines whether the screen is facing the ground; if the screen is facing the ground, the method controls the screen to turn off; if the screen is not facing the ground, the method maintains the screen's brightness unchanged. The above-mentioned brightness control reduces the situation where the screen is too bright or too dark due to other reasons, and improves the accuracy of the screen's brightness adjustment under complex lighting conditions.

[0056] See also Figure 3 , Figure 3 This is a flow chart of a second embodiment of the screen brightness control method of the present application. In the second embodiment, the screen brightness control method may include:

[0057] S21: In response to the brightness change value in front of the screen being greater than the preset brightness change value, determine whether the brightness change is caused by an object in front of the screen blocking light or a change in the posture of the screen.

[0058] If the brightness change is not caused by an object blocking the light in front of the screen or a change in the posture of the screen, execute S221; if the brightness change is caused by an object blocking the light in front of the screen or a change in the posture of the screen, execute S222.

[0059] The brightness in front of the screen is positively correlated with the amount of light hitting the screen. The more light hitting the screen, the greater the brightness in front of the screen, and the less light hitting the screen, the smaller the brightness in front of the screen. The light source can be sunlight, a lighting device, etc. The reason for the change in brightness in front of the screen may be that the light emitted by the light source is weakened or strengthened, or the reason for the change in brightness in front of the screen is that there is an object in front of the screen blocking the light. The reason for the change in brightness in front of the screen may also be that the posture of the screen has changed. For example, after the screen angle changes, the screen faces the light source, and the screen is closer to the light source. More light will hit the screen, and the brightness in front of the screen will increase. If the screen angle is changed so that the screen is facing away from the light source, less light will hit the screen, and the brightness in front of the screen will decrease.

[0060] S221: Control the screen to maintain automatic brightness adjustment.

[0061] This step is performed when the brightness change value in front of the screen is greater than the preset brightness change value, and the reason for the brightness change is not the existence of an object blocking the light in front of the screen and the change in the posture of the screen. Among them, when the reason for the brightness change is not the existence of an object blocking the light in front of the screen and the change in the posture of the screen, it means that the reason for the brightness change is that the light emitted by the light source is weakened or the light emitted by the light source is enhanced. In this scenario, the screen maintains automatic brightness adjustment, and when the light emitted by the light source is enhanced and the brightness in front of the screen increases, the brightness of the screen is increased. When the light emitted by the light source is weakened and the brightness in front of the screen becomes smaller, the brightness of the screen is reduced, so that the user can have a better visual experience under different light intensities and protect the user's eyes.

[0062] S222: Determine whether the screen is facing the ground.

[0063] If the screen is facing the ground, execute S231; if the screen is not facing the ground, execute S232.

[0064] This step is performed when the brightness change in front of the screen is caused by an object blocking the light or the posture of the screen has changed.

[0065] S231: Control the screen to turn off.

[0066] This step is performed when the screen is facing the ground. When the screen is facing the ground, the user is not using the device or is lying down to view the screen. In this scenario, automatically turning the screen off can reduce device power consumption and remind the user not to view the screen in an inappropriate posture, effectively protecting the user's eyes. Furthermore, turning the screen off when the screen is facing the ground allows the user to quickly capture a screenshot, improving operational convenience.

[0067] S2311: Determine whether the screen is not facing the ground or the brightness of the environment changes.

[0068] This step is performed after executing S231.

[0069] If the screen is not facing the ground or the brightness of the environment has changed, S21 is executed. If the screen is facing the ground and the brightness of the environment has not changed, S233 is continued to be executed.

[0070] S233: Control the screen to turn off.

[0071] S232: Keep the screen brightness unchanged.

[0072] If the brightness change of the screen is due to an object in front of the screen blocking the light or the posture of the screen has changed, and the screen is not facing the ground, the brightness of the screen will be kept unchanged. The related technology provides a method for controlling screen brightness. In the related technology, the device screen uses automatic brightness adjustment technology to adjust the brightness. When an object suddenly appears in front of the screen to block the light, such as when the user's hand blocks the device, or when the angle of the screen changes, the automatic brightness adjustment technology in the related technology will make an incorrect judgment and automatically change the brightness of the screen, resulting in an incorrect brightness adjustment, affecting the user's viewing experience. In the present application, when the brightness change of the screen is due to an object in front of the screen blocking the light or the posture of the screen has changed, and the screen is not facing the ground, the present application will keep the brightness of the screen unchanged, reduce the situation where the screen is too bright or too dark due to other reasons, and improve the accuracy of the brightness adjustment of the screen under complex lighting conditions.

[0073] S2321: Determine whether the brightness of the screen changes.

[0074] If the brightness of the screen changes, execute S2323; if the brightness of the screen does not change, execute S2322.

[0075] This step is performed after executing S232.

[0076] S2322: Control the screen to automatically adjust brightness.

[0077] S2323: Determine whether the brightness change value in front of the screen is greater than a preset brightness change value.

[0078] If the brightness change value in front of the screen is greater than the preset brightness value, then execute S21. If the brightness change value in front of the screen is not greater than the preset brightness value, then execute S2324.

[0079] S2324: Control the screen to automatically adjust brightness.

[0080] Different from the prior art, the present application provides a method for controlling screen brightness. When the brightness change value in front of the screen is greater than a preset brightness change value, the method determines whether the brightness change is caused by an object in front of the screen blocking the light or the screen's posture has changed; if the brightness change is not caused by an object in front of the screen blocking the light or the screen's posture has changed, the method controls the screen to maintain automatic brightness adjustment; if the brightness change is caused by an object in front of the screen blocking the light or the screen's posture has changed, the method determines whether the screen is facing the ground; if the screen is facing the ground, the method controls the screen to turn off; if the screen is not facing the ground, the method maintains the screen's brightness unchanged. The above-mentioned brightness control reduces the situation where the screen is too bright or too dark due to other reasons, and improves the accuracy of the screen's brightness adjustment under complex lighting conditions.

[0081] Correspondingly, this application also proposes a controller, see Figure 4 , Figure 4 4 is a block diagram of a controller according to an embodiment of the present invention. The controller 40 includes a processor 401 and a memory 402 connected to each other. The memory 402 stores program instructions, and the processor 401 retrieves the program instructions from the memory 402 to execute the steps of the control method according to the above embodiment.

[0082] Specifically, the processor 401 is used to control itself and the memory 402 to implement the steps of any of the above-mentioned control method embodiments. The processor 401 can also be called a CPU (Central Processing Unit). The processor 401 may be an integrated circuit chip with signal processing capabilities. The processor 401 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 401 can be implemented by an integrated circuit chip.

[0083] For the specific content of the control method implemented by the processor 401 of this application, please refer to the content of the control method embodiment of the above-mentioned thermal management device, which will not be repeated here.

[0084] Correspondingly, this application also proposes a computer-readable storage medium, see Figure 5 , Figure 5 The computer-readable storage medium 50 stores program instructions 500, which, when executed by a processor, implement the steps of the control method according to any of the above embodiments.

[0085] The computer-readable storage medium 50 can specifically be a medium that can store program instructions 500, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or it can also be a server that stores the program instructions 500. The server can send the stored program instructions 500 to other devices for execution, or it can also execute the stored program instructions 500 itself.

[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A method for controlling screen brightness, characterized in that: The control method includes: In response to the brightness change value in front of the screen being greater than a preset brightness change value, determining whether the brightness change is due to an object in front of the screen blocking light or a change in the posture of the screen; If the brightness change is not caused by an object blocking the light in front of the screen or a change in the screen's posture, the screen will be controlled to maintain automatic brightness adjustment. If the brightness change is due to an object blocking the light in front of the screen or the screen's posture has changed, determine whether the screen is facing the ground; If the screen is facing the ground, the screen is controlled to turn off; if the screen is not facing the ground, the brightness of the screen is kept unchanged.

2. The control method according to claim 1, characterized in that: After the step of controlling the screen to turn off if the screen is facing the ground, the method further includes: In response to detecting that the screen is not facing the ground or the brightness of the environment changes, the step of determining whether the brightness change is caused by an object in front of the screen blocking the light or a change in the posture of the screen is performed again.

3. The control method according to claim 1, characterized in that: After the step of maintaining the brightness of the screen unchanged if the screen is not facing the ground, the method further includes: In response to detecting a brightness change, the screen is controlled to automatically adjust its brightness, and when the brightness change value in front of the screen is greater than a preset brightness change value, a step is executed to determine whether the brightness change is caused by an object in front of the screen blocking the light or a change in the posture of the screen.

4. The control method according to claim 1, wherein: The step of determining, in response to the brightness change value in front of the screen being greater than the preset brightness change value, whether the brightness change is due to an object in front of the screen blocking light or a change in the posture of the screen specifically includes: Determine whether the brightness change value in front of the screen is greater than the preset brightness change value; If the brightness change value in front of the screen is not greater than the preset brightness change value, the screen is controlled to maintain automatic brightness adjustment. If the brightness change value in front of the screen is greater than the preset brightness change value, it is determined whether the brightness change is due to an object blocking the light in front of the screen or the screen posture has changed.

5. The control method according to claim 1, characterized in that: The step of determining whether the brightness change is caused by an object blocking light in front of the screen specifically includes: Acquire the image in front of the screen through a camera device; Focusing and ranging are performed on the object in the image to determine whether the object blocks light.

6. The control method according to claim 5, characterized in that: The focus and distance measurement method is a dual-camera focus and distance measurement method.

7. The control method according to claim 6, characterized in that: The dual-camera focus ranging method includes: The two images are acquired by the two camera devices, and image matching, parallax calculation, and distance calculation are sequentially performed on the two images to perform focus and distance measurement.

8. The control method according to claim 1, characterized in that: The light source is sunlight, and a gyroscope attitude judgment method is used to determine whether the screen is facing the ground.

9. A controller, characterized in that: The invention comprises a processor and a memory connected to each other; wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the control method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that Program instructions are stored thereon, and when the program instructions are executed by a processor, the control method according to any one of claims 1 to 8 is implemented.