Brightness adjustment method and device and storage medium
By classifying and clustering the brightness data sets of mobile terminals, the correspondence between scene characteristics and brightness adjustment strategies is established, and the problem of being unable to dynamically adjust screen brightness according to different usage scenarios in the existing technology is solved, and a better user experience is achieved .
Patent Information
- Application Number
- CN202311013365.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-11
- Publication Date
- 2025-02-18
AI Technical Summary
The screen brightness adjustment method of existing mobile terminals cannot dynamically adjust the brightness according to different usage scenarios, resulting in the inability to meet the screen brightness needs of different users, affecting the user experience.
By obtaining the brightness data set, scene feature classification and brightness adjustment strategy clustering are carried out, the correspondence between scene features and brightness adjustment strategy is established, and terminal brightness is dynamically adjusted.
It realizes dynamic adjustment of terminal screen brightness according to different scenario characteristics, meets the needs of different users, and improves user experience.
Smart Images

Figure CN119479519A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of mobile terminal display technology, and in particular to a brightness adjustment method, device and storage medium. Background Art
[0002] With the rapid development of science and technology, the screen brightness adjustment technology used in mobile terminals is becoming increasingly mature.
[0003] In the related art, the screen brightness is adjusted mainly based on a one-to-one mapping relationship between the ambient light intensity and the screen brightness, for example, a brightness adjustment curve is preset in the mobile terminal, and the mobile terminal automatically adjusts the screen brightness according to the light intensity. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a brightness adjustment method, device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a brightness adjustment method is provided, the method comprising: in response to detecting that a current scene feature of a terminal matches a scene feature in a first mapping relationship, determining a brightness adjustment strategy that matches the current scene based on the first mapping relationship; wherein the first mapping relationship represents a correspondence between a scene feature set and a brightness adjustment strategy, the scene feature set including one or more scene features obtained based on clustering; and adjusting the brightness of the terminal according to the brightness adjustment strategy.
[0006] In one embodiment, the first mapping relationship is determined in the following manner: obtaining a brightness data set, the brightness data set including scene features and brightness adjustment strategies; performing feature classification on the scene features in the brightness data set; clustering the brightness adjustment strategies based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to each feature in the scene feature set; creating a correspondence between each category of brightness adjustment strategy and the scene feature set to obtain a first mapping relationship.
[0007] In one embodiment, the brightness adjustment strategies are clustered based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to the various features in the scene feature sets, including: sorting the various scene feature sets obtained by classification from high to low according to the degree of influence of the features included in the scene feature sets on the brightness adjustment; and clustering the brightness adjustment strategies based on a set number of scene feature sets that are sorted first and the brightness adjustment strategies corresponding to the various features in the set number of scene feature sets.
[0008] In one embodiment, before adjusting the brightness of the terminal according to the brightness adjustment strategy, the method also includes: determining that the usage status of the terminal is to turn the screen off and then on; and / or determining that the change in ambient light illumination in the environment where the terminal is located within a set time period is greater than a threshold.
[0009] In one implementation, the method further includes: if it is detected that a condition for scheduling a second mapping relationship is met, adjusting the brightness according to the second mapping relationship; the second mapping relationship is a correspondence between a parameter for automatic brightness adjustment set by default in the terminal and the brightness.
[0010] According to a second aspect of an embodiment of the present disclosure, a brightness adjustment device is provided, the device comprising: a processing unit, for determining a brightness adjustment strategy that matches the current scene based on the first mapping relationship in response to detecting that a current scene feature of a terminal matches a scene feature in a first mapping relationship, and for adjusting the brightness of the terminal according to the brightness adjustment strategy; wherein the first mapping relationship represents a correspondence between a scene feature set and a brightness adjustment strategy, the scene feature set including one or more scene features obtained based on clustering.
[0011] In one embodiment, the first mapping relationship is determined in the following manner: obtaining a brightness data set, the brightness data set including scene features and brightness adjustment strategies; performing feature classification on the scene features in the brightness data set; clustering the brightness adjustment strategies based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to each feature in the scene feature set; creating a correspondence between each category of brightness adjustment strategy and the scene feature set to obtain a first mapping relationship.
[0012] In one embodiment, the processing unit clusters the brightness adjustment strategies based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to each feature in the scene feature sets in the following manner: sort the various scene feature sets obtained by classification from high to low according to the degree of influence of the features included in the scene feature sets on the brightness adjustment; cluster the brightness adjustment strategies based on a set number of scene feature sets that are sorted first and the brightness adjustment strategies corresponding to each feature in the set number of scene feature sets.
[0013] In one embodiment, before adjusting the brightness of the terminal according to the brightness adjustment strategy, the processing unit is also used to: determine that the usage status of the terminal is screen off and then screen on; and / or determine that the change in ambient light illumination in the environment where the terminal is located within a set time period is greater than a threshold.
[0014] In one embodiment, the processing unit is further used to: if it is detected that the conditions for scheduling the second mapping relationship are met, adjust the brightness according to the second mapping relationship; the second mapping relationship is the correspondence between the parameters for automatic brightness adjustment set by default in the terminal and the brightness.
[0015] According to a third aspect of an embodiment of the present disclosure, a brightness adjustment device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the method described in the first aspect or any one of the embodiments of the first aspect.
[0016] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method described in the first aspect or any one of the embodiments of the first aspect.
[0017] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: clustering the scene feature set and the brightness adjustment strategy to obtain a first mapping relationship; when the terminal detects that the current scene feature matches the scene feature in the first mapping relationship, the terminal brightness is adjusted based on the corresponding brightness adjustment strategy in the first mapping relationship, thereby achieving the effect of dynamically adjusting the terminal brightness, meeting the needs of different groups of people for screen brightness adjustment, and enhancing the user experience.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0020] Figure 1 is a flowchart of a brightness adjustment method according to an exemplary embodiment
[0021] Figure 2 The figure is a flowchart of a method for determining a first mapping relationship according to an exemplary embodiment.
[0022] Figure 3 The figure is a flow chart of a brightness adjustment strategy clustering method according to an exemplary embodiment.
[0023] Figure 4 is a flow chart showing another brightness adjustment method according to an exemplary embodiment.
[0024] Figure 5The figure is a flow chart showing a method for presetting a brightness curve according to an exemplary embodiment.
[0025] Figure 6 The figure is a flow chart showing a clustering curve algorithm working method according to an exemplary embodiment.
[0026] Figure 7 The figure is a flow chart showing another clustering curve algorithm working method according to an exemplary embodiment.
[0027] Figure 8 The figure is a block diagram of a brightness adjustment device according to an exemplary embodiment.
[0028] Fig. 9 The figure is a block diagram of a brightness adjustment device according to an exemplary embodiment.
[0029] Fig.10 The figure is a block diagram of a brightness adjustment device according to an exemplary embodiment. DETAILED DESCRIPTION
[0030] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0031] The brightness adjustment method provided by the embodiment of the present disclosure is applied to the scenario where a mobile terminal automatically adjusts the screen brightness.
[0032] In the related art, with the rapid development of science and technology, the functions provided by mobile terminals are becoming more and more abundant. The terminal can be used to automatically adjust the brightness of the screen, providing convenience for users and giving mobile terminal users a better user experience. For example, the terminal can be used to automatically adjust the brightness of the screen according to the ambient light intensity.
[0033] In the related art, the brightness adjustment of the screen based on the terminal can mainly be carried out by pre-setting the mapping relationship curve into the mobile terminal to adjust the brightness of the screen. For example, based on user big data, a machine learning method is used to generate an automatic screen brightness adjustment curve, which represents the mapping relationship between the screen brightness and the ambient light intensity. The obtained mapping relationship curve is pre-set in the mobile terminal. When the user uses the mobile terminal under different ambient light intensities, the terminal will find the corresponding screen brightness in the preset mapping relationship curve according to the current ambient light intensity, and adjust the screen brightness to the corresponding screen brightness. However, pre-setting the mapping relationship curve for screen brightness adjustment means that the automatic brightness adjustment curve cannot be actively changed, resulting in that sometimes the automatic screen brightness adjustment of the mobile terminal cannot satisfy some users, and its adjustment method cannot be changed.
[0034] In the related art, the brightness of the screen is adjusted based on the terminal, and the screen brightness can also be adjusted by using the function of memorizing the user's usage habits according to the built-in processing control module of the terminal. For example, in the manual adjustment mode, the corresponding relationship between the display screen brightness parameters under different ambient lighting conditions and the display screen brightness manually adjusted by the user is obtained by using the processing control module placed in the terminal, and the corresponding relationship is stored, and the stored content is placed in the storage module of the terminal. When the user is using the mobile terminal, in the automatic adjustment mode, the screen brightness is adjusted by reading the screen brightness parameters from the storage module in combination with the current ambient light intensity. However, when the method is used to adjust the brightness of the screen, there is only one influencing factor, the ambient illumination, that is, when the user uses the mobile terminal under the same ambient light intensity but in different usage scenarios, the demand for screen brightness may be different, but the terminal cannot give feedback to it, and the screen brightness will still be adjusted according to the user's usage habits stored in the storage module, which lacks universality.
[0035] In view of this, an embodiment of the present disclosure provides a brightness adjustment method, which compares the current scene features with the scene features obtained through clustering. When the two match, the brightness of the screen is adjusted according to the scene features obtained by clustering and the brightness adjustment strategies corresponding to these features.
[0036] In the disclosed embodiment, based on the big data of screen brightness used by users, feature extraction is performed on the scene features contained therein, and the important scene features are sorted. The sorted scene features and their corresponding brightness adjustment strategies are clustered to obtain a clustering curve that can be used to dynamically adjust the terminal screen brightness adjustment strategy, thereby satisfying the terminal's dynamic adjustment of screen brightness under different scene characteristics.
[0037] Figure 1 is a flow chart of a brightness adjustment method according to an exemplary embodiment. Figure 1 As shown, the brightness adjustment method is used in a terminal and includes the following steps.
[0038] In step S11, the terminal detects whether the current scene feature matches the scene feature in the first mapping relationship.
[0039] In the disclosed embodiment, the first mapping relationship is the correspondence between the scene feature set pre-set into the terminal and the brightness adjustment strategy, that is, for each specific scene, there is a corresponding scene feature set; and for each scene feature set, there is a unique brightness adjustment strategy corresponding to it.
[0040] In step S12, based on the first mapping relationship, a brightness adjustment strategy matching the current scene is determined.
[0041] In the disclosed embodiment, when the terminal detects that the current scene feature matches the scene feature included in the first mapping relationship, the screen brightness needs to be adjusted. Therefore, the terminal needs to determine the adjustment strategy of the screen brightness under the current scene feature provided by the first mapping relationship, and then the brightness can be adjusted subsequently.
[0042] In step S13, the brightness of the terminal is adjusted according to the brightness adjustment strategy.
[0043] In the disclosed embodiment, after the adjustment strategy of the screen brightness is determined, the terminal adjusts the screen brightness under the current scene characteristics according to the determined brightness adjustment strategy.
[0044] Figure 2 is a flowchart of a method for determining a first mapping relationship according to an exemplary embodiment. Figure 2 As shown, the method for determining the first mapping relationship is used in a terminal, and includes the following steps.
[0045] In step S21, a brightness data set is acquired.
[0046] In the embodiment of the present disclosure, the brightness data set is the big data of screen brightness when the user uses the terminal. To determine the first mapping relationship, it is necessary to extract it from the user's big data. Therefore, when obtaining the first mapping relationship, the present disclosure needs to obtain the brightness data set.
[0047] In the disclosed embodiment, after obtaining the user big data, the data needs to be processed.
[0048] Feature clustering algorithms can divide data sets into different classes or clusters so that each class or cluster has a high similarity, such as the Xgboost algorithm and the minimum binning method.
[0049] Xgboost (eXtreme Gradient Boosting) algorithm is an algorithm based on gradient boosting decision tree, which can be applied to data mining to process data, such as feature processing of massive data.
[0050] The minimum binning method is a binning method for data processing in the field of data mining. It can classify data and sort its features. Its advantage is that it can effectively prevent data overfitting.
[0051] In step S22, feature classification is performed on the scene features in the brightness data set.
[0052] In the disclosed embodiment, after obtaining the brightness data set, it is first necessary to classify these data sets to obtain various scene features when the user uses the terminal. For example, user A uses a chat software on a mobile phone in a dark room at 8 o'clock in the morning. After labeling the scene, the features obtained may be: morning, chat software, dark environment light intensity, and screen brightness at that moment.
[0053] In the disclosed embodiment, when classifying a data set, a machine learning method can be used to classify the data set. For example, the data set can be processed using a minimum binning method to obtain a variety of different scene features, and the features can be sorted.
[0054] In the disclosed embodiment, after obtaining a plurality of scene features, in order to obtain a first mapping relationship, the obtained scene features need to be combined, and therefore, a clustering operation needs to be performed on the obtained scene features.
[0055] In step S23, brightness adjustment strategies are clustered based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to the features in the scene feature sets.
[0056] In the disclosed embodiment, a machine learning method can be used to combine various scene feature sets and the brightness adjustment strategies corresponding to these feature sets, that is, to perform a clustering operation. For example, the scene feature sets and the brightness adjustment strategies corresponding to these sets are clustered using the Xgboost algorithm, so that the scene feature sets corresponding to different categories of brightness adjustment strategies can be obtained.
[0057] In the disclosed embodiment, after obtaining the scene feature sets corresponding to different types of brightness adjustment strategies, the corresponding relationship between the two can be determined.
[0058] In step S24, a corresponding relationship between each category of brightness adjustment strategy and the scene feature set is created to obtain a first mapping relationship.
[0059] In the disclosed embodiment, since the first mapping relationship requires a correspondence between a scene feature set and a brightness adjustment strategy, it is necessary to create different types of brightness adjustment strategies, for example, brightening scenes, dimming scenes, and default scenes. The default scene refers to the terminal not adjusting the screen brightness.
[0060] It should be understood that the foreground usage characteristics, horizontal and vertical screen usage characteristics, and time usage characteristics listed in the embodiments of the present disclosure are only examples of many important characteristics, and the important characteristics involved in the embodiments of the present disclosure include but are not limited to the above-mentioned characteristics.
[0061] Figure 3 is a flow chart of a brightness adjustment strategy clustering method according to an exemplary embodiment. Figure 3 As shown, determining the brightness adjustment strategy clustering method for use in a terminal includes the following steps.
[0062] In step S31, the various scene feature sets obtained by classification are sorted from high to low according to the influence of the features included in the scene feature sets on the brightness adjustment.
[0063] In the disclosed embodiment, before clustering the feature scene set, it is necessary to select important features from these features, that is, features that have a greater impact on the screen brightness adjustment strategy, so as to improve the clustering effect and obtain a better clustering curve.
[0064] Therefore, in the embodiment of the present disclosure, various types of features in the scene feature set are screened, and scene features that have a greater impact on the screen brightness adjustment strategy are selected for clustering.
[0065] In step S32, brightness adjustment strategies are clustered based on a set number of scene feature sets that are ranked first and the brightness adjustment strategies corresponding to the features in the set number of scene feature sets.
[0066] In the disclosed embodiment, after obtaining the scene feature set for clustering, it is necessary to cluster the brightness adjustment strategies corresponding to these features, so as to obtain the scene feature sets corresponding to different categories of brightness adjustment strategies, and then obtain the first mapping relationship.
[0067] In the disclosed embodiment, after the first mapping relationship is obtained, it needs to be put into the application of the terminal to adjust the screen brightness. However, if the terminal immediately adjusts the screen brightness, it will affect the user experience.
[0068] Therefore, in the embodiment of the present disclosure, after obtaining the first mapping relationship, the terminal does not adjust the screen brightness immediately, but waits until it is no longer in use before modifying the brightness adjustment strategy. That is, when at least one of the following occurs, the terminal will modify the screen brightness adjustment strategy and put it into application when it is detected that the terminal usage status is the screen turning on after the screen is turned off and when it is detected that the change in the ambient light illumination in the environment where the terminal is located within a set time period is greater than a threshold. That is, the brightness of the terminal is adjusted based on the brightness adjustment strategy determined based on the first mapping relationship when at least one of the following is detected: determining that the terminal usage status is the screen turning on after the screen is turned off; and / or determining that the change in the ambient light illumination in the environment where the terminal is located within a set time period is greater than a threshold.
[0069] Among them, in one method, in the embodiment of the present disclosure, when it is determined that the usage status of the terminal is to turn the screen off and then on; and when it is determined that the change in the ambient light illumination in the environment where the terminal is located within a set time period is greater than a threshold, the brightness of the terminal is adjusted based on the brightness adjustment strategy determined by the first mapping relationship.
[0070] The setting duration, threshold, etc. can be freely set, and the present disclosure does not limit this. In one example, in the present disclosure embodiment, the terminal screen can be turned on again after 5 minutes of being off, and when the ambient light illumination changes by more than the threshold, the brightness of the terminal is adjusted based on the brightness adjustment strategy determined by the first mapping relationship.
[0071] It should be understood that the above-mentioned detection of the terminal status of turning the screen off and then lighting the screen, and detecting that the change in ambient illumination of the environment in which the terminal is located is greater than the threshold, are both for delaying the effectiveness of the brightness adjustment strategy, so as to avoid the terminal adjusting the screen brightness immediately after obtaining the first mapping relationship in the current scene, which affects the user's experience. Therefore, in order to delay the effectiveness of the brightness adjustment strategy of the terminal, the terminal operation status can also be detected and subsequently judged according to other conditions, and then the brightness adjustment strategy is adjusted, which is not limited in this disclosure. For example, after determining the first mapping relationship, the user is still using the mobile phone, and the terminal will not adjust the screen brightness at this time. When it is detected that the screen is turned on again after a set time (for example, 5 minutes) of turning off the screen, the ambient illumination changes from less than or equal to 7lux to greater than or equal to 100lux, and the foreground is the top application, the terminal will put the first mapping relationship into use to adjust the screen brightness.
[0072] In the disclosed embodiment, since modifying the screen brightness adjustment strategy by clustering curves is not applicable to all situations, when there is no need to use the first mapping relationship to adjust the screen brightness adjustment strategy, the terminal's built-in automatic brightness adjustment curve is still used to achieve screen brightness adjustment.
[0073] Figure 4is a flow chart showing another brightness adjustment method according to an exemplary embodiment. Figure 4 As shown, the brightness adjustment method is used in a terminal and includes the following steps.
[0074] In step S41, the terminal detects a condition for satisfying the scheduling second mapping relationship.
[0075] In the disclosed embodiment, the second mapping relationship refers to an automatic brightness adjustment curve built into the terminal, which does not change the screen brightness adjustment strategy due to different scene characteristics used by the user. For example, the automatic brightness adjustment curve built into most mobile phones only adjusts the brightness of the mobile phone screen according to the ambient light intensity of the current use scene.
[0076] In the disclosed embodiment, when the terminal does not execute the clustering curve algorithm, the terminal detects whether the current scene satisfies the condition for adjusting the screen brightness using the automatic brightness adjustment curve.
[0077] In step S42, brightness adjustment is performed according to the second mapping relationship.
[0078] When it is detected that the current scene meets the condition for calling the second mapping relationship, that is, the current scene should use the automatic brightness curve to adjust the screen brightness, the second mapping relationship will be used to adjust the screen brightness.
[0079] Through the above embodiments, the terminal can actively change the screen brightness adjustment strategy in multiple application scenarios during operation, so that users can have a better experience; in addition, in other cases, the automatic brightness adjustment curve is still used to automatically adjust the screen brightness, which continues to facilitate users.
[0080] In the disclosed embodiment, in order to realize the dynamic change of the screen brightness adjustment strategy, the brightness curve obtained by clustering needs to be preset in the terminal.
[0081] Figure 5 is a flow chart showing a method for presetting a brightness curve according to an exemplary embodiment. Figure 5 As shown, the preset brightness curve method is used in a terminal, including the following steps.
[0082] In step S51, user brightness big data is obtained and labels are defined.
[0083] In the disclosed embodiment, big data of different scenarios faced by users when using mobile terminals can be obtained, and the features of these different scenarios can be labeled respectively.
[0084] In step S52, a feature clustering method is used.
[0085] In the disclosed embodiment, different features are obtained and classified. For example, the minimum binning method can be used to classify different scene features.
[0086] In step S53-1, the foreground application usage characteristics are obtained.
[0087] In the disclosed embodiment, according to the above scene feature sorting method, the foreground application usage feature can be obtained. For example, user A uses a chat software on a mobile phone, and the feature corresponding to this step can be the chat software.
[0088] In step S53 - 2 , the horizontal and vertical screen usage characteristics are obtained.
[0089] In the embodiment of the present disclosure, according to the above scene feature sorting method, the horizontal and vertical screen usage features can be obtained. For example, user A uses the mobile phone in horizontal mode in a certain scene, and the feature corresponding to this step can be horizontal mode.
[0090] In step S53-3, the time usage characteristics are obtained.
[0091] In the disclosed embodiment, according to the above-mentioned scene feature sorting method, time usage features can be obtained.
[0092] In step S54, the usage features are sorted.
[0093] In the disclosed embodiment, since multiple importance features can be obtained through the feature clustering method, it is necessary to re-rank the degree of influence of the multiple importance features on the screen brightness in various scenarios to obtain the sorted usage features, which is convenient for subsequent clustering operations on the usage features.
[0094] In step S55, brightness scene clustering is performed on the usage features.
[0095] In the disclosed embodiment, after the ranked scene features are obtained, a clustering operation is performed again in combination with the adjustment of the screen brightness by the user in these scenes. Through the clustering operation, multiple important features can be combined together, so that the clustered scene contains multiple important features.
[0096] It should be understood that in the scene clustering method involved in the embodiment of the present disclosure, the number of specific importance features is not limited and can be freely selected.
[0097] In step S56-1, a brightened scene is obtained.
[0098] In the disclosed embodiment, a brightened scene can be obtained by using the brightness scene clustering method, and the scene includes multiple important features.
[0099] In the embodiment of the present disclosure, the obtained brightening scene may be shown in the following Table 1:
[0100] Application Category Horizontal and vertical screen time Photo Album / / Utilities / Life / Video / News Horizontal screen / chat Horizontal screen noon game Horizontal screen Daytime / Early Morning / Noon video Vertical screen Daytime / Early Morning / Noon
[0101] Table 1
[0102] Table 1 above shows the brightening scenarios obtained by the brightness clustering method, that is, the terminal should perform a screen brightening operation under the scenarios listed in the table. That is, when the current scenario simultaneously satisfies the corresponding time, horizontal and vertical screen conditions, and application categories used by the user in the table, the terminal will perform a screen brightening operation.
[0103] The content of the first row in Table 1 indicates that application category, horizontal and vertical screen, and time represent three important features in the brightening scenario respectively.
[0104] The content of the second row in Table 1 indicates that no matter what time it is and whether the user uses the screen in landscape or portrait mode, as long as the application category used by the user is the photo album, the terminal should brighten the screen.
[0105] The content of the third row in Table 1 indicates that no matter what time it is, when the user uses the device in landscape mode and the application category used by the user is at least one of the four types of utilities, life, video and news, the terminal should brighten the screen.
[0106] The content of the fourth row in Table 1 indicates that when the time is noon, when the user uses the device in landscape mode, and the application category used by the user is chatting, the terminal should brighten the screen.
[0107] The content of the 5th row in Table 1 indicates that when the time is at least one of daytime, early morning, and noon, when the user uses the device in landscape mode, and the application category used by the user is a game, the terminal should brighten the screen.
[0108] The content of row 6 in Table 1 indicates that when the time is at least one of daytime, early morning, and noon, when the user uses the device in portrait mode, and the application category used by the user is video, the terminal should brighten the screen.
[0109] It should be understood that the above explanation of Table 1 is also applicable to the subsequent Table 2, and the present disclosure will not elaborate on the meaning of Table 2.
[0110] In step S56 - 2 , a dimming scene is obtained.
[0111] In the disclosed embodiment, a dimming scene can be obtained by the brightness scene clustering method, and the scene includes a plurality of important features.
[0112] In the embodiment of the present disclosure, the obtained brightening scene may be shown in the following Table 2:
[0113] Application Category Horizontal and vertical screen time Music / System Applications / Finance / / Games / Utilities / Chat / Life / Travel / News Vertical screen late at night Shopping / late at night
[0114] Table 2
[0115] In step S56-3, a default scene is obtained.
[0116] In the disclosed embodiment, a default scene can be obtained through the above brightness scene clustering method, and the scene includes multiple important features.
[0117] In the disclosed embodiment, when the terminal detects that the current scene is neither the brightening scene nor the dimming scene, the terminal regards the current scene as the default scene, that is, there is no need to brighten or dim the screen.
[0118] In the embodiment of the present disclosure, although there are only four time limits, namely early morning, daytime, noon, and late night, they correspond to partial time periods of 24 hours a day. For example, the division of the above four time periods can be shown in the following Table 3:
[0119] Scenario 24-hour interval daytime (8,10]、(12,20] noon (10,12] late at night (20,23]、[0,4] Early morning (4,8]
[0120] Table 3
[0121] Table 3 above shows how to divide the 24 hours of a day using the 24-hour system.
[0122] The first row in Table 3 indicates that the scene and the 24-hour interval correspond to the time scene and the division standard respectively.
[0123] The second row in Table 3 indicates that when the current time is at least one of past 8 o'clock but not past 10 o'clock and past 12 o'clock but not past 20 o'clock, the scene feature should be classified as daytime.
[0124] The third row in Table 3 indicates that when the current time is past 10 o'clock but before 12 o'clock, the scene feature is classified as noon.
[0125] The content of the 4th row in Table 3 indicates that when at least one of the following two conditions is true: the current time is past 20 o'clock but not past 0 o'clock, and the current time is from 0 o'clock (including 0 o'clock) every day but not past 4 o'clock, the scene feature is classified as late night.
[0126] The content of the fifth row in Table 3 indicates that when the current time is past 4 o'clock but before 8 o'clock, the scene feature is classified as early morning.
[0127] It should be understood that the above Table 3 does not divide time in a unique manner, and the features listed therein are not unique either. It only needs to be that the time period represented by the listed features can cover 24 hours a day, and the present disclosure does not make any limitation thereto.
[0128] It should be understood that the above Tables 1 and 2 are only possible results of the brightness clustering method in the present disclosure. Since the selected importance features may be different and the number of selected importance features may be different, the clustering results obtained by the brightness clustering method may be different, and the present disclosure does not limit this.
[0129] In step S57, linear regression is performed on the scene.
[0130] In the embodiment of the present disclosure, after obtaining the clustering result by the brightness clustering method, it is necessary to perform a linear regression operation on the obtained clustering result, so as to fit a brightness adjustment curve that can be used for automatic brightness adjustment of the mobile terminal. For example, after obtaining the clustering result, the curve is trained by machine learning, so as to fit a brightness adjustment curve. Since there are many curve fitting methods, the present disclosure does not limit this.
[0131] In the disclosed embodiment, the automatic brightness adjustment curve obtained by performing linear regression on the scene can represent the terminal's adjustment method for the screen brightness in different usage scenarios.
[0132] In step S58, brightness curve preset is performed.
[0133] In the disclosed embodiment, after obtaining a brightness curve for adjusting screen brightness according to an application scenario, the curve needs to be preset in the mobile terminal so that the brightness curve can be put into use.
[0134] In the disclosed embodiment, after the clustering curve is preset into the mobile phone, it must be put into use.
[0135] Figure 6 is a flow chart showing a clustering curve algorithm working method according to an exemplary embodiment. Figure 6 As shown, the clustering curve algorithm is used in the terminal, including the following steps.
[0136] In step S61, it is detected that the user selects to reset the automatic brightness.
[0137] In the disclosed embodiment, when a user uses a mobile terminal in a certain scenario, the user may be dissatisfied with the screen brightness adjusted by the clustering curve algorithm in the current scenario. In this case, the user needs to issue a command to reset the brightness curve to the terminal.
[0138] In step S62, the clustering curve algorithm is disabled.
[0139] In the disclosed embodiment, when the terminal detects that the user chooses to reset the automatic brightness, the clustering curve algorithm will no longer be used in this scenario, and the device will adjust the screen brightness according to the normal automatic brightness curve.
[0140] In the embodiment of the present disclosure, when the user uses the mobile terminal normally and does not choose to reset the automatic brightness, the clustering curve algorithm preset in the terminal always keeps working.
[0141] Figure 7 is a flow chart of another clustering curve algorithm working method according to an exemplary embodiment. Figure 7 As shown, the clustering curve algorithm is used in the terminal, including the following steps.
[0142] In step S71, it is detected that the user has adjusted the brightness bar.
[0143] In the disclosed embodiment, the user may be dissatisfied with the current brightness and adjust the current screen brightness. At this time, the terminal will capture the operation and perform subsequent operations.
[0144] In step S72, it is determined whether the current scene satisfies the clustering algorithm validity condition.
[0145] In the disclosed embodiment, after the terminal detects that the user adjusts the screen brightness, it is necessary to determine whether the current scene requires mobilizing the clustering curve algorithm preset in the terminal, so it is necessary to confirm that the current scene meets the conditions for the clustering algorithm to take effect.
[0146] In step S73, it is determined whether the current scenario satisfies the short-term model reset condition.
[0147] In the disclosed embodiment, when it is determined that the clustering curve algorithm needs to be called, in order to prevent the user from feeling abrupt about the brightness adjustment of the current screen, the screen brightness of the current scene will not be modified immediately, but it is necessary to wait for the short-term model reset conditions of the current scene characteristics before performing subsequent operations. Therefore, it is necessary to determine whether the current scene characteristics meet the short-term model reset conditions. For example, when the terminal detects that the device screen is off for 5 minutes and the ambient illumination changes dramatically after the screen is turned on, it is determined that the current scene characteristics meet the short-term model reset conditions, and then subsequent operations are performed.
[0148] In step S74, the clustering curve algorithm is set to take effect.
[0149] In the disclosed embodiment, when it is confirmed that the current scene features the short-term model reset condition, the clustering curve algorithm is called to modify the terminal's screen brightness adjustment strategy. If the terminal detects the scene features corresponding to the clustering curve algorithm again, the screen brightness is adjusted according to the clustering curve.
[0150] In step S75, the adjustment scenario is determined.
[0151] In the embodiment of the present disclosure, after the clustering curve algorithm is set to take effect, if the terminal detects the scene characteristics satisfied by the clustering curve algorithm that has taken effect, it is necessary to obtain the current adjustment scene according to the clustering curve algorithm, and the adjustment scene includes brightening, dimming, and default scene. Among them, the default scene refers to not adjusting the screen brightness for the current scene.
[0152] In step S76, the screen brightness is adjusted.
[0153] In the disclosed embodiment, after the adjustment scene is determined, the terminal needs to adjust the screen brightness according to the determined adjustment scene. For example, the clustering curve algorithm that has been implemented includes a brightness adjustment strategy of brightening the screen brightness when the chat software is opened at 8 am; when the user opens the chat software at 8 am, the terminal detects that the scene matches the clustering curve algorithm that has been implemented, so it is determined that the screen needs to be brightened, and the terminal will perform a screen brightness adjustment operation.
[0154] Based on the same concept, an embodiment of the present disclosure also provides a brightness adjustment device.
[0155] It is understandable that the brightness adjustment device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0156] Figure 8 FIG. 1 is a block diagram of a brightness adjustment device according to an exemplary embodiment. Figure 8 , the device includes a processing unit 101.
[0157] The processing unit 101 is used to determine a brightness adjustment strategy that matches the current scene based on the first mapping relationship in response to detecting that the current scene feature of the terminal matches the scene feature in the first mapping relationship, and to adjust the brightness of the terminal according to the brightness adjustment strategy; wherein the first mapping relationship represents the correspondence between the scene feature set and the brightness adjustment strategy, and the scene feature set includes one or more scene features obtained based on clustering.
[0158] In one embodiment, the first mapping relationship is determined in the following manner: a brightness data set is obtained, the brightness data set including scene features and brightness adjustment strategies; scene features in the brightness data set are classified; brightness adjustment strategies are clustered based on various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to each feature in the scene feature set; a correspondence is created between each category of brightness adjustment strategy and the scene feature set to obtain a first mapping relationship.
[0159] In one embodiment, the processing unit 101 clusters the brightness adjustment strategies based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to each feature in the scene feature sets in the following manner: sort the various scene feature sets obtained by classification from high to low according to the degree of influence of the features included in the scene feature sets on the brightness adjustment; cluster the brightness adjustment strategies based on a set number of scene feature sets that are sorted first and the brightness adjustment strategies corresponding to each feature in a set number of scene feature sets.
[0160] In one embodiment, before adjusting the brightness of the terminal according to the brightness adjustment strategy, the processing unit 101 is also used to: determine that the usage status of the terminal is to turn the screen off and then on; and / or determine that the change in the ambient light illumination in the environment where the terminal is located within a set time period is greater than a threshold.
[0161] In one implementation, the processing unit 101 is further configured to: if it is detected that a condition for scheduling a second mapping relationship is met, adjust the brightness according to the second mapping relationship; the second mapping relationship is a correspondence between a parameter for automatic brightness adjustment set by default in the terminal and the brightness.
[0162] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0163] Fig. 9 2 is a block diagram of a device 200 for brightness adjustment according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0164] Reference Fig. 9 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0165] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0166] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0167] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0168] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0169] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0170] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0171] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0172] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0173] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0174] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0175] Fig.10 is a block diagram of a device 300 for brightness adjustment according to an exemplary embodiment. For example, the device 300 may be provided as a server. Fig.10 The device 300 includes a processing component 322, which further includes one or more processors, and a memory resource represented by a memory 332 for storing instructions executable by the processing component 322, such as an application. The application stored in the memory 332 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 322 is configured to execute instructions to perform the above-mentioned brightness adjustment method.
[0176] The device 300 may also include a power supply component 326 configured to perform power management of the device 300, a wired or wireless network interface 350 configured to connect the device 300 to a network, and an input / output (I / O) interface 358. The device 300 may operate based on an operating system stored in the memory 332, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0177] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 332 including instructions, and the instructions can be executed by the processing component 322 of the device 300 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0178] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0179] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0180] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0181] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0182] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0183] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A brightness adjustment method, characterized in that: The method comprises: In response to detecting that a current scene feature of the terminal matches a scene feature in a first mapping relationship, determining a brightness adjustment strategy that matches the current scene based on the first mapping relationship; The first mapping relationship represents the corresponding relationship between the scene feature set and the brightness adjustment strategy, and the scene feature set includes one or more scene features obtained based on clustering; The brightness of the terminal is adjusted according to the brightness adjustment strategy.
2. The method according to claim 1, characterized in that The first mapping relationship is determined in the following manner: Acquire a brightness data set, where the brightness data set includes scene features and a brightness adjustment strategy; Performing feature classification on scene features in the brightness data set; Based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to the various features in the scene feature sets, clustering the brightness adjustment strategies; A corresponding relationship between each category of brightness adjustment strategy and the scene feature set is created to obtain a first mapping relationship.
3. The method according to claim 2, characterized in that The brightness adjustment strategy clustering is performed based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to the various features in the scene feature sets, including: For each type of scene feature set obtained by classification, sorting the scene feature sets from high to low according to the influence of the features included in the scene feature sets on the brightness adjustment; Based on a set number of scene feature sets that are ranked first, and the brightness adjustment strategies corresponding to the features in the set number of scene feature sets, brightness adjustment strategy clustering is performed.
4. The method according to any one of claims 1 to 3, characterized in that Before adjusting the brightness of the terminal according to the brightness adjustment strategy, the method further includes: Determining that the use state of the terminal is turning the screen off and then on; and / or, It is determined that a change in the ambient light illumination in the environment where the terminal is located within a set time period is greater than a threshold.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: If it is detected that the condition for scheduling the second mapping relationship is met, the brightness is adjusted according to the second mapping relationship; The second mapping relationship is a correspondence between a parameter for automatic brightness adjustment set by default in the terminal and the brightness.
6. A brightness adjustment device, characterized in that: The device comprises: a processing unit, configured to, in response to detecting that a current scene feature of the terminal matches a scene feature in a first mapping relationship, determine a brightness adjustment strategy that matches the current scene based on the first mapping relationship, and to adjust the brightness of the terminal according to the brightness adjustment strategy; The first mapping relationship represents the corresponding relationship between a scene feature set and a brightness adjustment strategy, and the scene feature set includes one or more scene features obtained based on clustering.
7. The device according to claim 6, characterized in that The first mapping relationship is determined in the following manner: Acquire a brightness data set, where the brightness data set includes scene features and a brightness adjustment strategy; Performing feature classification on scene features in the brightness data set; Based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to the various features in the scene feature sets, clustering the brightness adjustment strategies; A corresponding relationship between each category of brightness adjustment strategy and the scene feature set is created to obtain a first mapping relationship.
8. The device according to claim 7, characterized in that The processing unit clusters the brightness adjustment strategies based on the various scene feature sets obtained by classification and the brightness adjustment strategies corresponding to the features in the scene feature sets in the following manner: For each type of scene feature set obtained by classification, sorting the scene feature sets from high to low according to the influence of the features included in the scene feature sets on the brightness adjustment; Based on a set number of scene feature sets that are ranked first, and the brightness adjustment strategies corresponding to the features in the set number of scene feature sets, brightness adjustment strategy clustering is performed.
9. The device according to any one of claims 6 to 8, characterized in that Before adjusting the brightness of the terminal according to the brightness adjustment strategy, the processing unit is further used to: Determining that the use state of the terminal is turning the screen off and then on; and / or, It is determined that a change in the ambient light illumination in the environment where the terminal is located within a set time period is greater than a threshold.
10. The device according to any one of claims 6 to 8, characterized in that The processing unit is also used for: If it is detected that the condition for scheduling the second mapping relationship is met, the brightness is adjusted according to the second mapping relationship; The second mapping relationship is a correspondence between a parameter for automatic brightness adjustment set by default in the terminal and the brightness.
11. A brightness adjustment device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the method described in any one of claims 1 to 5.
12. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method described in any one of claims 1 to 5.
Citation Information
Cited By
Display equipment brightness adaptive control method based on multi-mode environment perception and deep reinforcement learning
CN121034204A
A Brightness Adaptive Control Method for Display Devices Based on Multimodal Environment Perception and Deep Reinforcement Learning
CN121034204B