Display parameter determination method and device, electronic equipment and storage medium
By acquiring and analyzing the current and historical illuminance of ambient light, directly generating display parameters in response to changes in ambient light, solving the problem of insufficient flexibility in automatic brightness adjustment and improving the adjustment effect and response ability.
Patent Information
- Application Number
- CN202311244077.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2025-03-25
AI Technical Summary
Automatic brightness adjustment is not flexible enough when ambient light changes, resulting in poor adjustment effect.
By obtaining the current illuminance and historical illuminance of ambient light, determine the current change trend. If the trend meets the set conditions, directly generate display parameters and skip the anti-shake threshold comparison.
Improves the flexibility and accuracy of automatic brightness adjustment and enhances the ability to respond to ambient light changes.
Smart Images

Figure CN119694271A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a method and device for determining display parameters, an electronic device, and a storage medium. Background Art
[0002] Automatic brightness adjustment refers to using the current ambient light intensity reported by the light sensor to calculate the corresponding electronic device display screen illumination, and then calculating the display screen backlight value based on the illumination, thereby updating the display parameters of the display screen. Some optimization measures for automatic brightness adjustment, such as optimizing the light sensor to make the light perception data obtained more accurate, optimizing the calculation process from ambient light to display screen illumination, etc., are all aimed at making the automatic brightness adjustment function more intelligent and improving the user experience.
[0003] In the related art, during the automatic brightness adjustment process, if the ambient light changes, the display parameters can only be changed if the ambient light exceeds the anti-shake threshold. In this way, the automatic brightness adjustment cannot adapt well to the change of ambient light, resulting in the inflexibility of the automatic brightness adjustment and affecting the effect of the automatic brightness adjustment. Summary of the invention
[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the purpose of the present disclosure is to propose a display parameter determination method, device, electronic device, non-transitory computer-readable storage medium storing computer instructions, and computer program product, so that automatic brightness adjustment can better adapt to changes in ambient light, improve the flexibility of automatic brightness adjustment, and improve the effect of automatic brightness adjustment.
[0006] The display parameter determination method proposed in the embodiment of the first aspect of the present disclosure includes: if the target mode is turned on, obtaining the current illuminance of the ambient light, wherein the target mode is a mode that supports automatic brightness adjustment; determining the current change trend related to the current illuminance based on a first reference illuminance, wherein the first reference illuminance is the ambient light illuminance obtained historically; and if the current change trend meets the set conditions, generating the first display parameter based on the current illuminance.
[0007] A display parameter determination device proposed in an embodiment of the second aspect of the present disclosure includes: an acquisition module, used to acquire the current illuminance of ambient light when a target mode is turned on, wherein the target mode is a mode that supports automatic brightness adjustment; a determination module, used to determine a current change trend related to the current illuminance based on a first reference illuminance, wherein the first reference illuminance is the ambient light illuminance acquired historically; and a generation module, used to generate a first display parameter based on the current illuminance when the current change trend meets a set condition.
[0008] The electronic device proposed in the embodiment of the third aspect of the present disclosure includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method proposed in the above embodiment of the present disclosure is implemented.
[0009] The fourth aspect of the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the above embodiment of the present disclosure.
[0010] The fifth aspect of the present disclosure provides a computer program product. When the instructions in the computer program product are executed by a processor, the method provided in the above embodiment of the present disclosure is performed.
[0011] The present disclosure provides a display parameter determination method, device, electronic device, and non-transitory computer-readable storage medium storing computer instructions. If a target mode is turned on, the current illuminance of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment, and a current change trend related to the current illuminance is determined based on a first reference illuminance, wherein the first reference illuminance is the ambient light illuminance historically obtained, and if the current change trend meets the set conditions, a first display parameter is generated based on the current illuminance, so that the automatic brightness adjustment can better adapt to changes in the ambient light, improve the flexibility of the automatic brightness adjustment, and improve the automatic brightness adjustment effect.
[0012] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0014] Figure 1 is a flow chart of a method for determining display parameters proposed in an embodiment of the present disclosure;
[0015] Figure 2 is a flow chart of a method for determining display parameters proposed in another embodiment of the present disclosure;
[0016] Figure 3 is a flow chart of a method for determining display parameters proposed in another embodiment of the present disclosure;
[0017] Figure 4 is a structural diagram of a display parameter determination device proposed in an embodiment of the present disclosure;
[0018] Figure 5A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present disclosure, and are not to be construed as limitations of the present disclosure. On the contrary, the embodiments of the present disclosure include all changes, modifications, and equivalents that fall within the spirit and connotation of the appended claims.
[0020] Figure 1 It is a flowchart of a method for determining display parameters proposed in an embodiment of the present disclosure.
[0021] This embodiment takes the display parameter determination method configured as a display parameter determination device as an example. In this embodiment, the display parameter determination method can be configured in the display parameter determination device. The display parameter determination device can be set in a server, or can also be set in an electronic device, without limitation. This embodiment takes the display parameter determination method configured in an electronic device as an example. Among them, the electronic device is a hardware device such as a smart phone, a tablet computer, a personal digital assistant, an e-book, etc. with various operating systems.
[0022] It should be noted that the execution subject of the embodiment of the present disclosure may be, for example, a central processing unit (CPU) in a server or electronic device in terms of hardware, or may be, for example, a related background service in a server or electronic device in terms of software, without limitation.
[0023] like Figure 1 As shown, the display parameter determination method includes:
[0024] S101: If the target mode is turned on, the current illumination of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment.
[0025] The disclosed embodiments can be applied in electronic devices, such as terminals. Usually, the terminal supports automatic brightness adjustment, that is, the current ambient light intensity reported by the light sensor is used to calculate the corresponding terminal display screen illuminance, and then the display screen backlight value is calculated according to the illuminance, thereby updating the display parameters of the display screen. In the disclosed embodiments, the target mode refers to a mode that supports automatic brightness adjustment. If the target mode is turned on, it means that automatic brightness adjustment is supported. At this time, the current illuminance of the ambient light can be dynamically obtained. For example, the current illuminance of the ambient light is detected in real time. The current illuminance refers to the illuminance of the ambient light currently detected.
[0026] In the embodiment of the present disclosure, the current illuminance of the ambient light can be detected based on the light sensor configured in the terminal. The unit of illuminance is Lux. Then, automatic brightness adjustment can be implemented with reference to the current illuminance.
[0027] S102: Determine a current change trend related to the current illumination according to a first reference illumination, wherein the first reference illumination is an ambient light illumination acquired historically.
[0028] The first reference illuminance refers to the illuminance of ambient light used as a reference for comparison. The first reference illuminance may be the illuminance of ambient light detected before the current illuminance. The first reference illuminance is used to determine the change trend of the current illuminance. The change trend may be referred to as the current change trend. In some embodiments, the current change trend indicates whether the current illuminance is increasing or decreasing relative to the first reference illuminance.
[0029] In some embodiments, the current illuminance and the first reference illuminance may be compared in magnitude, and a trend of increasing or decreasing the current illuminance relative to the first reference illuminance may be determined to obtain a current change trend related to the current illuminance.
[0030] In some embodiments, the current change trend can be used to determine whether to perform automatic brightness adjustment. In other words, in the embodiments of the present disclosure, the current change trend of the current illumination of the ambient light can be referred to to determine whether to perform automatic brightness adjustment.
[0031] S103: If the current change trend meets the set conditions, generate a first display parameter according to the current illumination.
[0032] In some embodiments, the set condition may, for example, be a threshold condition for determining direct execution of automatic brightness adjustment. If it is determined that the current change trend meets the set condition, the automatic brightness adjustment may be directly executed. There is no need to determine whether the change in the illumination of the ambient light exceeds the anti-shake threshold. Therefore, in the embodiment of the present disclosure, if it is determined that the current change trend meets the set condition, the comparison of the anti-shake threshold may be directly skipped, and the first display parameter may be directly generated according to the current illumination to support the execution of automatic brightness adjustment, so that the automatic brightness adjustment can better adapt to the change in ambient light, improve the flexibility of the automatic brightness adjustment, and improve the effect of the automatic brightness adjustment.
[0033] In some embodiments, the setting conditions may include the following: a first condition, wherein the first condition indicates that the first change trend related to the first reference illuminance is the same as the current change trend; a second condition, wherein the second condition indicates that the second automatic brightness adjustment has been performed based on the second reference illuminance, and the second reference illuminance is the ambient light illuminance obtained before the first reference illuminance; a third condition, wherein the third condition indicates that the adjustment trend corresponding to the second automatic brightness adjustment is the same as the current change trend. Thus, the accuracy of the automatic brightness adjustment can be effectively improved, and while the flexibility of the automatic brightness adjustment is effectively improved, the practicality of the automatic brightness adjustment can also be effectively improved.
[0034] Examples of the above conditions are as follows:
[0035] The first condition indicates that the first change trend related to the first reference illuminance is the same as the current change trend. For example, if the current change trend indicates that the current illuminance is increasing relative to the first reference illuminance, then correspondingly, the first change trend also indicates that the first reference illuminance is increasing relative to its previous ambient light illuminance. If the current change trend indicates that the current illuminance is decreasing relative to the first reference illuminance, then correspondingly, the first change trend also indicates that the first reference illuminance is decreasing relative to its previous ambient light illuminance.
[0036] The second condition indicates that a second automatic brightness adjustment has been performed based on a second reference illuminance, and the second reference illuminance is the ambient light illuminance obtained before the first reference illuminance. For example, the second reference illuminance is the ambient light illuminance detected before the first reference illuminance. And an automatic brightness adjustment has been performed once with reference to the second reference illuminance (which may be referred to as the second automatic brightness adjustment). When automatic brightness adjustment is performed with reference to the second reference illuminance, the illuminance difference between the second reference illuminance and the reference illuminance before it may be greater than the anti-shake threshold, thereby triggering automatic brightness adjustment. Alternatively, it may be triggered based on the method in the disclosed embodiment to determine that the change trend of the second reference illuminance meets the set condition, and there is no limitation on this.
[0037] The third condition indicates that the adjustment trend corresponding to the second automatic brightness adjustment is the same as the current change trend. For example, the second automatic brightness adjustment refers to the automatic brightness adjustment process performed with reference to the second reference illuminance. The second automatic brightness adjustment can be a trend of increasing brightness, or a trend of decreasing brightness. Usually in the automatic brightness adjustment mechanism, the adjustment of the ambient light illumination and the display brightness is in a positive relationship. For example, if the ambient light illumination increases, the brightness can be increased accordingly. If the ambient light illumination decreases, the brightness can be decreased accordingly. The adjustment trend corresponding to the second automatic brightness adjustment is the same as the current change trend. For example, the second automatic brightness adjustment is a trend of increasing brightness, and the current change trend is also an increasing trend. Alternatively, the second automatic brightness adjustment is a trend of decreasing brightness, and the current change trend is also a decreasing trend.
[0038] In other embodiments, the setting condition may also be set to any other possible threshold condition that can determine whether to directly perform automatic brightness adjustment, and there is no limitation to this.
[0039] In some embodiments, if the current change trend meets the set conditions, a first display parameter is generated according to the current illumination, that is, the comparison of the anti-shake threshold can be skipped, and the display parameter is directly generated according to the current illumination, which can be referred to as the first display parameter. The first display parameter is, for example, a backlight brightness value suitable for the display screen determined based on the current illumination, and there is no limitation on this.
[0040] In this embodiment, if the target mode is turned on, the current illuminance of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment, and based on the first reference illuminance, the current change trend related to the current illuminance is determined, wherein the first reference illuminance is the historically acquired ambient light illuminance, and if the current change trend meets the set conditions, a first display parameter is generated based on the current illuminance, so that the automatic brightness adjustment can better adapt to the changes in ambient light, improve the flexibility of the automatic brightness adjustment, and improve the automatic brightness adjustment effect.
[0041] In the embodiment of the present disclosure, the state of directly executing automatic brightness adjustment with reference to the current change trend related to the current illumination can be referred to as the automatic brightness animation scene. The user can also choose to turn on or off the automatic brightness animation scene. If the automatic brightness animation scene is turned on, the automatic brightness adjustment can be directly executed with reference to the current change trend related to the current illumination. If the automatic brightness animation scene is not turned on, the anti-shake threshold comparison can be performed with reference to the current illumination to perform automatic brightness adjustment again when the anti-shake threshold is met. In the embodiment of the present disclosure, when the automatic brightness adjustment is turned on and the display screen is in the bright screen state, when the ambient light changes and the automatic brightness adjustment is triggered, if it is in the automatic brightness animation scene and the direction of the ambient light change (an optional example of the current change trend) is the same direction change, the anti-shake threshold can be skipped to update the display screen brightness.
[0042] Figure 2 It is a flowchart of a method for determining display parameters proposed in another embodiment of the present disclosure.
[0043] like Figure 2 As shown, the display parameter determination method includes:
[0044] S201: If the target mode is turned on, the current illumination of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment.
[0045] S202: Determine a current change trend related to the current illumination according to a first reference illumination, wherein the first reference illumination is an ambient light illumination acquired historically.
[0046] S203: If the current change trend meets the set conditions, generate a first display parameter according to the current illumination.
[0047] For the description of S201 - S203 , please refer to the above embodiment, which will not be repeated here.
[0048] S204: If the current change trend does not meet the set condition, determine the illuminance difference between the current illuminance and the first reference illuminance.
[0049] In the embodiment of the present disclosure, in order to ensure the accuracy of automatic brightness adjustment and make automatic brightness adjustment more suitable for real application scenario requirements, it is also possible to refer to the current illumination and anti-shake threshold to determine whether automatic brightness adjustment can be triggered when it is determined that the current change trend does not meet the set conditions.
[0050] S205: Determine to perform a first automatic brightness adjustment according to the illumination difference.
[0051] In some embodiments, if the current change trend does not meet the above-mentioned setting conditions, the illuminance difference between the current illuminance and the first reference illuminance can be determined, and whether to perform automatic brightness adjustment can be determined based on the illuminance difference. If it is determined to perform automatic brightness adjustment once based on the illuminance difference, the automatic brightness adjustment can be called the first automatic brightness adjustment.
[0052] In some embodiments, if the illuminance difference is greater than or equal to the first difference threshold, it is determined to perform the first automatic brightness adjustment. Thus, it is possible to determine whether to perform automatic brightness adjustment by combining the current change trend related to the current illuminance and the illuminance difference, effectively improving the practicality of automatic brightness adjustment.
[0053] The first difference threshold may be a threshold value for determining the illumination difference for performing an automatic brightness adjustment. For example, if the illumination difference is greater than or equal to the first difference threshold, it is determined to perform the first automatic brightness adjustment. If the illumination difference is less than the first difference threshold, it is determined not to perform the first automatic brightness adjustment. Then, the current illumination of the ambient light may be continuously and dynamically detected.
[0054] S206: Generate a second display parameter according to the current illumination.
[0055] In some embodiments, if the illuminance difference is greater than or equal to the first difference threshold, it is determined to perform a first automatic brightness adjustment, at which time, the display parameters can be triggered to be generated according to the current illuminance. Automatic brightness adjustment is performed based on the difference threshold, and the display parameters generated during the automatic brightness adjustment process can be referred to as second display parameters. The second display parameter is, for example, a backlight brightness value suitable for the display screen determined based on the current illuminance. In other words, the first display parameter and the second display parameter can be display parameters generated after automatic brightness adjustment is determined based on different strategies. The first automatic brightness adjustment and the second automatic brightness adjustment refer to automatic brightness adjustments determined and performed based on different strategies. There is no limitation on this.
[0056] In this embodiment, if the target mode is turned on, the current illuminance of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment, and the current change trend related to the current illuminance is determined based on the first reference illuminance, wherein the first reference illuminance is the illuminance of the ambient light obtained historically, and if the current change trend meets the set conditions, a first display parameter is generated based on the current illuminance, so that the automatic brightness adjustment can better adapt to the change of the ambient light, improve the flexibility of the automatic brightness adjustment, and improve the effect of the automatic brightness adjustment. If the current change trend does not meet the set conditions, the current illuminance and the anti-shake threshold are referenced to determine whether the automatic brightness adjustment can be triggered. The accuracy of the automatic brightness adjustment can be guaranteed and the automatic brightness adjustment can be more suitable for the needs of real application scenarios.
[0057] In some embodiments, before obtaining the current illuminance of the ambient light, a second reference illuminance may also be obtained, wherein the second reference illuminance is the illuminance of the ambient light obtained before the first reference illuminance, and it is determined that the illuminance difference between the second reference illuminance and the third reference illuminance is greater than or equal to the first difference threshold, wherein the third reference illuminance is the illuminance of the ambient light obtained before the second reference illuminance; and a second automatic brightness adjustment is performed according to the second reference illuminance. In other words, the process of skipping the anti-shake threshold and directly performing automatic brightness adjustment in the embodiments of the present disclosure may be based on an automatic brightness adjustment that has already been performed based on the anti-shake threshold, and the automatic brightness adjustment may be consistent with the current change trend, thereby being able to largely guarantee the accuracy of the direct automatic brightness adjustment and improve the user experience.
[0058] In the disclosed embodiments, by optimizing the logic of automatic brightness adjustment, when in an automatic brightness animation scene and the illumination change of the ambient light is in the same direction, the anti-shake threshold determination mechanism may not be performed, and the backlight brightness value of the display screen may be directly updated, which can effectively distinguish between automatic brightness animation scenes and non-automatic brightness animation scenes. In the automatic brightness animation scene, the adjustment of the backlight brightness value of the display screen can be made consistent with the illumination change of the ambient light, avoiding the lag in the adjustment of the backlight brightness value of the display screen. When the ambient light changes in the same direction, the anti-shake threshold can be skipped, which can ensure that the brightness does not flicker due to the up and down shaking of the ambient light. As a result, the flexibility and accuracy of automatic brightness adjustment are effectively improved in the disclosed embodiments, thereby improving the user experience.
[0059] Figure 3 It is a flowchart of a method for determining display parameters proposed in another embodiment of the present disclosure.
[0060] like Figure 3 As shown, the display parameter determination method includes:
[0061] S301: If the target mode is turned on, the current illumination of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment.
[0062] S302: Determine a current change trend related to the current illumination according to a first reference illumination, wherein the first reference illumination is an ambient light illumination acquired historically.
[0063] S303: If the current change trend meets the set conditions, generate a first display parameter according to the current illumination.
[0064] For the description of S301 - S303 , please refer to the above embodiment for details, which will not be repeated here.
[0065] S304: Control the display screen to display according to the first display parameter.
[0066] For example, the first display parameter is a backlight brightness value suitable for the display screen determined based on the current illumination. Then the current backlight brightness value of the display screen can be adjusted to a new backlight brightness value for display.
[0067] S305: updating the first difference threshold according to the current illumination to obtain a second difference threshold, wherein the second difference threshold is used to perform the next automatic brightness adjustment.
[0068] In some embodiments, the first difference threshold may be updated according to the current illumination, and the updated difference threshold may be referred to as the second difference threshold, which is used to perform the next automatic brightness adjustment.
[0069] In some embodiments, a threshold adjustment amount can be determined according to the current illuminance. For example, a correspondence between the illuminance and the threshold adjustment amount can be preset, and the illuminance matching the current illuminance is determined according to the correspondence, and the threshold adjustment amount corresponding to the matching illuminance is used as the determined threshold adjustment amount, and then the second difference threshold is calculated according to the first difference threshold and the threshold adjustment amount. For example, the first difference threshold and the threshold adjustment amount can be added to obtain the second difference threshold, and there is no limitation on this. Of course, any other possible method can also be used to update the first difference threshold according to the current illuminance to obtain the second difference threshold. For example, artificial intelligence method, machine learning method, etc., there is no limitation on this.
[0070] In this embodiment, if the target mode is turned on, the current illuminance of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment, and the current change trend related to the current illuminance is determined based on the first reference illuminance, wherein the first reference illuminance is the ambient light illuminance obtained historically, and if the current change trend meets the set conditions, a first display parameter is generated based on the current illuminance, so that the automatic brightness adjustment can better adapt to the changes in the ambient light, improve the flexibility of the automatic brightness adjustment, and improve the effect of the automatic brightness adjustment. By controlling the display screen to display according to the first display parameter, the consistency of the automatic brightness adjustment can be improved. By updating the first difference threshold according to the current illuminance to obtain the second difference threshold, wherein the second difference threshold is used to perform the next automatic brightness adjustment, the accuracy and practicality of the automatic brightness adjustment can be effectively improved.
[0071] The description of the above embodiment can be illustrated as follows:
[0072] It is possible to detect whether the current change trend related to the current illumination satisfies the set conditions, such as:
[0073] 1. In the automatic brightness animation scene.
[0074] 2. At this time, the illumination change of the ambient light is in the same direction, that is, the current illumination of the ambient light is in an increasing trend or a decreasing trend.
[0075] 3. The change in the historical illuminance of the ambient light meets the anti-shake threshold, and automatic brightness adjustment has been performed once. That is, there is a reference illuminance that meets the anti-shake threshold before the current illuminance reaches the first illuminance that changes in the same direction (the first reference illuminance), and automatic brightness adjustment has been performed once based on the reference illuminance that meets the anti-shake threshold.
[0076] Overall logic:
[0077] When the ambient light illumination changes, determine whether it is in the automatic brightness animation scene, determine whether the current illumination of the ambient light detected this time changes in the same direction, determine whether there is a reference illumination that meets the anti-shake threshold before the current illumination and the first reference illumination that changes in the same direction, and whether an automatic brightness adjustment has been performed based on the reference illumination that meets the anti-shake threshold. If all of these conditions are met, then during this automatic brightness adjustment process, skip the anti-shake threshold of the ambient light and directly update the brightness of the display. Then, update the anti-shake threshold to obtain a new anti-shake threshold. If any of the above conditions are not met, it can be determined whether the current illumination of the ambient light detected this time meets the anti-shake threshold.
[0078] (1) Automatic brightness determination of animation scenes.
[0079] In the brightness animation class, when the brightness animation starts and / or ends, the value of the variable can be updated, and the value can be used to determine whether a certain moment is in the brightness animation scene.
[0080] (2) Determination of changes in the same direction of ambient light.
[0081] Define a variable a to indicate whether the change trend of the ambient light illumination is an increasing trend, a decreasing trend, or other three situations. If the current ambient light illumination is less than the previous ambient light illumination, and the a of the previous ambient light illumination indicates a decreasing trend, it is a change in the same direction. If the current ambient light illumination is greater than the previous ambient light illumination, and the a of the previous ambient light illumination indicates an increasing trend, it is a change in the same direction. Except for the above two situations, other situations do not belong to changes in the same direction.
[0082] (3) Determine whether there is a reference illuminance that meets the anti-shake threshold before the current illuminance and the first reference illuminance that changes in the same direction.
[0083] Define a variable b to indicate whether the reference illuminance before the current illuminance and the first reference illuminance that changes in the same direction meets the anti-shake threshold. For example, when a reference illuminance of the ambient light meets the anti-shake threshold, the value is set to True; when it does not meet the anti-shake threshold, or is judged in (2) as not belonging to the reference illuminance that changes in the same direction, the value is set to False. This variable can be used to determine whether there is a reference illuminance that meets the anti-shake threshold before the current illuminance and the first reference illuminance that changes in the same direction.
[0084] (4) Skip the threshold and update the automatic brightness.
[0085] When the above conditions are met, the judgment of the anti-shake threshold of the ambient light is directly skipped, and the setAmbientLux() method and the updateAutoBrightness() method are executed to implement automatic brightness adjustment.
[0086] (5) Update the anti-shake threshold to obtain a new anti-shake threshold.
[0087] When the ambient light jumps over the anti-shake threshold and realizes automatic brightness adjustment, the anti-shake threshold corresponding to the ambient light can be synchronously updated to be used for the judgment of the next ambient light.
[0088] Figure 4 It is a structural diagram of a display parameter determination device proposed in an embodiment of the present disclosure.
[0089] like Figure 4 As shown, the display parameter determination device 40 includes:
[0090] The acquisition module 401 is used to acquire the current illumination of the ambient light when the target mode is turned on, wherein the target mode is a mode that supports automatic brightness adjustment.
[0091] The determination module 402 is used to determine a current change trend related to the current illumination according to a first reference illumination, wherein the first reference illumination is the ambient light illumination obtained historically.
[0092] The generating module 403 is used to generate a first display parameter according to the current illumination when the current change trend meets the set condition.
[0093] It should be noted that the above explanation of the display parameter determination method is also applicable to the display parameter determination device of this embodiment, and will not be repeated here.
[0094] In this embodiment, if the target mode is turned on, the current illuminance of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment, and based on the first reference illuminance, the current change trend related to the current illuminance is determined, wherein the first reference illuminance is the historically acquired ambient light illuminance, and if the current change trend meets the set conditions, a first display parameter is generated based on the current illuminance, so that the automatic brightness adjustment can better adapt to the changes in ambient light, improve the flexibility of the automatic brightness adjustment, and improve the automatic brightness adjustment effect.
[0095] Figure 5 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 5 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0096] like Figure 5 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that connects various system components (including the memory 28 and the processing unit 16).
[0097] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0098] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0099] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 Not shown, often called a "hard drive").
[0100] although Figure 5 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (hereinafter referred to as: CD-ROM), a digital versatile disc read only memory (hereinafter referred to as: DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.
[0101] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0102] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable the human body to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0103] The processing unit 16 executes various functional applications and data processing by running the programs stored in the memory 28, such as implementing the methods mentioned in the above embodiments.
[0104] In order to implement the above embodiments, the present disclosure further proposes a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method proposed in the above embodiments of the present disclosure is implemented.
[0105] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When instructions in the computer program product are executed by a processor, the method proposed in the above embodiments of the present disclosure is executed.
[0106] It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "plurality" is two or more.
[0107] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
[0108] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0109] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0110] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0111] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0112] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0113] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.
Claims
1. A method for determining display parameters, characterized in that: The method comprises: If the target mode is turned on, the current illumination of the ambient light is obtained, wherein the target mode is a mode that supports automatic brightness adjustment; Determining a current change trend related to the current illumination according to a first reference illumination, wherein the first reference illumination is an ambient light illumination acquired historically; and If the current change trend meets the set condition, a first display parameter is generated according to the current illumination.
2. The method according to claim 1, characterized in that The method further comprises: If the current change trend does not meet the set condition, determining the illuminance difference between the current illuminance and the first reference illuminance; Determine to perform a first automatic brightness adjustment according to the illumination difference; A second display parameter is generated according to the current illumination.
3. The method according to claim 2, characterized in that The step of determining to perform a first automatic brightness adjustment according to the illumination difference comprises: If the illumination difference is greater than or equal to a first difference threshold, it is determined to perform the first automatic brightness adjustment.
4. The method according to any one of claims 1 to 3, characterized in that: The setting conditions include the following: A first condition, wherein the first condition indicates that a first change trend associated with the first reference illuminance is the same as the current change trend; A second condition, wherein the second condition indicates that a second automatic brightness adjustment has been performed based on a second reference illuminance, the second reference illuminance being an ambient light illuminance acquired before the first reference illuminance; The third condition, wherein the third condition indicates that an adjustment trend corresponding to the second automatic brightness adjustment is the same as the current change trend.
5. The method according to claim 1, characterized in that Before obtaining the current illumination of the ambient light, the method further includes: Acquire a second reference illuminance, wherein the second reference illuminance is an ambient light illuminance acquired before the first reference illuminance; Determine that an illumination difference between the second reference illumination and a third reference illumination is greater than or equal to a first difference threshold, wherein the third reference illumination is an ambient light illumination acquired before the second reference illumination; The second automatic brightness adjustment is performed according to the second reference illumination.
6. The method according to claim 1, characterized in that The method further comprises: The display screen is controlled to display according to the first display parameter.
7. The method according to claim 5, characterized in that The method further comprises: The first difference threshold is updated according to the current illumination to obtain a second difference threshold, wherein the second difference threshold is used to perform the next automatic brightness adjustment.
8. A display parameter determination device, characterized in that: The device comprises: An acquisition module, used to acquire the current illumination of the ambient light when the target mode is turned on, wherein the target mode is a mode that supports automatic brightness adjustment; a determination module, configured to determine a current change trend related to the current illumination according to a first reference illumination, wherein the first reference illumination is an ambient light illumination acquired historically; and A generating module is used to generate a first display parameter according to the current illumination when the current change trend meets a set condition.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.
11. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Electronic equipment and display device screen brightness adjusting method thereof
CN101789230A
Method and device for regulating brightness of backlight lamp
CN103050097A
Screen brightness regulation method and device
CN105869603A
Method and device for intelligently adjusting screen brightness, storage medium and mobile terminal
CN109951595A
Brightness adjusting method and related device
CN114038443A