Screen brightness adjusting method and related equipment

By obtaining the user's initial brightness value and ambient light intensity, calculating the brightness magnification with the average grayscale of the display screen, and dynamically adjusting the screen brightness, the problem that mobile devices cannot meet the user's personalized brightness needs, and improving user experience and comfort.

CN120472859AActive Publication Date: 2025-08-12HONOR DEVICE CO LTD

Patent Information

Application Number
CN202411414648.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-08-12
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

In the prior art, mobile devices cannot accurately adjust the screen brightness due to the accuracy of ambient light sensors, resulting in the inability to meet the user's personalized screen brightness needs, affecting the user experience and visual comfort.

Method used

By obtaining the user's initial brightness value and ambient light intensity, calculating the second brightness magnification, combining the average grayscale of the display screen of the application, dynamically adjusting the screen brightness to meet the user's brightness preferences and ambient light changes, and using preset applications and F interfaces to achieve independent brightness adjustment.

Benefits of technology

It improves the personalized adjustment ability of screen brightness, enhances user comfort and experience, and can also achieve flexible adjustments in brightness locked state.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120472859A_ABST
    Figure CN120472859A_ABST
Patent Text Reader

Abstract

The invention provides a screen brightness adjusting method and related equipment, and the method comprises the steps: responding to a first operation of a user, running an application, and displaying an application interface of the application; obtaining first screen brightness when the electronic equipment displays an application interface, and an initial brightness value and a first brightness multiplying power of an application; acquiring the ambient light intensity of the electronic equipment and the actual ambient light brightness corresponding to the ambient light intensity; calculating a second brightness multiplying power according to the initial brightness value, the ambient light intensity, the actual ambient light brightness and the first screen brightness; and calculating a target brightness value according to the initial brightness value, the first brightness magnification and the second brightness magnification, and adjusting the screen brightness of the electronic equipment according to the target brightness value. By means of the method, the electronic device can adjust the screen brightness in a personalized mode according to the brightness preference of the user and the average gray scale of the display picture, and the screen brightness display effect of the electronic device 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 terminal equipment and communication technology, and in particular to a screen brightness adjustment method and related equipment. Background Art

[0002] With the development of the internet and smart devices, application interfaces have become increasingly versatile. These interfaces include a variety of elements and components, such as text boxes, images, and video players. Furthermore, various control components, such as buttons and input boxes, are also present to receive user input. This diversity of components and elements makes application interfaces more flexible and colorful.

[0003] In related technologies, mobile devices usually adjust the screen brightness due to changes in ambient light intensity. However, due to the accuracy issues of the ambient light sensor devices of mobile devices, the ambient light report value of the ambient light sensor devices cannot truly restore the user's environmental conditions, and different users have different preferences for screen brightness. As a result, the adjusted screen brightness of the mobile device cannot meet the user's personalized screen brightness requirements, which affects the user experience to a certain extent, may cause visual fatigue, and reduce the comfort of use. Summary of the Invention

[0004] In view of the above, it is necessary to provide a screen brightness adjustment method and related equipment, which can personalize the screen brightness according to the user's brightness preference and the average grayscale of the display image, improve the screen brightness display effect of the electronic device, and thus improve the user experience.

[0005] In the first aspect, the present application provides a screen brightness adjustment method, which is applied to an electronic device. The screen brightness adjustment method may include: in response to a user's first operation, running an application and displaying an application interface of the application; obtaining the first screen brightness when the electronic device displays the application interface, as well as the initial brightness value and the first brightness magnification of the application, the initial brightness value representing the screen brightness value adjusted after the user enters the application, and the first brightness magnification is determined according to the average grayscale of the display screen of the application; obtaining the ambient light intensity of the electronic device and the actual brightness of the ambient light corresponding to the ambient light intensity; calculating the second brightness magnification based on the initial brightness value, the ambient light intensity, the actual brightness of the ambient light and the first screen brightness, the second brightness magnification being used to represent the user's brightness preference under different ambient light intensities; calculating the target screen brightness preference value based on the initial brightness value, the first brightness magnification and the second brightness magnification, and adjusting the screen brightness of the electronic device displaying the application interface according to the target brightness value.

[0006] By adopting the above technical solution, the electronic device can determine the user's preferred brightness under the application when displaying the application interface, that is, the initial brightness value, and can also determine the first brightness magnification of the application. By obtaining the ambient light intensity of the electronic device in real time, it can sense whether the ambient light intensity of the electronic device has changed, and when the ambient light intensity changes, calculate the second brightness magnification under the current ambient light intensity based on the initial brightness value. Since the first brightness magnification is determined according to the average grayscale of the display screen of the application, the second brightness magnification is used to characterize the user's brightness preference under different ambient light intensities. Therefore, the target brightness value calculated by the initial brightness value, the first brightness magnification and the second brightness magnification can accurately measure the user's required brightness under the ambient light intensity, thereby providing the user with a more comfortable application scenario experience.

[0007] In one possible implementation, obtaining the initial brightness value includes: obtaining a second screen brightness of the electronic device when displaying the application interface in response to a second user operation; and determining the initial brightness value based on the difference between the second screen brightness and the first screen brightness. Using this technical solution, the second operation can be a user dragging the brightness bar, so that the initial brightness value accurately reflects the user's desired screen brightness when using the application.

[0008] In one possible implementation, the second brightness magnification is calculated based on the initial brightness value, the ambient light intensity, the actual ambient light brightness, and the first screen brightness, including: determining the user's brightness preference type based on the initial brightness value; determining the ambient light brightness change type of the ambient light based on the change value of the ambient light intensity; determining a magnification calculation strategy for the second brightness magnification based on the brightness preference type and the ambient light brightness change type, and calculating the second brightness magnification based on the ambient light intensity, the actual ambient light brightness, the first screen brightness, and the magnification calculation strategy. By adopting the above technical solution, the magnification calculation strategy is determined based on different brightness preference types and different ambient light brightness change types, so that the calculated second brightness magnification can comprehensively consider the user's screen brightness requirements and the current ambient light intensity changes, thereby further improving the accuracy of the target brightness value calculated based on the second brightness magnification, so that the screen brightness of the electronic device adjusted according to the target brightness value can better meet the user's screen brightness requirements, thereby improving the user's comfort.

[0009] In one possible implementation, determining the user's brightness preference type based on the initial brightness value includes determining the brightness preference type as positive when the initial brightness value is positive, and determining the brightness preference type as negative when the initial brightness value is negative. This technical solution accurately determines the brightness preference type, thereby further improving the accuracy of the subsequently calculated target brightness value.

[0010] In one possible implementation, the type of ambient light brightness change is determined based on the ambient light intensity change value, including: determining the ambient light brightness change type as a brightness increase when the ambient light intensity change value is positive; and determining the ambient light brightness change type as a brightness decrease when the ambient light intensity change value is negative. Using this technical solution, the ambient light brightness change type can be accurately determined, thereby further improving the accuracy of the subsequently calculated target brightness value.

[0011] In one possible implementation, a second brightness magnification ratio calculation strategy is determined based on the brightness preference type and the ambient light brightness change type, and the second brightness magnification ratio is calculated based on the ambient light intensity, the actual ambient light brightness, the first screen brightness, and the ratio calculation strategy. The calculation includes: when the ambient light brightness change type is brightness increase, determining the first preset light intensity threshold interval in which the ambient light intensity is located, and obtaining the first ambient light brightness corresponding to the first preset light intensity threshold interval; and calculating the second brightness magnification ratio according to the following formula: BrightenRatio = (ND) / (NA), where BrightenRatio is the second brightness magnification ratio, N is the first ambient light brightness, D is the actual ambient light brightness, and A is the first screen brightness. Using the above technical solution, when the first ambient light brightness N is larger, the value of the second brightness magnification ratio BrightenRatio is smaller, thereby reducing the subsequent target brightness value, so that the screen brightness of the electronic device when displaying the application interface will not be too bright, thereby improving user comfort.

[0012] In one possible implementation, a ratio calculation strategy for the second brightness ratio is determined based on the brightness preference type and the ambient light brightness change type, and the second brightness ratio is calculated based on the ambient light intensity, the actual ambient light brightness, the first screen brightness, and the ratio calculation strategy, including: when the brightness preference type is a negative preference and the ambient light brightness change type is brightness reduction, the second brightness ratio is calculated according to the following formula: DarkenRatio = (D-4) / (A-4), where DarkenRatio is the second brightness ratio, D is the actual ambient light brightness, and A is the first screen brightness. With the above technical solution, since the user's brightness preference type is a negative preference and the ambient light brightness change type is brightness reduction, and since the change in ambient light brightness conforms to the user's brightness preference type, the size of the second brightness ratio DarkenRatio is set to be independent of the first ambient light brightness N, thereby improving the accuracy of the second brightness ratio DarkenRatio.

[0013] In one possible implementation, a second brightness magnification ratio calculation strategy is determined based on the brightness preference type and the ambient light brightness change type, and the second brightness magnification ratio is calculated based on the ambient light intensity, the actual ambient light brightness, the first screen brightness, and the ratio calculation strategy. The strategy includes: when the brightness preference type is positive and the ambient light brightness change type is brightness reduction, determining the second preset light intensity threshold interval within which the ambient light intensity falls, and obtaining the second ambient light brightness corresponding to the second preset light intensity threshold interval; and calculating the second brightness magnification ratio based on the following formula: BrightenRatio = (DN) / (A), where BrightenRatio is the second brightness magnification ratio, N is the second ambient light brightness, D is the actual ambient light brightness, and A is the first screen brightness. Using the above technical solution, since the user's brightness preference type is positive and the ambient light brightness change type is brightness reduction, and since the user requires a brighter screen brightness, a larger second brightness magnification ratio BrightenRatio is set to obtain a larger target brightness value, thereby meeting the user's screen brightness requirement.

[0014] In one possible implementation, the method for determining the first brightness magnification includes: collecting multiple target images of the application; calculating the grayscale histogram of each target image, and calculating the average grayscale histogram of the application based on the grayscale histogram of each target image; and calculating the first brightness magnification based on the average grayscale histogram. With the above technical solution, since the average grayscale histogram can intuitively reflect the overall brightness distribution of the application, the first brightness magnification calculated based on the average grayscale histogram can accurately reflect the brightness requirements of the application itself, thereby improving the accuracy of the target brightness value calculated based on the first brightness magnification, so that the screen brightness of the electronic device adjusted according to the target brightness value can better meet the user's screen brightness requirements, thereby improving the user's comfort.

[0015] In one possible implementation, calculating the first brightness magnification based on the average grayscale histogram includes: calculating the average grayscale of the application based on the average grayscale histogram; determining the grayscale interval within which the average grayscale falls, and calculating a correspondence between the grayscales within the grayscale interval and the preferred magnifications based on the preset preferred magnifications corresponding to the two endpoints of the grayscale interval; and calculating the first brightness magnification based on the average grayscale and the correspondence. Using this technical solution, the first brightness magnification can be accurately calculated, thereby further improving the accuracy of the target brightness value calculated based on the first brightness magnification.

[0016] In one possible implementation, an electronic device is installed with a preset application, which includes a brightness adjustment interface. The method further includes adjusting the screen brightness of the electronic device when the application interface is displayed based on multiple controls in the brightness adjustment interface. Using the above technical solution, the brightness adjustment function can be performed within the preset application when the electronic device displays the application interface.

[0017] In one possible implementation, the preset application is connected to the electronic device via the F interface. With this technical solution, since the F interface is a third-party interface, even when the electronic device is in a brightness-locked state, the preset application can be used to adjust the screen brightness of the electronic device when displaying the application interface. This achieves the mutual independence of electronic device brightness adjustment and application scenario brightness adjustment, further improving the user experience.

[0018] In one possible implementation, calculating a target brightness value based on an initial brightness value, a first brightness magnification, and a second brightness magnification includes calculating the target brightness value according to the following formula: target brightness value = initial brightness value * (first brightness magnification * k * second brightness magnification * (1-k)), where k is a weight. By employing the above technical solution and assigning different weights to the first brightness magnification and the second brightness magnification, the accuracy of the target brightness value calculated based on the first brightness magnification and the second brightness magnification can be further improved, so that the screen brightness of the electronic device adjusted according to the target brightness value can better meet the user's screen brightness requirements, thereby improving the user's comfort.

[0019] In a second aspect, the present application provides an electronic device, which includes a display screen, a memory, and a processor; the microphone, the display screen, and the memory are all coupled to the processor; the memory is used to store program instructions; and the processor is used to read the program instructions stored in the memory to implement the screen brightness adjustment method of the above-mentioned first aspect and its possible implementation methods.

[0020] In a third aspect, the present application provides a computer-readable storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by a processor, the screen brightness adjustment method of the above-mentioned first aspect and its possible implementation methods is implemented.

[0021] In a fourth aspect, the present application provides a computer program product, which includes computer-readable instructions. When the computer-readable instructions are executed by a processor, the screen brightness adjustment method of the above-mentioned first aspect and its possible implementation methods is implemented.

[0022] In addition, the technical effects brought about by the second to fourth aspects can be found in the descriptions of the methods of each design in the above method section, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of a scenario of a screen brightness adjustment method provided in an embodiment of the present application;

[0024] Figure 2 This is a schematic diagram of an application scenario of the screen brightness adjustment method provided in one embodiment of the present application;

[0025] Figure 3 This is a schematic diagram of a user interface provided by an embodiment of the present application;

[0026] Figure 4 This is a software architecture diagram of an electronic device provided in one embodiment of the present application;

[0027] Figure 5 This is a software architecture diagram of an electronic device for implementing game manager version switching provided by an embodiment of the present application;

[0028] Figure 6 This is a flowchart of the interaction between internal software and hardware modules of an electronic device provided by an embodiment of the present application;

[0029] Figure 7 This is a flow chart of a method for adjusting screen brightness provided by an embodiment of the present application;

[0030] Figure 8 This is a hardware architecture diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0032] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, words such as "exemplary", "or", and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary", "or", and "for example" is intended to present related concepts in a concrete way.

[0033] 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 in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can mean A or B. "And / or" in this application is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, a, b and c. It should be understood that the order of the steps shown in the flowcharts herein can be changed, and some can be omitted.

[0034] To facilitate understanding of the various embodiments of this application, first, the technical terms involved in this application are introduced:

[0035] User interface (UI): It is the media interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The user interface is source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the electronic device, and ultimately presented as content that the user can recognize. The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed graphically. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0036] Application (APP): A software program that can perform one or more specific functions. Examples include calling applications, instant messaging applications, video applications, audio applications, image capture applications, and cloud desktop applications.

[0037] The F interface is defined as the interface between the mobile switching center (MSC) and the Equipment Identity Register (EIR). It is used to exchange international mobile equipment identity management information. The physical link of the F interface is a standard 2.048 Mbits PCM digital transmission link between the mobile switching center (MSC) and the Equipment Identity Register (EIR).

[0038] like Figure 1 As shown, a screen display scenario provided in an embodiment of the present application includes an electronic device 100. The electronic device 100 may be a device with a display function, and the embodiment of the present application does not limit the device type of the electronic device 100. For example, the electronic device 100 may be a mobile phone, a tablet computer, a personal computer, a Voice over Internet Protocol (VoIP) phone, etc. Figure 1 Taking the electronic device 100 as a smartphone as an example, user A uses the electronic device 100, for example, Figure 1 The screen display scene shown is the display interface of the electronic device 100 in the game scene. User A clicks the "brightness adjustment" control of the application and then drags the brightness bar to control the screen brightness in the game scene. Since the brightness adjustment function is set to manual adjustment at this time, the game brightness will not change with the ambient light and will always maintain the brightness adjusted by the user. This situation causes the electronic device 100 to be unable to adaptively change the screen brightness in the game scene according to the ambient light intensity when user A is playing the game, affecting the user's comfort. Figure 1 In the screen display scenario shown, in order to provide users with a better gaming experience, there is a need to adaptively adjust the screen brightness of the electronic device 100 based on changes in ambient light intensity.

[0039] In order to improve the display effect of electronic devices, electronic devices generally turn on the ambient light adjustment algorithm by default to automatically adjust the screen brightness based on different ambient light intensities. However, there is a lack of personalized adjustment of the screen brightness for different applications, and it cannot meet the screen brightness requirements of users when entering different applications.

[0040] In view of this, an embodiment of the present application provides a screen brightness adjustment method, which enables the electronic device to dynamically adjust the screen brightness according to the ambient light intensity, user brightness preference and the average grayscale of the display screen of the current application, to meet the user's screen brightness requirements when entering different applications.

[0041] See also Figure 2 , which is a schematic diagram of a scenario for a screen brightness adjustment method applicable to an embodiment of the present application. The scenario includes an electronic device 100. The electronic device 100 may be a device with a display function, and the present embodiment of the present application does not limit the device type of the electronic device 100. For example, the electronic device 100 may be a mobile phone, a tablet computer, a personal computer, a VoIP phone, etc.

[0042] For example, the electronic device 100 is a smartphone, and a first application is installed on the electronic device 100. In response to a first operation by a first user, the electronic device 100 may run the first application and display the application interface of the first application. The first user may adjust the screen brightness of the electronic device 100 when displaying the application interface through a second application.

[0043] Specifically, the electronic device can provide a second application UI for selecting screen brightness adjustment, so that the user can switch the screen brightness adjustment mode of the electronic device, such as setting the screen brightness adjustment mode of the electronic device to manual adjustment, or setting the screen brightness adjustment mode of the electronic device to automatic adjustment.

[0044] For example, Figure 3 As shown, taking the electronic device as a mobile phone and the second application as a game manager as an example, the electronic device displays the setting main interface 101 of the game manager application in response to the operation of clicking the game manager application icon. The setting main interface 101 may include one or more controls, such as a "brightness adjustment" control, a "message do not disturb" control, an "anti-mistouch" control, a "network acceleration" control, a "frame rate enhancement" control, a "image quality enhancement" control, etc.

[0045] In response to the operation of clicking the “brightness adjustment” control in the setting main interface 101 , the electronic device sets the screen brightness adjustment mode of the electronic device to manual adjustment or automatic adjustment.

[0046] In some embodiments, a text description of the corresponding function may be displayed below the "brightness adjustment" control to help users understand the function of the control. For example, the text description may be displayed below the Figure 3 The mode description box below the "Brightness Adjustment" control is shown. For example, the text description "The device automatically adjusts the screen brightness after turning it on" can be displayed below the "Brightness Adjustment" control.

[0047] In order to more clearly understand the implementation details of the above screen brightness adjustment method on the electronic device, Figures 4 and 5 Let's introduce the process of implementing the above screen brightness adjustment method by cooperating with various software and hardware components in electronic devices. The details are as follows:

[0048] The operating system of the electronic device can adopt a layered architecture, event-driven architecture, micro-kernel architecture, micro-service architecture, or cloud architecture. The embodiment of the present application takes the Android system of layered architecture as an example to illustrate the software structure of the electronic device. Figure 4As shown, a layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. Taking the Android system as an example, in some embodiments, the Android system is divided into three layers: the application layer (APK), the application framework layer (Framework), and the hardware abstraction layer (HAL), from top to bottom.

[0049] The application layer may include a series of application packages. For example, an application package may include applications such as the Game Manager version 1.0 application, the Game Manager version 2.0 application, and system applications. The Game Manager version 1.0 application may include a first control that supports screen brightness adjustment. The Game Manager version 2.0 application may include a second control that supports screen brightness adjustment. The second control supports adjusting the screen brightness by dragging the brightness bar even when the screen brightness adjustment function is locked. System applications may include a settings application.

[0050] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. For example, the application framework layer may include a display effect module, a brightness module, a decision-making center, and an F interface module.

[0051] The display effect module can be used to be responsible for the version adaptability of the electronic device to the game manager application, such as detecting that the game manager application adapted to electronic device 1 is the game manager version 1.0 application, and detecting that the game manager application adapted to electronic device 2 is the game manager version 2.0 application.

[0052] The brightness module can be used to manage the screen display brightness of the electronic device, for example, it is responsible for managing the locking and unlocking of the screen brightness adjustment, setting the maximum display brightness of the screen, and adjusting the screen brightness.

[0053] The decision-making middle platform can be used to be responsible for version switching of the Game Manager application, such as switching the Game Manager version 1.0 application to the Game Manager version 2.0 application.

[0054] The Game Manager version 1.0 application is connected to the display effect module. When the electronic device runs the Game Manager version 1.0 application, the screen brightness can only be adjusted by the user dragging the brightness bar.

[0055] The Game Manager 2.0 application is connected to the power supply of the electronic device through the F interface module, so that the screen display brightness of the electronic device can be directly managed through the Game Manager 2.0 application. For example, it is responsible for managing the locking and unlocking of the screen brightness adjustment, setting the maximum display brightness of the screen, and adjusting the screen brightness.

[0056] It's worth noting that after the Game Manager 2.0 app is connected to the electronic device's power supply via the F-port module, both the Game Manager 2.0 app and the brightness module can adjust the screen brightness of the electronic device. Furthermore, the Game Manager 2.0 app and the brightness module are decoupled from each other, meaning that the electronic device's system brightness and the screen brightness when the electronic device displays the app interface are independent of each other. When the electronic device's system brightness is locked, meaning the brightness of the electronic device's screen cannot be adjusted via the brightness module, the Game Manager 2.0 app can automatically adjust the screen brightness when the electronic device displays the app interface, improving the user experience.

[0057] For ease of understanding, the following specifically describes how to adjust the screen brightness of an electronic device when displaying an application interface when the electronic device runs the Game Manager version 1.0 application and the Game Manager version 2.0 application in this embodiment:

[0058] For example, when an electronic device is running a game, if the user clicks the "Brightness Adjustment" control while the electronic device is running the Game Manager version 1.0 app, the screen brightness of the electronic device will be locked when the game is displayed. The user cannot adjust the screen brightness by dragging the brightness bar. At this time, the game brightness will not change with the ambient light and will remain at that brightness. After exiting the game, the electronic device will return to automatic brightness. If the user clicks the "Brightness Adjustment" control again, that is, the "Brightness Adjustment" control is inactive, the user can adjust the screen brightness by dragging the brightness bar.

[0059] When an electronic device is running the Game Manager 2.0 application, if the user clicks the "Brightness Adjustment" control, the user can still adjust the screen brightness by dragging the brightness bar. Even if the user does not adjust the screen brightness by dragging the brightness bar, the game brightness will be automatically adjusted based on the aforementioned screen brightness adjustment method.

[0060] In some embodiments, the brightness module is used to calculate a second brightness magnification based on the acquired parameters and send the second brightness magnification to the Game Manager 2.0 application. It should be noted that the calculation method of the second brightness magnification is described in detail below and will not be repeated here to avoid repetition.

[0061] In some embodiments, the calculation of the second brightness magnification can also be performed in the Game Manager version 2.0 application.

[0062] The hardware abstraction layer includes a histogram processing module, etc. The histogram processing module is used to generate an average grayscale histogram for each application and upload the average grayscale histogram to the display effect module.

[0063] In some embodiments, the display effect module includes a histogram unit, which can be used to calculate the first brightness magnification of each application according to the average grayscale histogram uploaded by the histogram processing module.

[0064] In some embodiments, the histogram unit uploads the calculated first brightness magnification to the Game Manager 2.0 application. The Game Manager 2.0 application calculates the target brightness value based on the first brightness magnification, the second brightness magnification, and its own pre-stored initial brightness value, and then adjusts the screen brightness of the electronic device display application interface according to the target brightness value. In some embodiments, the display effect module also includes a platform switching unit and a capability support unit. The capability support unit is used to detect the electronic device's version adaptation capability for the Game Manager application, and the platform switching unit is used to send version switching information to the decision-making center based on the detection result of the capability support unit to implement version switching of the electronic device's Game Manager application.

[0065] For example, Figure 5 As shown, when the capability support unit detects that the electronic device is adapted to the Game Manager version 1.0 application, but the current electronic device is using the Game Manager version 2.0 application, the capability support unit sends the detection result of the electronic device adapting to the Game Manager version 1.0 application to the platform switching unit. The platform switching unit sends version switching information to the decision-making center. After receiving the version switching information, the decision-making center switches the Game Manager version 2.0 application installed on the electronic device to the Game Manager version 1.0 application. Through the above-mentioned version switching method of the Game Manager application, compatibility between the historical version and the new version of the Game Manager application is achieved, thereby enabling flexible management of the Game Manager application version and improving the reliability of the electronic device when running the Game Manager application.

[0066] In some embodiments, automatic upgrades of the Game Manager application version are implemented via the cloud. For example, if the electronic device currently has version 1.0 of the Game Manager application installed, the cloud automatically upgrades version 1.0 to version 2.0. After the Game Manager application is upgraded to version 2.0, the Game Manager application sends an upgrade reminder to the electronic device via the F interface. The Game Manager application also writes permanent properties of the electronic device, such as "brightness bar" and "brightness adjustment." It is worth noting that to avoid impacting related functions of the electronic device, the application version switch is only completed when the user restarts the Game Manager application. The electronic device provides a support capability interface for the Game Manager application to query, ensuring functional stability and interlocking.

[0067] In some embodiments, in order to prevent the abnormal crash of the game manager application and cause abnormal brightness adjustment function, when the user turns off the screen, the game manager application function is exited and restored through the game whitelist recognition capability.

[0068] In some embodiments, to prevent users from being confused about the target brightness value and the intelligent adjustment of screen brightness, the target brightness value is discounted and cleared by setting a game re-entry time interval. At the same time, the game manager application sets a clearing channel.

[0069] It can be understood that the above software structure is only exemplary and does not constitute a limitation on the software structure of the electronic device. In other embodiments, the electronic device may have more or fewer structures, and this application does not impose any limitation on this.

[0070] In order to more intuitively understand the process of implementing screen brightness adjustment of electronic devices by cooperating among the above software modules, Figure 6 The interactive diagram shown is used as an example to introduce the process of adjusting the screen brightness of an electronic device when running a game application under different types of ambient light brightness changes.

[0071] like Figure 6 FIG. 1 shows the interaction process of the software and hardware modules when the ambient light brightness change type is brightness increase or brightness decrease.

[0072] 601: The histogram processing module calculates a first brightness magnification of the game application.

[0073] In some embodiments, the electronic device runs the game application and displays the game screen of the game application in response to a user clicking operation on the game application, and the histogram processing module calculates the first brightness magnification of the game application.

[0074] 602: The game manager application obtains the first screen brightness of the electronic device when displaying the game screen, as well as the initial brightness value and the first brightness magnification of the game application.

[0075] In some embodiments, the game manager application is Figure 4 After obtaining the initial brightness value and the first brightness magnification, the Game Manager 2.0 application stores the initial brightness value and the first brightness magnification locally. The next time the electronic device runs the application, the Game Manager 2.0 application directly obtains the initial brightness value and the first brightness magnification locally, thereby reducing the load on the electronic device.

[0076] Specifically, the initial brightness value represents the screen brightness value manually adjusted by the user when entering the application, and the first brightness magnification is determined according to the average grayscale of the display screen of the application.

[0077] In some embodiments, the initial brightness value is obtained in the following manner: in response to the user's second operation, the second screen brightness of the electronic device when the application interface is displayed is obtained; and the initial brightness value is determined based on the difference between the second screen brightness and the first screen brightness.

[0078] like Figure 2 As shown, the Game Manager 2.0 version application has a "brightness bar" control. Taking the application currently running on the electronic device as game application A as an example, when the electronic device displays the game screen of game application A, the user adjusts the screen brightness by dragging the brightness bar. The operation of dragging the brightness bar is the second operation.

[0079] For example, before the user drags the brightness bar, the screen brightness of the electronic device when displaying the game screen is brightness ①, and brightness ① is the first screen brightness. The first screen brightness is the default screen brightness value of the electronic device when running game application A. The default screen brightness value can be determined by the current ambient light intensity of the electronic device. This embodiment does not specifically limit the method for determining the default screen brightness value.

[0080] After the user drags the brightness bar, the screen brightness of the electronic device when displaying the game screen is brightness ②, which is the second screen brightness. Since the second screen brightness is adjusted and set by the user, it can be regarded as the user's preferred brightness when the electronic device is running game application A. The difference between brightness ② and brightness ① is used as the initial brightness value, so that the initial brightness value can truly reflect the user's preference for screen brightness. For example, a positive initial brightness value indicates that the user prefers a brighter screen brightness when the electronic device is running game application A; a negative initial brightness value indicates that the user prefers a darker screen brightness when the electronic device is running game application A.

[0081] In some embodiments, the first brightness magnification is determined according to an average grayscale of a display screen of the application.

[0082] Again, let's assume that the electronic device is currently running game application A. The electronic device collects multiple target images of game application A. For example, while game application A is running, the electronic device may collect a target image of game application A every 100 frames until the electronic device has collected 100 target images of game application A. It should be understood that this embodiment does not impose specific restrictions on the method or number of target image collections, and these can be set based on actual needs.

[0083] The electronic device calculates a grayscale histogram of each target image, and calculates an average grayscale histogram of the game application A based on the grayscale histogram of each target image.

[0084] In some embodiments, the step of calculating the average grayscale histogram may be performed at Figure 4Specifically, after the histogram processing module obtains the average grayscale histogram of game application A, the average grayscale of game application A is calculated based on the average grayscale histogram; the grayscale interval in which the average grayscale falls is determined, and based on the preset preference magnifications corresponding to the two endpoints of the grayscale interval, the corresponding relationship between the grayscale in the grayscale interval and the preference magnification is calculated; and the first brightness magnification is calculated based on the average grayscale and the corresponding relationship.

[0085] For example, assuming that the average grayscale of game application A is Ax, and the grayscale range of Ax is (A1, A2), where the preset preference magnification corresponding to A1 is a1, and the preset preference magnification corresponding to A2 is a2, then the first brightness magnification corresponding to hist is ax = (a2-a1)(Ax-A1) / (A2-A1)+a1.

[0086] In some embodiments, after the histogram processing module obtains the first brightness magnification, the first brightness magnification is sent to the Game Manager version 2.0 application.

[0087] In some embodiments, if the version of game application A undergoes version iteration, the electronic device will reacquire the target image of game application A so that the histogram processing module can correct the first brightness multiplier of game application A to further ensure the accuracy of the target brightness value obtained subsequently.

[0088] 603: The ambient light sensor obtains the ambient light intensity of the electronic device and the actual brightness of the ambient light corresponding to the ambient light intensity.

[0089] 604: The brightness module calculates a second brightness magnification according to the initial brightness value, the ambient light intensity, the actual ambient light brightness, and the first screen brightness.

[0090] In some embodiments, the brightness module determines the user's brightness preference type based on the initial brightness value; determines the ambient light brightness change type of the ambient light based on the change value of the ambient light intensity; determines the magnification calculation strategy of the second brightness magnification based on the brightness preference type and the ambient light brightness change type, and calculates the second brightness magnification based on the ambient light intensity, the actual brightness of the ambient light, the first screen brightness and the magnification calculation strategy.

[0091] Specifically, when the initial brightness value is positive, the brightness preference type is determined to be positive preference; when the initial brightness value is negative, the brightness preference type is determined to be negative preference; the ambient light brightness change type of the ambient light is determined according to the change value of the ambient light intensity, including: when the change value of the ambient light intensity is positive, the ambient light brightness change type is determined to be brightness increase; when the change value of the ambient light intensity is negative, the ambient light brightness change type is determined to be brightness decrease.

[0092] When the brightness preference type is positive preference or negative preference, and the ambient light brightness change type is brightness increase, determining a first preset light intensity threshold interval in which the ambient light intensity is located, and obtaining a first ambient light brightness corresponding to the first preset light intensity threshold interval;

[0093] The second brightness magnification is calculated according to the following formula:

[0094] BrightenRatio = (ND) / (NA), where BrightenRatio is the second brightness ratio, N is the first ambient light brightness, D is the actual ambient light brightness, and A is the first screen brightness. As can be seen from the above formula, when the first ambient light brightness N is greater, the value of the second brightness ratio BrightenRatio is smaller, thereby lowering the subsequent target brightness value, so that the screen brightness of the electronic device displaying the application interface will not be too bright, thereby improving user comfort.

[0095] When the brightness preference type is negative preference and the ambient light brightness change type is brightness reduction, the second brightness magnification is calculated according to the following formula:

[0096] DarkenRatio = (D-4) / (A-4), where DarkenRatio is the second brightness ratio, D is the actual ambient light brightness, and A is the first screen brightness. As can be seen from the above formula, if the user's brightness preference type is negative and the ambient light brightness change type is brightness reduction, the second brightness ratio DarkenRatio is independent of the first ambient light brightness N because the ambient light brightness change meets the user's brightness preference type.

[0097] When the brightness preference type is positive preference and the ambient light brightness change type is brightness reduction, determining a second preset light intensity threshold interval in which the ambient light intensity is located, and obtaining a second ambient light brightness corresponding to the second preset light intensity threshold interval;

[0098] The second brightness magnification is calculated according to the following formula:

[0099] BrightenRatio = (DN) / (A), where BrightenRatio is the second brightness ratio, N is the second ambient light brightness, D is the actual ambient light brightness, and A is the first screen brightness. As can be seen from the above formula, when the second ambient light brightness N is smaller, the second brightness ratio BrightenRatio is larger, so that the target brightness value calculated subsequently is larger. This is because the user's brightness preference type is positive preference, and the ambient light brightness change type is brightness reduction. Since the user requires a brighter screen brightness, setting a larger second brightness ratio BrightenRatio to obtain a larger target brightness value can meet the user's screen brightness requirements.

[0100] 605: The game manager application calculates a target brightness value based on the initial brightness value, the first brightness magnification, and the second brightness magnification.

[0101] In some embodiments, the target brightness value is calculated according to the following formula:

[0102] Target brightness value=initial brightness value*(first brightness magnification*k*second brightness magnification*(1-k)), where k is the weight.

[0103] In some embodiments, the size of k is not specifically limited and can be set according to actual needs.

[0104] 606: The game manager application adjusts the screen brightness of the electronic device when displaying the game screen according to the target brightness value.

[0105] In some embodiments, the Game Manager 2.0 application uses the sum of the target brightness value and the first screen brightness as the screen brightness of the electronic device.

[0106] By adopting the above technical solution, the electronic device can determine the user's preferred brightness under the application when displaying the application interface, that is, the initial brightness value, and can also determine the first brightness magnification of the application. By obtaining the ambient light intensity of the electronic device in real time, it can sense whether the ambient light intensity of the electronic device has changed, and when the ambient light intensity changes, calculate the second brightness magnification under the current ambient light intensity based on the initial brightness value. Since the first brightness magnification is determined according to the average grayscale of the display screen of the application, the second brightness magnification is used to characterize the user's brightness preference under different ambient light intensities. Therefore, the target brightness value calculated by the initial brightness value, the first brightness magnification and the second brightness magnification can accurately measure the user's required brightness under the ambient light intensity, thereby providing the user with a more comfortable application scenario experience. By adopting the above technical solution, the electronic device can determine the user's preferred brightness under the application when displaying the application interface, that is, the initial brightness value, and can also determine the first brightness magnification of the application. By acquiring the ambient light intensity of the electronic device in real time, it is possible to sense whether the ambient light intensity of the electronic device has changed, and when the ambient light intensity changes, calculate the second brightness magnification under the current ambient light intensity based on the initial brightness value. Since the first brightness magnification is determined according to the average grayscale of the display screen of the application, the second brightness magnification is used to characterize the user's brightness preference under different ambient light intensities. Therefore, the target brightness value calculated by the initial brightness value, the first brightness magnification and the second brightness magnification can accurately meet the user's required brightness under the ambient light intensity, thereby providing the user with a more comfortable application scenario experience.

[0107] See Figure 7 FIG. 1 is a flow chart of a method for adjusting screen brightness according to an embodiment of the present application. This embodiment can be applied to the aforementioned electronic device 100 and includes the following steps:

[0108] 701: In response to a first operation of the user, running an application and displaying an application interface of the application.

[0109] 702: Obtain a first screen brightness when the electronic device displays an application interface, as well as an initial brightness value and a first brightness magnification of the application.

[0110] 703: Obtain the ambient light intensity of the electronic device and the actual brightness of the ambient light corresponding to the ambient light intensity.

[0111] 704: Calculate a second brightness magnification according to the initial brightness value, the ambient light intensity, the actual ambient light brightness, and the first screen brightness.

[0112] 705: Calculate a target brightness value according to the initial brightness value, the first brightness magnification, and the second brightness magnification.

[0113] 706: Adjust the screen brightness of the electronic device displaying the application interface according to the target brightness value.

[0114] Steps 702 to 706 of this embodiment are similar to steps 601 to 606 of the aforementioned embodiment, and are not described again here to avoid repetition.

[0115] See Figure 8 As shown, the electronic device 100 involved in the embodiment of the present application is introduced below. The electronic device 100 in the embodiment of the present application can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), large screen, smart TV, netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR)\virtual reality (VR) device and other devices including touch screen. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device. Please refer to Figure 8 , Figure 8 1 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application.

[0116] The electronic device 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation to the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0117] The RF unit 101 can be used to send and receive information or receive signals during calls. Specifically, it receives downlink information from the base station and transmits it to the processor 110 for processing. It also transmits uplink data to the base station. Typically, the RF unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and more. Furthermore, the RF unit 101 can communicate with the network and other devices via wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0118] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0119] The audio output unit 103 can convert voice data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Furthermore, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, or the like.

[0120] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos captured by an image capture device (e.g., a camera) in video capture mode or image capture mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the GPU 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the RF unit 101 or the WiFi module 102. The microphone 1042 may receive sound (voice data) in operating modes such as phone call mode, recording mode, and voice recognition mode, and may process such sound into voice data. In phone call mode, the processed audio (voice) data may be converted into a format that can be transmitted to a mobile communication base station via the RF unit 101. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.

[0121] The electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.

[0122] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The mobile terminal of the present invention may have one or more display units 106. For example, a dual-screen terminal may have two screens, one located on the front and the other on the back of the terminal body.

[0123] The user input unit 107 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using a finger, stylus, or any other suitable object or accessory on or near the touch panel 1071) and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 110. It can also receive commands sent by the processor 110 and execute them. In addition, the touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, a joystick, etc., and are not specifically limited here.

[0124] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Figure 1 In the embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal, which is not limited here.

[0125] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.

[0126] Memory 109 can be used to store software programs and various data. Memory 109 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function). The data storage area may store data generated based on the use of the mobile phone (such as voice data, a phone book, etc.). Furthermore, memory 109 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0127] Processor 110 is the control center of the mobile terminal, connecting all components of the mobile terminal using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 109 and accessing data stored in memory 109, it executes various functions of the mobile terminal and processes data, thereby providing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, processor 110 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 110.

[0128] The memory 109 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0129] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation of DDR SDRAM is generally referred to as DDR5 SDRAM), etc.

[0130] Non-volatile memory may include disk storage devices and flash memory.

[0131] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage cell potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.

[0132] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.

[0133] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .

[0134] The external memory interface can be used to connect to an external non-volatile memory to expand the storage capacity of the first electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface to implement a data storage function.

[0135] The screen brightness adjustment methods in the above embodiments can all be implemented in the electronic device 100 having the above hardware structure.

[0136] This embodiment also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on the electronic device 100, the electronic device 100 executes the above-mentioned related method steps to implement the screen brightness adjustment method in the above-mentioned embodiment.

[0137] This embodiment also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the screen brightness adjustment method in the above-mentioned embodiment.

[0138] This embodiment also provides a chip system, which is coupled to a memory and is used to read and execute a computer program stored in the memory to implement the screen brightness adjustment method in the above embodiment.

[0139] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0140] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0141] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0142] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0143] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, 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.

[0144] 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 of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A screen brightness adjustment method, applied to electronic equipment, characterized in that: The method comprises: In response to a first operation by the user, running an application and displaying an application interface of the application; Obtaining a first screen brightness of the electronic device when displaying the application interface, as well as an initial brightness value and a first brightness magnification of the application, wherein the initial brightness value represents a screen brightness value adjusted by the user after entering the application, and the first brightness magnification is determined based on an average grayscale of a display screen of the application; Acquire the ambient light intensity of the electronic device and the actual brightness of the ambient light corresponding to the ambient light intensity; calculating a second brightness magnification according to the initial brightness value, the ambient light intensity, the actual ambient light brightness, and the first screen brightness, wherein the second brightness magnification is used to represent the user's brightness preference under different ambient light intensities; A target brightness value is calculated according to the initial brightness value, the first brightness magnification, and the second brightness magnification, and the screen brightness of the electronic device displaying the application interface is adjusted according to the target brightness value.

2. The screen brightness adjustment method according to claim 1, wherein: The method for obtaining the initial brightness value includes: In response to a second operation by the user, obtaining a second screen brightness of the electronic device when the electronic device displays the application interface; The initial brightness value is determined according to a difference between the second screen brightness and the first screen brightness.

3. The screen brightness adjustment method according to claim 1 or 2, characterized in that: The calculating the second brightness magnification according to the initial brightness value, the ambient light intensity, the actual brightness of the ambient light, and the first screen brightness includes: determining the user's brightness preference type according to the initial brightness value; determining a type of change in ambient light brightness of the ambient light according to a change value of the ambient light intensity; A magnification calculation strategy for the second brightness magnification is determined according to the brightness preference type and the ambient light brightness change type, and the second brightness magnification is calculated according to the ambient light intensity, the actual ambient light brightness, the first screen brightness, and the magnification calculation strategy.

4. The screen brightness adjustment method according to claim 3, wherein: The determining the user's brightness preference type according to the initial brightness value includes: When the initial brightness value is a positive value, determining the brightness preference type as a positive preference; When the initial brightness value is a negative value, the brightness preference type is determined to be a negative preference.

5. The screen brightness adjustment method according to claim 4, wherein: The determining the ambient light brightness change type of the ambient light according to the change value of the ambient light intensity includes: When the change value of the ambient light intensity is a positive value, determining that the type of change in the ambient light brightness is a brightness increase; When the change value of the ambient light intensity is a negative value, it is determined that the ambient light brightness change type is brightness reduction.

6. The screen brightness adjustment method according to claim 5, wherein: The method further comprises: determining a magnification calculation strategy for the second brightness magnification according to the brightness preference type and the ambient light brightness change type, and calculating the second brightness magnification according to the ambient light intensity, the actual ambient light brightness, the first screen brightness, and the magnification calculation strategy, including: When the ambient light brightness change type is brightness increase, determining a first preset light intensity threshold interval in which the ambient light intensity is located, and obtaining a first ambient light brightness corresponding to the first preset light intensity threshold interval; The second brightness ratio is calculated according to the following formula: BrightenRatio=(ND) / (NA), where BrightenRatio is the second brightness ratio, N is the first ambient light brightness, D is the actual brightness of the ambient light, and A is the first screen brightness.

7. The screen brightness adjustment method according to claim 5, wherein: The method further comprises: determining a magnification calculation strategy for the second brightness magnification according to the brightness preference type and the ambient light brightness change type, and calculating the second brightness magnification according to the ambient light intensity, the actual ambient light brightness, the first screen brightness, and the magnification calculation strategy, including: When the brightness preference type is negative preference and the ambient light brightness change type is brightness reduction, the second brightness magnification is calculated according to the following formula: DarkenRatio=(D-4) / (A-4), where DarkenRatio is the second brightness ratio, D is the actual brightness of the ambient light, and A is the first screen brightness.

8. The screen brightness adjustment method according to claim 5, wherein: The method further comprises: determining a magnification calculation strategy for the second brightness magnification according to the brightness preference type and the ambient light brightness change type, and calculating the second brightness magnification according to the ambient light intensity, the actual ambient light brightness, the first screen brightness, and the magnification calculation strategy, including: When the brightness preference type is positive preference and the ambient light brightness change type is brightness reduction, determining a second preset light intensity threshold interval within which the ambient light intensity is located, and obtaining a second ambient light brightness corresponding to the second preset light intensity threshold interval; The second brightness ratio is calculated according to the following formula: BrightenRatio=(DN) / (A), where BrightenRatio is the second brightness ratio, N is the second ambient light brightness, D is the actual ambient light brightness, and A is the first screen brightness.

9. The screen brightness adjustment method according to claim 1, wherein: The method for determining the first brightness magnification includes: collecting a plurality of target images of the application; Calculating a grayscale histogram of each target image, and calculating an average grayscale histogram of the application based on the grayscale histogram of each target image; The first brightness magnification is calculated according to the average grayscale histogram.

10. The screen brightness adjustment method according to claim 9, wherein: The calculating the first brightness magnification according to the average grayscale histogram includes: Calculating the average grayscale of the application according to the average grayscale histogram; Determining the grayscale interval range in which the average grayscale is located, and calculating the correspondence between the grayscale in the grayscale interval range and the preferred magnification according to the preset preferred magnifications corresponding to the two endpoint values of the grayscale interval range; The first brightness magnification is calculated according to the average grayscale and the corresponding relationship.

11. The screen brightness adjustment method according to claim 1, wherein: The electronic device is installed with a preset application, the preset application includes a brightness adjustment interface, and the method further includes: Based on the multiple controls in the brightness adjustment interface, the screen brightness of the electronic device when displaying the application interface is adjusted.

12. The screen brightness adjustment method according to claim 11, wherein: The preset application is connected to the electronic device via an F interface.

13. The screen brightness adjustment method according to claim 1, wherein: The initial brightness value, the first brightness magnification, the second brightness magnification, and the target brightness value are calculated using the following formula: Target brightness value=initial brightness value*(first brightness magnification*k*second brightness magnification*(1-k)), where k is the weight.

14. An electronic device, characterized in that: The electronic device includes a display screen, a memory and a processor; The display screen and the memory are both coupled to the processor; The memory is used to store program instructions; The processor is used to read the program instructions stored in the memory to implement the screen brightness adjustment method as described in any one of claims 1 to 13.

15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the screen brightness adjustment method according to any one of claims 1 to 13 is implemented.

16. A computer program product comprising computer-readable instructions, characterized in that: When the computer-readable instructions are executed by a processor, the screen brightness adjustment method as described in any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Method for adjusting the screen luminance of terminal, and terminal equipment

    CN105280160A

  • Adaptive screen brightness adjusting method and system

    CN105702228A

  • Brightness adjusting method of mobile terminal, mobile terminal and storage medium

    CN110035176A

  • Screen brightness adjusting method, mobile terminal and computer readable storage medium

    CN110417999A

  • Screen brightness adjusting method and device and electronic equipment

    CN115132149A

Cited By

  • Brightness adjustment method and device, electronic equipment, storage medium and program product

    CN121075249A