Brightness Adjustment Method, Device, Electronic Device, and Storage Medium
By recording and analyzing the event information of the user manually adjusting the screen brightness, matching and storing it into the corresponding event set, and adjusting the screen brightness according to the event set that meets the consistency conditions, the problem that the prior art cannot accurately meet the user's dimming needs in multiple scenarios is solved, and more efficient and accurate brightness adjustment is achieved.
Patent Information
- Application Number
- CN202211255766.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-13
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-10-13
AI Technical Summary
When adjusting the mapping relationship between ambient light intensity and screen brightness, the prior art cannot accurately meet the user's dimming needs in various scenarios, resulting in inaccurate brightness adjustment.
By recording the event information of the user manually adjusting the screen brightness, analyze the user's dimming needs, and actively adjust the screen brightness based on these needs. The specific method includes obtaining the scene information and target brightness value of the brightness adjustment event, matching and storing these event information into the corresponding event set, and determining it as the target event set when the event set meets the consistency conditions, and adjusting the screen brightness according to its information.
It improves the accuracy of brightness adjustment, can better meet users' dimming needs in different scenarios, reduces dependence on mapping relationship adjustment, saves operating resources and time, and improves dimming efficiency.
Smart Images

Figure CN115512674B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of terminal display, and in particular, to a brightness adjustment method, device, electronic device, and storage medium. Background Art
[0002] With the popular use of intelligent terminal devices, people have higher and higher requirements for the clarity, brightness, contrast, etc. of terminal displays. Terminal devices provide some brightness adjustment technologies to meet users' brightness requirements.
[0003] In the existing brightness adjustment technology, the mapping relationship between the ambient light intensity and the screen brightness is adjusted, and the brightness is adjusted according to the adjusted mapping relationship. Since the adjusted mapping relationship only meets the dimming requirements of users in some specific scenarios and does not meet the dimming requirements in most scenarios. Therefore, the technical means of adjusting the screen brightness by adjusting the mapping relationship cannot accurately adjust the screen brightness and cannot meet the dimming requirements of users. Summary of the Invention
[0004] The embodiments of the present application provide a brightness adjustment method, device, electronic device, and storage medium. By recording the manual screen brightness adjustment events, analyzing the user's dimming requirements from the recorded events, and actively adjusting the screen brightness based on the dimming requirements, the technical problem that the existing technology cannot meet the dimming requirements of users is solved, and the accuracy of brightness adjustment is effectively improved.
[0005] In a first aspect, the embodiments of the present application provide a brightness adjustment method, including:
[0006] When a brightness adjustment event occurs, obtain the event information of the current brightness adjustment event, where the event information includes the scene information of the brightness adjustment event and the target brightness value;
[0007] When the event information matches the information corresponding to the first event set, add the event information to the information corresponding to the first event set; where the number of the first event sets is at least one, and the first event set is obtained by storing and clustering at least one historical brightness adjustment event;
[0008] When the information corresponding to the first event set meets the consistency condition, determine the first event set as the target event set;
[0009] Adjust the screen brightness according to the information corresponding to the target event set.
[0010] In a second aspect, the embodiments of the present application provide a brightness adjustment device, including:
[0011] An acquisition module, configured to acquire event information of a current brightness adjustment event when a brightness adjustment event occurs, where the event information includes scenario information of the brightness adjustment event and a target brightness value;
[0012] A storage module, configured to add the event information to information corresponding to a first event set when the event information matches information corresponding to the first event set; wherein, the number of the first event sets is at least one, and the first event sets are obtained by storing and partitioning at least one historical brightness adjustment event into clusters;
[0013] A determination module, configured to determine the first event set as a target event set when the information corresponding to the first event set meets a consistency condition;
[0014] An adjustment module, configured to adjust the screen brightness according to the information corresponding to the target event set.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the brightness adjustment method described in the first aspect is implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the brightness adjustment method described in the first aspect is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the brightness adjustment method described in the first aspect.
[0018] In the embodiment of the present application, by acquiring event information of a brightness adjustment event when a user manually adjusts the screen brightness each time, and matching the event information with information corresponding to a first event set that has been recorded, the event information is recorded into the information corresponding to the first event set that matches. A first event set can represent the dimming requirement of the user in a certain scenario. When the first event set meets the consistency condition, it indicates that the dimming requirements in the corresponding scenario are highly unified. Therefore, the screen brightness can be adjusted based on the information corresponding to the first event set that meets the consistency condition to meet the dimming requirements of the user in the corresponding scenario, improve the dimming accuracy, save the operating resources and operating time for adjusting the mapping relationship, and effectively improve the dimming efficiency. Description of the Drawings
[0019] Figure 1It is a schematic flowchart of a brightness adjustment method provided by an embodiment of the present application;
[0020] Figure 2 It is a flowchart for matching the current brightness adjustment event with the first event set provided by an embodiment of the present application;
[0021] Figure 3 It is one of the schematic diagrams of the probability distribution model of the first event set provided by an embodiment of the present application;
[0022] Figure 4 It is another schematic diagram of the probability distribution model of the first event set provided by an embodiment of the present application;
[0023] Figure 5 It is a flowchart for determining whether the first event set meets the consistency condition according to the Gaussian distribution probability provided by an embodiment of the present application;
[0024] Figure 6 It is a flowchart for determining whether the first event set meets the consistency condition according to the number of clusters of the target brightness value provided by an embodiment of the present application;
[0025] Figure 7 It is a flowchart for adjusting the screen brightness based on the information corresponding to the target event set provided by an embodiment of the present application;
[0026] Figure 8 It is a schematic structural diagram of a brightness adjustment device provided by an embodiment of the present application;
[0027] Figure 9 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0028] Figure 10 It is a schematic hardware structure diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0029] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application belong to the scope of protection of the present application.
[0030] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / " generally means that the associated objects before and after are in an "or" relationship.
[0031] The following will combine the accompanying drawings and, through specific embodiments and their application scenarios, elaborate in detail on the brightness adjustment method provided by the embodiments of this application.
[0032] Figure 1 It is a flowchart of a brightness adjustment method provided by an embodiment of this application. Refer to Figure 1 and the brightness adjustment method includes:
[0033] S110. In the case of a brightness adjustment event, obtain the event information of the current brightness adjustment event, where the event information includes the scene information of the brightness adjustment event and the target brightness value.
[0034] Among them, the brightness adjustment event refers to an event in which the user manually adjusts the screen brightness of the terminal. When the user is not satisfied with the screen brightness of the terminal, the user will adjust the screen to a satisfactory brightness with a finger. Therefore, each manual adjustment can represent the user's dimming requirement. The scene information is the scene when the screen brightness is manually adjusted, and the target brightness value is the screen brightness after the manual adjustment ends. Based on the scene information, this embodiment can analyze in which scene the user has a dimming requirement, and based on the target brightness value, it can analyze the user's expected value of the screen brightness in the corresponding scene, so as to adjust the screen brightness to the user's expected value when the corresponding scene appears again later, ensuring the accuracy of automatic dimming and reducing the number of times the user manually adjusts the screen brightness.
[0035] In one embodiment, the scenario information includes at least two of ambient light intensity information, natural time information, intention recognition information, motion state information, geographical location information, and user physiological information; among which, the intention recognition information is obtained by using an intention recognition algorithm based on the user's semantic information. Exemplarily, when the user manually adjusts the screen brightness of the terminal, the terminal collects the current ambient light intensity through the photosensitive sensor installed on itself, the terminal obtains the current natural time information (the time in 24 hours a day), the terminal analyzes various background application programs and natural time through the intention recognition algorithm to determine the current intention recognition information (such as eating, resting, and playing games), the terminal determines the current motion state information (such as walking, lying supine, sitting, and standing) through the motion data collected by the motion sensor installed on itself, the terminal determines the geographical location information of the current user (such as indoors, outdoors, at home, or in the office) through the position sensor installed on itself, and the terminal obtains the current physiological information of the user (such as heart rate, blood pressure, and blood oxygen) through the corresponding connected wearable device such as a smartwatch. The currently obtained ambient light intensity information, natural time information, intention recognition information, motion state information, geographical location information, and user physiological information are used as the scenario information of the current brightness adjustment event. When the user manually adjusts the screen to a satisfactory screen brightness, the current screen brightness is obtained as the target brightness value of the current brightness adjustment event.
[0036] S120. When the event information matches the information corresponding to the first event set, add the event information to the information corresponding to the first event set; where the number of the first event sets is at least one, and the first event sets are obtained by storing and clustering at least one historical brightness adjustment event.
[0037] In this embodiment, the historical brightness adjustment event refers to the previously occurred brightness adjustment event recorded by the terminal, and the event information of the historical brightness adjustment event also includes the scenario information and the target brightness value. Whenever a brightness adjustment event occurs, the terminal stores the brightness adjustment event into the first event set that matches according to the event information of the brightness adjustment event; if there is no matching first event set, the brightness adjustment event is stored into the newly added second event set, and the second event set storing the brightness adjustment event is used as the first event set. Therefore, the terminal records at least one first event set, and each first event set stores at least one historical brightness adjustment event.
[0038] It can be understood that the first event set can be regarded as a set of brightness adjustment events similar to the manual adjustment scenario, and different first event sets accurately distinguish the dimming requirements of users in different scenarios. Therefore, the expected value of the screen brightness of the user in the corresponding scenario can be analyzed based on the manual adjustment end brightness of each brightness adjustment event in the first event set, so as to automatically adjust the screen brightness to the expected value when the subsequent terminal is in the corresponding scenario of the first event set, ensuring the accuracy of automatic dimming. Exemplarily, the information corresponding to the first event set includes the event information of all stored brightness adjustment events. The scenario information of the current brightness adjustment event is matched with the scenario information corresponding to the first event set to determine the first event set similar to the manual adjustment scenario of the current brightness adjustment event, so as to store the current brightness adjustment event in the matching first event set and store the event information of the current brightness adjustment event in the information corresponding to the matching first event set. In this embodiment, Figure 2 is the flowchart provided by the embodiment of the present application for matching the current brightness adjustment event with the first event set. As Figure 2 shown, the steps of matching the current brightness adjustment event with the first event set specifically include S1201-S1204:
[0039] S1201. According to the scenario information corresponding to each first event set, determine the probability distribution model of the information corresponding to each first event set. The scenario information corresponding to the first event set includes the scenario information of the stored brightness adjustment events.
[0040] In this embodiment, the probability distribution model refers to the probability distribution followed by the scenario information of each brightness adjustment event in the first event set. Exemplarily, the scenario information in the same scenario follows an independent probability distribution. For example, when each scenario information follows a Gaussian distribution, the probability distribution model of the first event set can be determined based on the mean and variance of various scenario information of each brightness adjustment event in the first event set.
[0041] In this embodiment, when each scenario information follows a Gaussian distribution, the probability distribution model of the first event set can be determined by the multivariate Gaussian distribution density function. The expression of the multivariate Gaussian distribution density function is as follows:
[0042]
[0043] where f(x) is the probability distribution model, x = [x1, x2,..., x d T is the multivariate Gaussian random variable. [u1, u2,..., u d is the mean of various scenario information of each brightness adjustment event in the first event set, [σ1, σ2,..., σ d It refers to the variance of various scenario information of each brightness adjustment event in the first event set. Substituting the mean and variance of various scenario information of each brightness adjustment event in the first event set into the multivariate Gaussian distribution density function, the probability distribution model of the first event set can be obtained.
[0044] In this embodiment, it is described by taking the scenario information including ambient light intensity information and natural time information as an example. Obtain the second ambient light intensity and the second natural time of all brightness adjustment events stored in the first event set A. Calculate the mean and variance of the second ambient light intensity, calculate the mean and variance of the second natural time, and substitute the mean and variance of the second ambient light intensity and the mean and variance of the second natural time into the two-dimensional Gaussian distribution density function to obtain the probability distribution model of the first event set A.
[0045] S1202. Determine the matching degree between the event information and the information corresponding to each first event set according to the probability distribution model of the information corresponding to the event information and each first event set.
[0046] Referring to the expression of the above-mentioned multivariate Gaussian distribution density function, take the various scenario information of the current brightness adjustment event as a multi-dimensional Gaussian random variable and substitute it into the probability distribution model of the first event set. Take the calculated probability value as the matching degree between the event information of the current brightness adjustment event and the information corresponding to the first event set, that is, the matching degree between the current brightness adjustment event and the first event set. Exemplarily, obtain the first ambient light intensity and the first natural time of the current brightness adjustment event, and substitute the first ambient light intensity and the first natural time into the two-dimensional Gaussian distribution density function of the first event set A to calculate the matching degree between the current brightness adjustment event and the first event set A.
[0047] S1203. When the matching degree is greater than or equal to the preset matching degree, determine that the event information matches the information corresponding to the first event set with the largest matching degree.
[0048] It is understandable that the greater the matching degree between the current brightness adjustment event and the first event set, the smaller the distance between the scene information of the current brightness adjustment event and the scene information corresponding to the first event set, that is, the more similar the manual adjustment scene of the current brightness adjustment event is to the manual adjustment scene of the first event set. Therefore, in this embodiment, a preset matching degree is set to use the preset matching degree as the minimum matching degree between the manual adjustment scene of the current brightness adjustment event and the manual adjustment scene of the first event set when they are similar. Correspondingly, when the matching degree is greater than or equal to the preset matching degree, it can be determined that the manual adjustment scene of the current brightness adjustment event is similar to the manual adjustment scene of the first event set corresponding to the matching degree. If the manual adjustment scene of the current brightness adjustment event is simultaneously similar to the manual adjustment scenes of multiple first event sets, the first event set with the largest matching degree, that is, the most similar manual adjustment scene, is used as the first event set for storing the current brightness adjustment event, and the event information of the current brightness adjustment event is stored in the information corresponding to the most similar first event set.
[0049] Figure 3 is one of the schematic diagrams of the probability distribution model of the first event set provided by the embodiment of the present application. As Figure 3 shown, the probability distribution model of the first event set is a two-dimensional Gaussian distribution. The X-axis represents the environmental light intensity, the Y-axis represents the natural time, and the Z-axis represents the matching degree (not shown in the figure). Based on the probability distribution model of the first event set and the preset matching degree, the range of the environmental light intensity and natural time with a matching degree greater than or equal to the preset matching degree is determined, and the corresponding elliptical region is constructed with the range of the environmental light intensity and natural time, so that the matching degree of any coordinate point within the elliptical region is greater than or equal to the preset matching degree. The coordinate points within the elliptical region satisfy the probability distribution model of the first event set. The center point coordinates of the elliptical region are the means of the environmental light intensity and natural time of each brightness adjustment event in the first event set. The closer the coordinate points within the elliptical region are to the center of the ellipse, the higher the corresponding matching degree, but the specific matching degree is determined by the environmental light intensity and natural time of each brightness adjustment event in the first event set. Figure 3 In [Figure], point B represents the current brightness adjustment event. The X-axis coordinate and Y-axis coordinate of point B are the environmental light intensity and natural time of the current brightness adjustment event respectively. Point B falls into the elliptical region A corresponding to the first event set A, indicating that the manual adjustment scene of the current brightness adjustment event is similar to the manual adjustment scene of the first event set A, and the current brightness adjustment event can be stored in the first event set A. Figure 4 is the second schematic diagram of the probability distribution model of the first event set provided by the embodiment of the present application. As Figure 4 shown, after the current brightness adjustment event is stored in the first event set A, the means and variances of the environmental light intensity and natural time corresponding to the first event set A change. Correspondingly, the probability distribution model of the first event set A also changes fromFigure 3 The elliptical region A in Figure 4 evolves into the elliptical region A in
[0050] S1204. In the case where each matching degree is less than the preset matching degree, add the event information to the information corresponding to the newly added second event set.
[0051] Exemplarily, when the matching degree is less than the first preset probability threshold, it can be determined that the manual adjustment scenario of the current brightness adjustment event is not similar to the manual adjustment scenario of the first event set corresponding to the matching degree. Therefore, the current brightness adjustment event is not stored in the first event set, nor is the event information of the current brightness adjustment event stored in the information corresponding to the first event set. Correspondingly, if the manual adjustment scenarios of all the currently stored first event sets are not similar to the manual adjustment scenario of the current brightness adjustment event, it indicates that the user has a new dimming requirement in a new scenario. Therefore, a new second event set is created to store the current brightness adjustment event, and the event information of the current brightness adjustment event is stored in the information corresponding to the second event set. The second event set storing the current brightness adjustment event is used as the first event set, so as to continue to collect brightness adjustment events in similar scenarios through the first event set subsequently.
[0052] Reference Figure 3 , Figure 3 In, point C represents the current brightness adjustment event. The X-axis coordinate and Y-axis coordinate of point C are respectively the ambient light intensity and natural time of the current brightness adjustment event. Point C does not fall within the elliptical region of any of the current first event sets, indicating that the manual adjustment scenario of the current brightness adjustment event is not similar to the manual adjustment scenarios of all the current first event sets. Therefore, a new second event set is created to store the current brightness adjustment event. The second event set storing the current brightness adjustment event is used as the first event set, and the corresponding probability distribution model is determined according to the ambient light intensity and natural time corresponding to the first event set. The corresponding elliptical region is constructed according to the probability distribution model and the preset matching degree. Reference Figure 4 Based on the ambient light intensity and natural time of point C, the probability distribution model of the corresponding first event set is determined. Based on the probability distribution model and the preset matching degree, the elliptical region D of the first event set is constructed.
[0053] In one embodiment, since the user's dimming requirement changes in real time, in order to accurately reflect the user's real-time dimming requirement, the stored first event set can be updated according to the current brightness adjustment event. Exemplarily, the total number of brightness adjustment events stored in all the first event sets is counted. When the total number of brightness adjustment events is greater than a third preset number, the earliest stored brightness adjustment event is deleted from the corresponding first event set. For example, the third preset number threshold is set to 200, that is, the terminal stores at most 200 brightness adjustment events, and these brightness adjustment events are all the most recently occurred brightness adjustment events.
[0054] It should be noted that the scenario information corresponding to the first event set from which the brightness adjustment event is deleted also changes accordingly. Therefore, the elliptical area of the first event set needs to be updated according to the scenario information corresponding to the first event set after the brightness adjustment event is deleted.
[0055] S130. When the information corresponding to the first event set meets the consistency condition, the first event set is determined as the target event set.
[0056] In this embodiment, the consistency condition refers to the condition satisfied when the manual adjustment end brightness of each brightness adjustment event in the same scenario is consistent. When the manual adjustment end brightness of each brightness adjustment event in the same scenario is consistent, it indicates that the user's dimming requirement in this scenario is highly unified, that is, the user's dimming requirement in this scenario is relatively stable and less likely to change. Therefore, the expected value of the screen brightness corresponding to the user in this scenario can be determined based on the manual adjustment end brightness in this scenario. For example, if the user manually adjusts the screen brightness to 100 multiple times at 3 pm when the ambient light intensity is 20, it indicates that the user has a dimming requirement to adjust the screen brightness to 100 at 3 pm when the ambient light intensity is 20. Therefore, 100 can be used as the expected value of the screen brightness at 3 pm when the ambient light intensity is 20. On the contrary, if the user manually adjusts the screen brightness to 100 several times and manually adjusts the screen brightness to 20 several times at 3 pm when the ambient light intensity is 20, then the user's dimming requirement at 3 pm when the ambient light intensity is 20 is unstable, and it is impossible to determine that the expected value of the screen brightness for the user in this scenario is 20 or 100. Therefore, in this embodiment, the first event set that meets the consistency condition is used as the target event set to accurately analyze the expected value of the screen brightness of the user in this scenario based on the target brightness corresponding to the target event set, and ensure the accuracy of the screen brightness adjustment.
[0057] In one embodiment, Figure 5 is a flowchart of determining whether the first event set meets the consistency condition according to the Gaussian distribution probability provided by the embodiment of the present application. As Figure 5As described above, the steps of determining whether the first event set satisfies the consistency condition according to the Gaussian distribution probability specifically include S1301 - S1302:
[0058] S1301. When there are at least a first preset number of brightness adjustment events stored in the first event set, determine the Gaussian distribution probability of the target brightness value corresponding to the first event set.
[0059] Among them, the target brightness value corresponding to the first event set includes the target brightness values of the stored brightness adjustment events. Exemplarily, the brightness adjustment events in the first event set can be regarded as sample data of manual adjustment in the corresponding scenario. When the sample data in the first event set is small, the dimming demand analyzed based on this first event set does not represent the user's true dimming demand, that is, the credibility of the first event set is low. When the sample data in the first event set is large, the credibility of the dimming demand analyzed based on the first event set is higher. Therefore, in this embodiment, a first preset number is set to use the first preset number as the minimum number of brightness dimming events in the first event set when the dimming demand has a high credibility. Correspondingly, when the number of brightness dimming events in the first event set is greater than or equal to the first preset number, then determine whether the target brightness value corresponding to this first event set is consistent. When the number of brightness dimming events in the first event set is less than the first preset number, do not perform the operation of judging whether the target brightness value corresponding to this first event set is consistent. In this embodiment, after the sample data of the first event set is sufficient, then judge whether the target brightness value corresponding to this first event set is consistent, ensuring that the analyzed dimming demand has a high credibility and improving the accuracy of screen brightness adjustment.
[0060] S1302. When the Gaussian distribution probability is greater than or equal to the preset probability, determine that the information corresponding to the first event set satisfies the consistency condition.
[0061] In this embodiment, the Gaussian distribution probability is the probability that the target brightness value corresponding to the first event set follows a Gaussian distribution. It can be understood that a random variable following a Gaussian distribution has the characteristic of consistency. Therefore, the greater the probability that the target brightness value corresponding to the first event set follows a Gaussian distribution, the stronger the consistency of the target brightness value corresponding to the first event set. In this embodiment, a preset probability is set to use the preset probability as the minimum Gaussian distribution probability when the target brightness value corresponding to the first event set has consistency. Correspondingly, when the Gaussian distribution probability corresponding to the first event set is greater than or equal to the preset probability, it can be determined that the information corresponding to the first event set satisfies the consistency condition.
[0062] In another embodiment, Figure 6 is a flowchart of determining whether the first event set satisfies the consistency condition according to the clustering number of the target brightness value provided by the embodiment of the present application. AsFigure 6 As shown, the steps of determining whether the first event set meets the consistency condition according to the number of clusters of the target brightness value specifically include S1303 - S1304:
[0063] S1303. When the first event set stores at least the first preset number of brightness adjustment events, determine the target number of the target brightness values corresponding to the first event set within the same interval range.
[0064] S1304. When the target number is greater than or equal to the second preset number, determine that the information corresponding to the first event set meets the consistency condition.
[0065] Exemplarily, the clustering algorithm can divide the target brightness values with consistency corresponding to the first event set into the same interval range. Therefore, the more the number of target brightness values in a certain interval range, the stronger the consistency of the target brightness values corresponding to the first event set. In this embodiment, by setting the second preset number, the first preset number is used as the minimum number of target brightness values in the interval range with the largest number of target brightness values when the target brightness values corresponding to the first event set have consistency. Correspondingly, when the number of target brightness values in a certain interval range is greater than the second preset number, it can be determined that the information corresponding to the first event set meets the consistency condition.
[0066] If the information corresponding to the first event set meets the consistency condition, the first event set can be used as the target event set, so that the screen brightness can be adjusted directly based on the currently stored target event set in the subsequent process, without having to determine the first event set that meets the consistency condition every time after manual brightness adjustment. It should be noted that after the first event set is converted into the target event set, if a new brightness adjustment event matches the target event set, the new brightness adjustment event is stored in the target first event set, and it is judged whether the target event set meets the consistency condition. If not, the target event set is converted into the first event set to avoid incorrect dimming.
[0067] S140. Adjust the screen brightness according to the information corresponding to the target event set.
[0068] In this embodiment, Figure 7 is the flowchart of adjusting the screen brightness based on the information corresponding to the target event set provided by the embodiment of the present application. As Figure 7 shown, the steps of adjusting the screen brightness based on the information corresponding to the target event set specifically include S1401 - S1402:
[0069] S1401. When the real - time scene information matches the information corresponding to the target event set, adjust the screen brightness according to the information corresponding to the target event set.
[0070] In this embodiment, the scenario information includes the environmental light intensity and the natural time as an example for description. Assume that the natural time currently obtained by the terminal is 15:03 and the collected environmental light intensity is 40 LUX (lux, the unit of light intensity). Obtain the natural time and environmental light intensity of each brightness adjustment event in each target event set currently stored. Calculate the mean and variance of the natural time and environmental light intensity of all brightness adjustment events in the target event set, and construct a probability distribution model of the target event set according to the mean and variance. Substitute 15:03 and 40 LUX into the probability distribution models of each target event set, and calculate the matching degree between the real-time scenario information and the information corresponding to each target event set. When the matching degree is greater than or equal to the preset matching degree, it indicates that the current scenario is similar to the manual adjustment scenario of the target event set corresponding to the matching degree, that is, the user has a highly unified dimming requirement in the current scenario. Therefore, the expected value of the screen brightness of the user in the current scenario can be determined based on the target brightness value corresponding to the target event set, and then the screen brightness can be adjusted to the expected value. It should be noted that if the matching degrees of multiple target event sets are greater than or equal to the preset matching degree at the same time, the screen brightness is adjusted based on the target brightness value corresponding to the target event set with the largest matching degree, that is, the target event set most similar to the current scenario.
[0071] In addition, whenever a brightness adjustment event is stored in the matching first event set, the elliptical area of the first event set is updated accordingly. The target event set corresponding to the elliptical area where the real-time scenario information falls can be determined based on the elliptical area of the target first event set, so as to adjust the screen brightness based on the target brightness value corresponding to the target event set.
[0072] In one embodiment, the mean value of the target brightness value corresponding to the target event set can be used as the expected value of the screen brightness of the user in the corresponding scenario, so as to adjust the current screen brightness of the terminal to the mean value of the target brightness value corresponding to the matching target event set. However, there may be inconsistent noise brightness values in the target event set, and the difference between these noise brightness values and other target brightnesses is large, resulting in the mean value of the target brightness value not being able to accurately represent the expected value of the screen brightness of the user in the corresponding scenario. At this time, the target brightness values in the target event set can be clustered to obtain at least one interval range, and the mean value of the target brightness values in the interval range with the largest number of target brightness values is used as the expected value of the screen brightness of the user in the corresponding scenario, so as to screen out the noise brightness values in the target event set and improve the accuracy of automatic dimming.
[0073] In another embodiment, when the scene information includes the ambient light intensity, a second mapping relationship of "ambient light intensity - screen brightness" corresponding to the target event set in the corresponding scene can be fitted, and the expected value of the screen brightness can be determined according to this second mapping relationship. Exemplarily, according to the corresponding relationship between the target brightness value corresponding to the target event set and the ambient light intensity, a second mapping relationship of "ambient light intensity - screen brightness" in the scene corresponding to the target event set is fitted. Based on the ambient light intensity in the real-time scene information and the second mapping relationship corresponding to the matching target event set, the expected value of the screen brightness is calculated, and the screen brightness is adjusted to this expected value.
[0074] S1402. When the real-time scene information does not match the information corresponding to each target event set, the screen brightness is adjusted according to the first mapping relationship between the ambient light intensity and the brightness stored in advance.
[0075] Exemplarily, when all the matching degrees are less than the preset matching degree, it indicates that the current scene is not similar to the manual adjustment scenes of all the target event sets, that is, the user has no dimming requirement for the target event set in the current scene. Therefore, the screen brightness is adjusted based on the traditional first mapping relationship between the ambient light intensity and the brightness.
[0076] In summary, the brightness adjustment method provided in this embodiment obtains the event information of the brightness adjustment event when the user manually adjusts the screen brightness each time, and matches the event information with the information corresponding to the recorded first event set, so as to record the event information into the information corresponding to the corresponding matching first event set. A first event set can represent the dimming requirement of the user in a certain scene. When the first event set meets the consistency condition, it indicates that the dimming requirements in the corresponding scene are highly unified. Therefore, the screen brightness can be adjusted based on the information corresponding to the first event set that meets the consistency condition to meet the dimming requirements of the user in the corresponding scene, improve the dimming accuracy, save the operating resources and operating time for adjusting the mapping relationship, and effectively improve the dimming efficiency.
[0077] It should be noted that for the brightness adjustment method provided in the embodiments of the present application, the execution subject may be a brightness adjustment device, or a control module in the brightness adjustment device for executing the brightness adjustment method. In the embodiments of the present application, the brightness adjustment method is executed by the brightness adjustment device as an example to illustrate the brightness adjustment device provided in the embodiments of the present application.
[0078] Figure 8 It is a schematic structural diagram of a brightness adjustment device provided in an embodiment of the present application. As Figure 8 shown, the brightness adjustment device 200 includes: an acquisition module 201, a storage module 202, a determination module 203, and an adjustment module 204.
[0079] Among them, an acquisition module is configured to acquire event information of the current brightness adjustment event in the case of a brightness adjustment event occurring, where the event information includes scene information of the brightness adjustment event and a target brightness value;
[0080] A storage module is configured to add the event information to the information corresponding to the first event set in the case where the event information matches the information corresponding to the first event set; where the number of the first event sets is at least one, and the first event sets are obtained by storing and clustering at least one historical brightness adjustment event;
[0081] A determination module is configured to determine the first event set as a target event set in the case where the information corresponding to the first event set meets a consistency condition;
[0082] An adjustment module is configured to adjust the screen brightness according to the information corresponding to the target event set.
[0083] Based on the above embodiments, the adjustment module includes:
[0084] A first adjustment unit is configured to adjust the screen brightness according to the information corresponding to the target event set in the case where the real-time scene information matches the information corresponding to the target event set;
[0085] A second adjustment unit is configured to adjust the screen brightness according to a first mapping relationship between ambient light intensity and brightness stored in advance in the case where the real-time scene information does not match the information corresponding to each target event set.
[0086] Based on the above embodiments, the brightness adjustment device further includes a matching module, and the matching module includes:
[0087] A first calculation unit is configured to determine a probability distribution model of the information corresponding to each first event set according to the scene information corresponding to each first event set before adding the event information to the information corresponding to the first event set, where the scene information corresponding to the first event set includes the scene information of the stored brightness adjustment event;
[0088] A second calculation unit is configured to determine the matching degree between the event information and the information corresponding to each first event set according to the probability distribution model of the information corresponding to the event information and each first event set;
[0089] A matching unit is configured to determine that the event information matches the information corresponding to the first event set with the largest matching degree in the case where the matching degree is greater than or equal to a preset matching degree;
[0090] An adding unit is configured to add the event information to the information corresponding to a newly added second event set in the case where each matching degree is less than the preset matching degree.
[0091] Based on the above embodiments, the determination module includes:
[0092] A first determination unit, configured to, before determining the first event set as the target event set, when there are at least a first preset number of brightness adjustment events stored in the first event set, determine the Gaussian distribution probability of the target brightness value corresponding to the first event set. When the Gaussian distribution probability is greater than or equal to the preset probability, determine that the information corresponding to the first event set meets the consistency condition; wherein, the target brightness value corresponding to the first event set includes the target brightness value of the stored brightness adjustment events, and the Gaussian distribution probability is the probability that the target brightness value corresponding to the first event set follows a Gaussian distribution;
[0093] Or,
[0094] A second determination unit, configured to, before determining the first event set as the target event set, when there are at least a first preset number of brightness adjustment events stored in the first event set, determine the target number of the target brightness value corresponding to the first event set within the same interval range. When the target number is greater than or equal to a second preset number, determine that the information corresponding to the first event set meets the consistency condition.
[0095] In summary, the brightness adjustment device provided in this embodiment obtains the event information of the brightness adjustment events when the user manually adjusts the screen brightness each time, and matches the event information with the information corresponding to the recorded first event set, so as to record the event information into the information corresponding to the corresponding matched first event set. A first event set can represent the dimming requirements of the user in a certain scenario. When the first event set meets the consistency condition, it indicates that the dimming requirements in the corresponding scenario are highly unified. Therefore, the screen brightness can be adjusted based on the information corresponding to the first event set that meets the consistency condition, so as to meet the dimming requirements of the user in the corresponding scenario, improve the dimming accuracy, save the operating resources and operating time for adjusting the mapping relationship, and effectively improve the dimming efficiency.
[0096] The brightness adjustment device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0097] The brightness adjustment device in the embodiments of the present application can be a device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0098] The brightness adjustment device provided in the embodiments of the present application can implement Figures 1 to 7 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.
[0099] Optionally, as Figure 9 shown, the embodiments of the present application further provide an electronic device 30, including a processor 301, a memory 302, a program or instruction stored on the memory 302 and executable on the processor 301. When the program or instruction is executed by the processor 301, it implements each process of the above-mentioned brightness adjustment method embodiments and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0100] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0101] Figure 10 It is a schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.
[0102] The electronic device 40 includes, but is not limited to: a radio frequency unit 403, a network module 404, an audio output unit 405, an input unit 406, a sensor 407, a display unit 408, a user input unit 409, an interface unit 410, a memory 402, and a processor 401, etc.
[0103] Those skilled in the art can understand that the electronic device 40 may further include a power supply (such as a battery) for powering each component. The power supply can be logically connected to the processor 401 through a power management system, so as to manage functions such as charging, discharging, and power consumption management through the power management system. Figure 10 The structure of the electronic device shown in Figure 10 does not limit the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements, which will not be elaborated here.
[0104] Among them, the processor 401 is configured to, when a brightness adjustment event occurs, obtain the event information of the current brightness adjustment event, where the event information includes the scene information of the brightness adjustment event and the target brightness value; when the event information matches the information corresponding to the first event set, add the event information to the information corresponding to the first event set; where the number of the first event sets is at least one, and the first event sets are obtained by storing and clustering at least one historical brightness adjustment event; when the information corresponding to the first event set meets the consistency condition, determine the first event set as the target event set; and adjust the screen brightness according to the information corresponding to the target event set.
[0105] Optionally, the processor 401 is further configured to, when the real-time scene information matches the information corresponding to the target event set, adjust the screen brightness according to the information corresponding to the target event set; when the real-time scene information does not match the information corresponding to any of the target event sets, adjust the screen brightness according to the first mapping relationship between the ambient light intensity and the brightness stored in advance.
[0106] Optionally, the processor 401 is further configured to, before adding the event information to the information corresponding to the first event set, determine the probability distribution model of the information corresponding to each first event set according to the scene information corresponding to each first event set, where the scene information corresponding to the first event set includes the scene information of the stored brightness adjustment event; determine the matching degree between the event information and the information corresponding to each first event set according to the probability distribution model of the event information and the information corresponding to each first event set; when the matching degree is greater than or equal to the preset matching degree, determine that the event information matches the information corresponding to the first event set with the largest matching degree; when each matching degree is less than the preset matching degree, add the event information to the information corresponding to the newly added second event set.
[0107] Optionally, the processor 401 is further configured to, before determining the first event set as the target event set, when the first event set stores at least a first preset number of the brightness adjustment events, determine the Gaussian distribution probability of the target brightness value corresponding to the first event set, and when the Gaussian distribution probability is greater than or equal to a preset probability, determine that the information corresponding to the first event set meets the consistency condition; wherein, the target brightness value corresponding to the first event set includes the target brightness value of the stored brightness adjustment event, and the Gaussian distribution probability is the probability that the target brightness value corresponding to the first event set follows a Gaussian distribution; or, before determining the first event set as the target event set, when the first event set stores at least a first preset number of the brightness adjustment events, determine the target number of the target brightness values corresponding to the first event set within the same interval range, and when the target number is greater than or equal to a second preset number, determine that the information corresponding to the first event set meets the consistency condition.
[0108] In summary, the electronic device provided in this embodiment obtains the event information of the brightness adjustment event for each manual adjustment of the screen brightness by the user, and matches the event information with the information corresponding to the recorded first event set, so as to record the event information into the information corresponding to the corresponding matched first event set. A first event set can represent the dimming requirement of the user in a certain scenario. When the first event set meets the consistency condition, it indicates that the dimming requirements in the corresponding scenario are highly unified. Therefore, the screen brightness can be adjusted based on the information corresponding to the first event set that meets the consistency condition to meet the dimming requirements of the user in the corresponding scenario, improve the dimming accuracy, save the operating resources and operating time for adjusting the mapping relationship, and effectively improve the dimming efficiency.
[0109] It should be understood that in the embodiments of the present application, the input unit 406 may include a Graphics Processing Unit (GPU) 4061 and a microphone 4062. The graphics processor 4061 processes the image data of static pictures or videos obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The display unit 408 may include a display panel 4081, and the display panel 4081 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 409 includes a touch panel 4091 and other input devices 4092. The touch panel 4091 is also called a touch screen. The touch panel 4091 may include two parts: a touch detection device and a touch controller. The other input devices 4092 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here. The memory 402 may be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 401 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 401.
[0110] The embodiments of the present application further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above-mentioned embodiment of the brightness adjustment method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0111] Among them, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disc, etc.
[0112] The embodiments of the present application further provide a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a program or instruction to implement each process of the above-mentioned embodiment of the brightness adjustment method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0113] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system chip, a chip system, or a system-on-chip, etc.
[0114] It should be noted that in this text, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0115] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
[0116] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A brightness adjustment method, characterized in that, Including: In the case of a brightness adjustment event occurring, obtain the event information of the current brightness adjustment event, where the event information includes the scene information of the brightness adjustment event and the target brightness value; In the case where the scene information of the brightness adjustment event matches the scene information corresponding to the first event set, add the event information of the brightness adjustment event to the information corresponding to the first event set; where the number of the first event sets is at least one, and the first event sets are obtained by storing and clustering at least one historical brightness adjustment event; In the case where the target brightness value corresponding to the first event set satisfies the consistency condition, determine the first event set as the target event set; where, in the case where the first event set stores at least a first preset number of the brightness adjustment events, determine the Gaussian distribution probability of the target brightness value corresponding to the first event set, and in the case where the Gaussian distribution probability is greater than or equal to the preset probability, determine that the target brightness value corresponding to the first event set satisfies the consistency condition, the target brightness value corresponding to the first event set includes the target brightness values of the corresponding stored brightness adjustment events, and the Gaussian distribution probability is the probability that the target brightness value corresponding to the first event set follows a Gaussian distribution; or, in the case where the first event set stores at least a first preset number of the brightness adjustment events, determine the target number of the target brightness value corresponding to the first event set within the same interval range, and in the case where the target number is greater than or equal to a second preset number, determine that the target brightness value corresponding to the first event set satisfies the consistency condition; Adjust the screen brightness according to the information corresponding to the target event set.
2. The method according to claim 1, wherein The adjusting the screen brightness according to the information corresponding to the target event set includes: In the case where the real-time scene information matches the information corresponding to the target event set, adjust the screen brightness according to the information corresponding to the target event set; In the case where the real-time scene information does not match the information corresponding to each of the target event sets, adjust the screen brightness according to the first mapping relationship between the ambient light intensity and the brightness stored in advance.
3. The method according to claim 1, wherein Before adding the event information of the brightness adjustment event to the information corresponding to the first event set, the method further includes: According to the scene information corresponding to each of the first event sets, determine the probability distribution model of the information corresponding to each of the first event sets, where the scene information corresponding to the first event set includes the scene information of the corresponding stored brightness adjustment event; According to the probability distribution model of the event information and the information corresponding to each of the first event sets, determine the matching degree between the event information and the information corresponding to each of the first event sets; In the case where the matching degree is greater than or equal to the preset matching degree, determine that the event information matches the information corresponding to the first event set with the largest matching degree; In the case where each of the matching degrees is less than the preset matching degree, add the event information to the information corresponding to the newly added second event set.
4. A brightness adjustment device, characterized in that, Including: An acquisition module, configured to acquire event information of a current brightness adjustment event when a brightness adjustment event occurs, where the event information includes scenario information of the brightness adjustment event and a target brightness value; A storage module, configured to add the event information of the brightness adjustment event to the information corresponding to the first event set when the scenario information of the brightness adjustment event matches the information corresponding to the first event set; wherein, the number of the first event sets is at least one, and the first event sets are obtained by storing and clustering at least one historical brightness adjustment event; A determination module, configured to determine the first event set as a target event set when the target brightness value corresponding to the first event set meets a consistency condition; wherein, the determination module includes: a first determination unit, configured to, before determining the first event set as the target event set, when the first event set stores at least a first preset number of the brightness adjustment events, determine a Gaussian distribution probability of the target brightness value corresponding to the first event set, and when the Gaussian distribution probability is greater than or equal to a preset probability, determine that the target brightness value corresponding to the first event set meets the consistency condition, the target brightness value corresponding to the first event set includes the target brightness values of the stored brightness adjustment events, and the Gaussian distribution probability is the probability that the target brightness value corresponding to the first event set follows a Gaussian distribution; or, a second determination unit, configured to, before determining the first event set as the target event set, when the first event set stores at least a first preset number of the brightness adjustment events, determine a target number of the target brightness values corresponding to the first event set within the same interval range, and when the target number is greater than or equal to a second preset number, determine that the target brightness value corresponding to the first event set meets the consistency condition; An adjustment module, configured to adjust the screen brightness according to the information corresponding to the target event set.
5. The device according to claim 4, characterized in that, The adjustment module includes: A first adjustment unit, configured to adjust the screen brightness according to the information corresponding to the target event set when the real-time scenario information matches the information corresponding to the target event set; A second adjustment unit, configured to adjust the screen brightness according to a first mapping relationship between ambient light intensity and brightness stored in advance when the real-time scenario information does not match the information corresponding to each target event set.
6. The device according to claim 4, characterized in that, The brightness adjustment device further includes a matching module, and the matching module includes: A first calculation unit, configured to determine a probability distribution model of the information corresponding to each first event set according to the scenario information corresponding to each first event set before adding the event information of the brightness adjustment event to the information corresponding to the first event set, and the scenario information corresponding to the first event set includes the scenario information of the stored brightness adjustment events; A second calculation unit, configured to determine a matching degree between the event information and the information corresponding to each of the first event sets according to the probability distribution model of the information corresponding to each of the first event sets and the event information; A matching unit, configured to determine that the event information matches the information corresponding to the first event set with the largest matching degree when the matching degree is greater than or equal to a preset matching degree; An adding unit, configured to add the event information to the information corresponding to a newly added second event set when each of the matching degrees is less than the preset matching degree.
7. An electronic device, characterized in that, It includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the brightness adjustment method according to any one of claims 1-3 are implemented.
8. A readable storage medium, characterized in that, A program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, the steps of the brightness adjustment method according to any one of claims 1-3 are implemented.
Citation Information
Patent Citations
Backlight brightness adjusting method and device and terminal device
CN105261346A
Screen brightness adjustment model training method and device, storage medium and electronic equipment
CN115145525A