Screen brightness adjusting method and device, electronic equipment and storage medium
By using a deep learning model to construct a brightness curve on the screen and adjusting the brightness according to the ambient light parameters, the problem of poor brightness adjustment effect of existing technology in complex environments is solved, and a high-quality screen display effect is achieved.
Patent Information
- Application Number
- CN202410965486.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
AI Technical Summary
Existing adaptive brightness adjustment technology does not work well in complex environments and cannot meet users' needs for high-quality screen display.
By determining the light-sensing parameters of the current environment of the target screen, the brightness curve constructed by the target deep learning model is used to adjust the screen brightness, reflecting the user's brightness setting habits in different environments, and achieving precise brightness adjustment.
It improves the screen brightness adjustment effect in complex environments, making the brightness more in line with user expectations, meeting high-quality display requirements, and providing a convenient and comfortable user experience.
Smart Images

Figure CN118737089A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of screen display technology, and in particular to a screen brightness adjustment method, device, electronic device and storage medium. Background Art
[0002] With the popularization of electronic devices and the diversification of electronic device usage scenarios, users have increasing requirements for screen display effects. Traditional screen adjustment methods mainly rely on manual settings by users, but this method has problems such as inaccurate brightness adjustment and cumbersome brightness adjustment. With the development of artificial intelligence and deep learning technology, adaptive brightness adjustment technology has gradually become a research hotspot in the field of screen display. It can intelligently adjust screen parameters according to factors such as user habits and ambient light, improving user experience and display effects.
[0003] However, existing adaptive brightness adjustment technologies often rely on simple rules or models, which have poor effects on screen brightness adjustment in complex environments and cannot meet users' demands for high-quality screen displays. Summary of the invention
[0004] In response to the above technical problems, the embodiments of the present application provide a screen brightness adjustment method, device, electronic device and storage medium, which can make the brightness adjustment effect of the target screen more in line with user expectations, improve the screen brightness adjustment effect in various complex environments, and meet user needs for high-quality screen display.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a screen brightness adjustment method, comprising:
[0007] Determine the light perception parameters of the environment in which the target screen is currently located;
[0008] Determine the brightness of the first screen based on the light perception parameters of the environment in which the target screen is currently located and a target brightness curve, wherein the target brightness curve is used to characterize the mapping relationship between the light perception parameters of different environments and different screen brightnesses;
[0009] Based on the brightness of the first screen, adjusting the brightness of the target screen;
[0010] The target brightness curve is obtained by using a target deep learning model to learn light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of the different environments.
[0011] In some embodiments, adjusting the brightness of the target screen based on the first screen brightness includes:
[0012] Determine a second screen brightness set by a user for the target screen;
[0013] Determine a ratio of the second screen brightness to the first screen brightness as a first tuning rate;
[0014] When it is determined that the first tuning rate is within a preset range, the brightness of the target screen is adjusted to the second screen brightness.
[0015] In some embodiments, the screen brightness adjustment method further includes:
[0016] When it is determined that the first tuning rate is not within the preset range, determining an absolute difference between the second screen brightness and the first screen brightness;
[0017] When it is determined that the absolute difference is less than or equal to a preset threshold, the brightness of the target screen is adjusted to the second screen brightness.
[0018] In some embodiments, the screen brightness adjustment method further includes:
[0019] When it is determined that the absolute difference is greater than the preset threshold, the brightness of the target screen is adjusted to the first screen brightness.
[0020] In some embodiments, before determining the brightness of the first screen based on the light perception parameters of the current environment of the target screen and the target brightness curve, the method further includes:
[0021] Acquire sample data, where the sample data includes light perception parameters of different environments and screen brightness set by a user corresponding to the light perception parameters of the different environments;
[0022] Using the target deep learning model to learn the sample data to obtain a learning result;
[0023] Based on the learning result, the initially calibrated brightness curve is corrected to obtain the target brightness curve.
[0024] In some embodiments, the using the target deep learning model to learn the sample data to obtain a learning result includes:
[0025] Determining third screen brightnesses corresponding to the light perception parameters of the different environments respectively based on the initially calibrated brightness curve and the light perception parameters of the different environments included in the sample data;
[0026] Determine a ratio of a screen brightness set by a user corresponding to the light perception parameters of the different environments to the corresponding third screen brightness as a second tuning rate;
[0027] The target deep learning model is used to learn the sample data and each of the second tuning rates to obtain the learning result.
[0028] In some embodiments, the target deep learning model is constructed based on any of the following deep learning model architectures:
[0029] Convolutional neural network model architecture, self-attention mechanism model architecture.
[0030] In a second aspect, an embodiment of the present application provides a screen brightness adjustment device, comprising:
[0031] A first determination module is used to determine the light perception parameters of the environment in which the target screen is currently located;
[0032] A second determination module, configured to determine the brightness of the first screen based on the light perception parameters of the environment in which the target screen is currently located and a target brightness curve, wherein the target brightness curve is used to characterize a mapping relationship between light perception parameters of different environments and different screen brightnesses;
[0033] An adjustment module, configured to adjust the brightness of the target screen based on the brightness of the first screen;
[0034] The target brightness curve is obtained by using a target deep learning model to learn light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of the different environments.
[0035] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is used to store executable data instructions; when the processor is used to execute the executable data instructions stored in the memory, the screen brightness adjustment method as described in the first aspect is implemented.
[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the screen brightness adjustment method described in the first aspect is implemented.
[0037] The screen brightness adjustment method, device, electronic device and storage medium provided in the embodiments of the present application determine the first screen brightness based on the light parameters of the current environment of the target screen and the target brightness curve, and then adjust the brightness of the target screen based on the first screen brightness. Since the target brightness curve is obtained by using a target deep learning model to learn the light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of different environments, the mapping relationship between the light parameters of different environments represented by the target brightness curve and the different screen brightness can reflect the user's behavioral habits of setting the screen brightness for the light parameters of different environments. The brightness of the target screen is adjusted by using the first screen brightness determined based on the target brightness curve that can reflect the user's behavioral habits of setting the screen brightness for the lighting of different environments, so that the brightness adjustment effect of the target screen is more in line with user expectations, the screen brightness adjustment effect in various complex environments is improved, and the user's demand for high-quality screen display is met. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 One of the flow charts of a method for adjusting screen brightness provided in an embodiment of the present application;
[0040] Figure 2 A second flow chart of a method for adjusting screen brightness provided in an embodiment of the present application;
[0041] Figure 3 A third flowchart of a method for adjusting screen brightness provided in an embodiment of the present application;
[0042] Figure 4 One of the schematic diagrams of a process for determining a target brightness curve provided in an embodiment of the present application;
[0043] Figure 5 A second schematic diagram of a process for determining a target brightness curve provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of a screen brightness adjustment system provided in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of the structure of a screen brightness adjustment device provided in an embodiment of the present application;
[0046] Figure 8 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] It should be noted that in the description of the embodiments of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present 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 type, and the number of objects is not limited. For example, the first object can be one or more.
[0049] In order to facilitate a clearer understanding of the embodiments of the present application, some related technologies are first introduced as follows.
[0050] When it comes to adjusting the screen brightness of electronic devices, especially in-vehicle screens, the relevant adaptive adjustment algorithms do not work well in complex environments and cannot meet users' demands for high-quality screen displays. Moreover, the relevant adaptive adjustment algorithms often rely on simple rules or models and lack the ability to deeply learn and analyze large amounts of data. Therefore, the adjustment effect of screen brightness is not accurate enough, resulting in a poor in-vehicle user experience.
[0051] In order to overcome the above-mentioned defects of the related technology, the embodiments of the present application provide a screen brightness adjustment method, device, electronic device and storage medium, which can make the brightness adjustment effect of the target screen more in line with user expectations, improve the screen brightness adjustment effect in various complex environments, and meet user needs for high-quality screen display.
[0052] The following is an illustrative introduction to the screen brightness adjustment method, device, electronic device and storage medium provided in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application.
[0053] Figure 1 One of the flow charts of a screen brightness adjustment method provided in an embodiment of the present application is as follows: Figure 1 As shown, the method includes:
[0054] S101, determining light sensitivity parameters of the environment in which the target screen is currently located.
[0055] It should be noted that the target screen can be the display screen of any electronic device, such as a mobile phone, tablet computer, television, computer monitor, etc., or it can be various display screens in a vehicle.
[0056] It should be noted that the current environment of the target screen may be the environment in which the user is located when using the electronic device or vehicle to which the target screen belongs.
[0057] In some embodiments, light parameters of the current environment of the target screen may be collected by a light sensor.
[0058] It should be noted that the light perception parameters may include the light intensity and color temperature of the current environment.
[0059] S102: Determine a first screen brightness based on light perception parameters of an environment in which the target screen is currently located and a target brightness curve, where the target brightness curve is used to characterize a mapping relationship between light perception parameters of different environments and different screen brightnesses.
[0060] The target brightness curve is obtained by using a target deep learning model to learn light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of the different environments.
[0061] In some embodiments, a target deep learning model can be used to learn the light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of different environments to obtain a target brightness curve, and the target brightness curve can characterize the mapping relationship between the light parameters of different environments and different screen brightnesses.
[0062] In some embodiments, the light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of different environments may be information collected from different users in different regions when using the electronic device or vehicle in different time periods in the past.
[0063] In some embodiments, the target deep learning model is constructed based on any of the following deep learning model architectures:
[0064] Convolutional neural network model architecture, self-attention mechanism model architecture.
[0065] In some embodiments, a target deep learning model constructed based on a convolutional neural network model architecture can be used to learn the light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of different environments to obtain a target brightness curve.
[0066] It should be noted that Convolutional Neural Networks (CNN) is a type of feedforward neural network that includes convolution calculations and has a deep structure. It has representational learning capabilities and is constructed by imitating the visual perception mechanism of organisms. It can perform supervised learning and unsupervised learning.
[0067] In some embodiments, a target deep learning model constructed based on a self-attention mechanism model architecture can be used to learn light parameters of different environments and screen brightness set by users corresponding to the light parameters of different environments to obtain a target brightness curve.
[0068] In some embodiments, the self-attention mechanism model architecture may include a Transformer model architecture.
[0069] It should be noted that the Transformer model is a deep learning model based on the self-attention mechanism, which can process sequence data in parallel, improve computational efficiency, and accurately learn long-distance correlations in input data.
[0070] It should be noted that since the target brightness curve can characterize the mapping relationship between light parameters of different environments and different screen brightnesses, in some embodiments, the first screen brightness can be determined based on the light parameters of the environment in which the target screen is currently located and the target brightness curve.
[0071] S103: Adjust the brightness of the target screen based on the brightness of the first screen.
[0072] In some embodiments, after obtaining the first screen brightness, the target screen may be controlled to display according to the first screen brightness.
[0073] In some embodiments, the first screen brightness may be further processed, and then the target screen may be controlled to display according to the processed screen brightness.
[0074] It should be noted that the embodiment of the present application pre-uses the target deep learning model to learn the light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of different environments to obtain a target brightness curve, and then implements adaptive adjustment of the target screen brightness based on the target brightness curve. Without the need for the user to manually adjust the brightness, not only can the user experience be improved, but the adaptively adjusted screen brightness can also meet user expectations and meet user needs for high-quality screen displays, especially meeting users' high requirements for vehicle-mounted screen display effects, bringing users a more convenient and comfortable user experience.
[0075] It can be understood that the screen brightness adjustment method provided in the embodiment of the present application determines the first screen brightness based on the light parameters of the environment in which the target screen is currently located and the target brightness curve, and then adjusts the brightness of the target screen based on the first screen brightness. Since the target brightness curve is obtained by using a target deep learning model to learn the light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of different environments, the mapping relationship between the light parameters of different environments represented by the target brightness curve and the different screen brightness can reflect the user's behavioral habits of setting the screen brightness for the light parameters of different environments. The brightness of the target screen is adjusted by determining the first screen brightness based on the target brightness curve that can reflect the user's behavioral habits of setting the screen brightness for different environments, so that the brightness adjustment effect of the target screen is more in line with user expectations, thereby improving the screen brightness adjustment effect in various complex environments and meeting users' needs for high-quality screen display.
[0076] In some embodiments, adjusting the brightness of the target screen based on the first screen brightness includes:
[0077] Determine a second screen brightness set by a user for the target screen;
[0078] Determine a ratio of the second screen brightness to the first screen brightness as a first tuning rate;
[0079] When it is determined that the first tuning rate is within a preset range, the brightness of the target screen is adjusted to the second screen brightness.
[0080] In the embodiment of the present application, the user can also manually intervene in the brightness adjustment of the target screen. Specifically, the second screen brightness set by the user for the target screen can be determined, and then the ratio of the second screen brightness to the first screen brightness can be determined as the first tuning rate. If it is determined that the first tuning rate is within a preset range, the brightness of the target screen is adjusted to the second screen brightness.
[0081] It should be noted that the preset range can be adaptively set based on actual applications, and the present application embodiment does not specifically limit this. For example, the preset range is 1 / 2 to 2.
[0082] It should be noted that if the first tuning rate is within the preset range, it means that the difference between the first screen brightness determined based on the target brightness curve and the second screen brightness manually set by the user is within an expected reasonable range. In this case, the target screen can be controlled to display according to the second screen brightness manually set by the user, so that the brightness adjustment effect of the target screen is more in line with user expectations.
[0083] It can be understood that, the closer the first tuning rate is to 1, the closer the first screen brightness is to the second screen brightness.
[0084] For example, Figure 2 A second flow chart of a screen brightness adjustment method provided in an embodiment of the present application is as follows: Figure 2 As shown, the method includes:
[0085] S201, determining light sensitivity parameters of the environment in which the target screen is currently located.
[0086] S202: Determine a first screen brightness based on light perception parameters of an environment in which the target screen is currently located and a target brightness curve, where the target brightness curve is used to characterize a mapping relationship between light perception parameters of different environments and different screen brightnesses.
[0087] S203: Determine the second screen brightness set by the user for the target screen.
[0088] S204: Determine a ratio of the second screen brightness to the first screen brightness as a first tuning rate.
[0089] S205: When it is determined that the first tuning rate is within a preset range, adjust the brightness of the target screen to the second screen brightness.
[0090] In some embodiments, if it is determined that the first tuning rate is within a preset range, the target screen can be controlled to display at the second screen brightness for a preset time (for example, 2 minutes, or 5 minutes, or 10 minutes), and then the first screen brightness at the current moment is determined based on the light perception parameters of the current environment of the target screen and the target brightness curve, and the target screen is controlled to display at a brightness value obtained by multiplying the first screen brightness at the current moment by the first tuning rate.
[0091] In an embodiment of the present application, by introducing a brightness adjustment strategy of the target screen in which the user manually intervenes on the basis of adaptively adjusting the brightness of the target screen based on the target brightness curve, the brightness adjustment effect of the target screen can be made to better meet user expectations.
[0092] In some embodiments, the screen brightness adjustment method further includes:
[0093] When it is determined that the first tuning rate is not within the preset range, determining an absolute difference between the second screen brightness and the first screen brightness;
[0094] When it is determined that the absolute difference is less than or equal to a preset threshold, the brightness of the target screen is adjusted to the second screen brightness.
[0095] In an embodiment of the present application, after obtaining the first tuning rate, if it is determined that the first tuning rate is not within the preset range, the absolute difference between the second screen brightness and the first screen brightness is calculated. If it is determined that the absolute difference is less than or equal to the preset threshold, it is characterized that the difference between the first screen brightness determined based on the target brightness curve and the second screen brightness manually set by the user is within an expected reasonable range. At this time, the target screen can be controlled to display according to the second screen brightness manually set by the user, so that the brightness adjustment effect of the target screen is more in line with user expectations.
[0096] It should be noted that the preset threshold value can be adaptively set based on actual applications, and the present application embodiment does not specifically limit this. For example, the preset threshold value is 25%, or 30%, or 35%.
[0097] It can be understood that the smaller the absolute difference between the second screen brightness and the first screen brightness is, the closer the first screen brightness is to the second screen brightness.
[0098] In some embodiments, the screen brightness adjustment method further includes:
[0099] When it is determined that the absolute difference is greater than the preset threshold, the brightness of the target screen is adjusted to the first screen brightness.
[0100] In an embodiment of the present application, after obtaining the first tuning rate, if it is determined that the first tuning rate is not within a preset range, the absolute difference between the second screen brightness and the first screen brightness is calculated. If it is determined that the absolute difference is greater than a preset threshold, it indicates that the difference between the first screen brightness determined based on the target brightness curve and the second screen brightness manually set by the user is large. At this time, if it is confirmed that the second screen brightness manually set by the user does not conform to the lighting environment at the time, the target screen can be controlled to display according to the first screen brightness determined based on the target brightness curve to ensure the brightness adjustment effect of the target screen.
[0101] In some embodiments, if it is determined that the absolute difference between the brightness of the second screen and the brightness of the first screen is greater than a preset threshold, the target screen can be controlled to display according to the second screen brightness manually set by the user for a preset time (for example, 2 minutes, or 5 minutes, or 10 minutes), and then the target screen can be controlled to display according to the first screen brightness determined based on the target brightness curve at the current moment, so that the brightness of the target screen can meet the user's special needs within the preset time.
[0102] For example, Figure 3 A third flow chart of a method for adjusting screen brightness provided in an embodiment of the present application is as follows: Figure 3 As shown, the method includes:
[0103] S301, determining light sensitivity parameters of the environment in which the target screen is currently located.
[0104] S302: Determine a first screen brightness based on light perception parameters of an environment in which the target screen is currently located and a target brightness curve, where the target brightness curve is used to characterize a mapping relationship between light perception parameters of different environments and different screen brightnesses.
[0105] S303: Determine the second screen brightness set by the user for the target screen.
[0106] S304: Determine a ratio of the second screen brightness to the first screen brightness as a first tuning rate.
[0107] S305: When it is determined that the first tuning rate is not within a preset range, determine an absolute difference between the second screen brightness and the first screen brightness.
[0108] S306: When it is determined that the absolute difference is less than or equal to a preset threshold, adjust the brightness of the target screen to the second screen brightness.
[0109] S307: When it is determined that the absolute difference is greater than a preset threshold, adjust the brightness of the target screen to the first screen brightness.
[0110] In some embodiments, the first screen brightness may be first determined based on a target brightness curve, and then the first screen brightness may be corrected by utilizing an automatic brightness correction algorithm described below.
[0111] Prerequisite: The target screen is in the automatic screen brightness adjustment mode. If the user actively adjusts the brightness value of the target screen, the target screen enters the automatic calibration mode. At this time, the target screen is still in the large mode of automatic screen brightness adjustment.
[0112] The specific implementation process of the automatic brightness correction algorithm is as follows: Assuming that the first screen brightness determined based on the light perception parameters of the current environment of the target screen and the target brightness curve is A1, and the second screen brightness set by the user for the target screen is A2, then the first tuning rate α=A2 / A1; when 1 / 2≤α≤2, the target screen is controlled to maintain the A2 brightness value for 5 minutes, and then the first screen brightness at the current moment is determined to be A11, and then the target screen is controlled to display according to the brightness value obtained by multiplying A11 by α until the condition is met. Exit the automatic calibration mode; when α<1 / 2 or α>2, control the target screen to maintain the A2 brightness value for 5 minutes, determine the first screen brightness at the current moment to be A11, and judge the absolute difference between A11 and A2. When Δ=|A2-A11|≤30%, control the target screen to maintain the A2 brightness value for display until the condition is met to exit the automatic calibration mode; when Δ=|A2-A11|>30%, control the target screen to exit the A2 brightness value, and control the target screen to display according to the A11 brightness value. In this process, if the user intervenes in the brightness value of the target screen again, the brightness correction is performed based on the second screen brightness reset by the user.
[0113] For example, assuming that the first brightness value A1=30% and the second brightness value A2=60%, then α=A2 / A1=2, satisfying the condition of 1 / 2≤α≤2. The target screen is controlled to display at the brightness value of A2=60% for 5 minutes, and then it is determined that the first brightness value at the current moment has changed from A1=30% to A11=35%. At this time, the target screen is controlled to display at the brightness value of A11 multiplied by α, which is equal to 70%.
[0114] For example, assuming that the first brightness value A1=30% and the second brightness value A2=90%, then α=A2 / A1=3, and the condition α>2 is satisfied. The target screen is controlled to display at the brightness value of A2=90% for 5 minutes, and then it is determined that the first brightness value at the current moment has changed from A1=30% to A11=40%. Since Δ=|A2-A11|=|90%-40%|=50%>30%, the target screen is controlled to display at the brightness value of A11=40%.
[0115] For example, assuming that the first brightness value A1=30% and the second brightness value A2=90%, then α=A2 / A1=3, and the condition α>2 is satisfied. The target screen is controlled to display at a brightness value of A2=90% for 5 minutes, and then it is determined that the first brightness value at the current moment has changed from A1=30% to A11=70%. Since Δ=|A2-A11|=|90%-70%|=20%≤30%, the target screen is controlled to maintain a brightness value of A2=90% for display.
[0116] In some embodiments, the conditions for exiting the automatic calibration mode include:
[0117] (1) When the "automatic brightness adjustment" function of the target screen is restarted, the target screen is controlled to exit the automatic calibration mode and enter the original automatic adjustment mode.
[0118] (2) When the "automatic brightness adjustment" function of the target screen remains turned on and the target screen is powered off, the target screen is controlled to exit the automatic calibration mode and enter the original automatic adjustment mode.
[0119] (3) When α<1 / 2 or α>2 and |A2-A11|>30%, the target screen is controlled to exit the automatic calibration mode and enter the original automatic adjustment mode.
[0120] In some embodiments, before determining the brightness of the first screen based on the light perception parameters of the current environment of the target screen and the target brightness curve, the method further includes:
[0121] Acquire sample data, where the sample data includes light perception parameters of different environments and screen brightness set by a user corresponding to the light perception parameters of the different environments;
[0122] Using the target deep learning model to learn the sample data to obtain a learning result;
[0123] Based on the learning result, the initially calibrated brightness curve is corrected to obtain the target brightness curve.
[0124] In an embodiment of the present application, sample data including light perception parameters of different environments and screen brightness set by the user corresponding to the light perception parameters of different environments can be first obtained, and then the sample data can be learned using a pre-built target deep learning model to obtain a learning result, and then the initially calibrated brightness curve can be corrected based on the learning result to obtain a target brightness curve.
[0125] It should be noted that the initially calibrated brightness curve may be a brightness curve that is pre-calibrated based on past experience values.
[0126] For example, Figure 4 One of the flow charts of determining a target brightness curve provided in an embodiment of the present application is as follows: Figure 4 As shown, the method includes:
[0127] S401 . Acquire sample data, where the sample data includes light perception parameters of different environments and screen brightness set by a user corresponding to the light perception parameters of the different environments.
[0128] In some embodiments, light parameters of different environments may be collected through a light sensor, and screen brightness set by a user corresponding to the light parameters of different environments may be collected through a software program.
[0129] S402: Use the target deep learning model to learn the sample data to obtain a learning result.
[0130] In some embodiments, the sample data may be preprocessed and feature extracted to convert the original sample data into a format acceptable to the target deep learning model, and extract feature information useful for screen adjustment, and then use the target deep learning model to learn the extracted feature information to obtain learning results.
[0131] S403: Based on the learning result, the initially calibrated brightness curve is corrected to obtain a target brightness curve.
[0132] In some embodiments, the acquired sample data can be used to train the target deep learning model so that it can learn the rules and patterns of screen brightness adjustment based on the input environmental information and the information of the user setting the screen brightness. During the training process, the target deep learning model will automatically adjust its internal parameters to fit the input data and predict the output data to the greatest extent.
[0133] In some embodiments, the initially calibrated brightness curve can be corrected based on the rules and patterns of screen brightness adjustment learned by the target deep learning model to obtain a target brightness curve, and then adaptive adjustment of the screen brightness is achieved based on the target brightness curve. This solution can automatically adjust the screen brightness according to user habits and environmental conditions to achieve the best display effect and enhance user experience.
[0134] In some embodiments, the target deep learning model can be optimized and updated based on user feedback and actual brightness adjustment effects. By collecting user feedback information, such as satisfaction and screen brightness adjustment effects, and inputting this information into the target deep learning model for learning, the target brightness curve is optimized based on the newly obtained learning results to improve the screen brightness adjustment effect and user experience.
[0135] In some embodiments, an independent test dataset can be used to evaluate the generalization ability and accuracy of the target deep learning model on new data.
[0136] In some embodiments, the using the target deep learning model to learn the sample data to obtain a learning result includes:
[0137] Determining third screen brightnesses corresponding to the light perception parameters of the different environments respectively based on the initially calibrated brightness curve and the light perception parameters of the different environments included in the sample data;
[0138] Determine a ratio of a screen brightness set by a user corresponding to the light perception parameters of the different environments to the corresponding third screen brightness as a second tuning rate;
[0139] The target deep learning model is used to learn the sample data and each of the second tuning rates to obtain the learning result.
[0140] In an embodiment of the present application, after obtaining sample data including light parameters of different environments and user-set screen brightness corresponding to the light parameters of the different environments, the third screen brightness corresponding to the light parameters of the different environments can be determined based on the initially calibrated brightness curve and the light parameters of the different environments included in the sample data, and then the ratio of the user-set screen brightness corresponding to the light parameters of the different environments to the corresponding third screen brightness is determined as the second tuning rate, and then the target deep learning model is used to learn the sample data and each second tuning rate to obtain a learning result.
[0141] For example, Figure 5 A second flow chart of determining a target brightness curve provided in an embodiment of the present application is as follows: Figure 5 As shown, the method includes:
[0142] S501 . Acquire sample data, where the sample data includes light perception parameters of different environments and screen brightness set by a user corresponding to the light perception parameters of the different environments.
[0143] S502: Determine a third screen brightness corresponding to the light perception parameters of the different environments respectively based on the initially calibrated brightness curve and the light perception parameters of the different environments included in the sample data.
[0144] S503: Determine a ratio of the screen brightness set by the user corresponding to the light perception parameters of the different environments to the corresponding third screen brightness as a second tuning ratio.
[0145] In some embodiments, after obtaining each second tuning rate, each second tuning rate can be preprocessed, such as an interval division operation, that is, each second tuning rate is divided according to the time period corresponding to each second tuning rate. For example, if the light parameter A of a certain environment is collected in the morning time period, the second tuning rate corresponding to the light parameter A is divided into the morning time period interval. For another example, if the light parameter B of a certain environment is collected in the afternoon time period, the second tuning rate corresponding to the light parameter B is divided into the afternoon time period interval.
[0146] S504: Use the target deep learning model to learn the sample data and each of the second tuning rates to obtain a learning result.
[0147] S505: Based on the learning result, the initially calibrated brightness curve is corrected to obtain a target brightness curve.
[0148] It should be noted that during the learning process of the target deep learning model, the second tuning rate can be calibrated based on the learning results to obtain a calibrated second tuning rate, and then the initially calibrated brightness curve can be corrected based on the calibrated second tuning rate to obtain the target brightness curve.
[0149] For example, Figure 6 A schematic diagram of the structure of a screen brightness adjustment system provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the system includes a light sensor 601, a manual intervention controller 602, an algorithm controller 603, an algorithm database 604 and a screen 605; wherein:
[0150] Light sensor 601, used to collect light parameters of the environment and provide real-time information of the ambient light conditions as an important reference for adaptive adjustment of screen brightness;
[0151] A manual intervention controller 602 is used to receive the screen brightness manually set by the user, allowing the user to manually intervene in the result of adaptive brightness adjustment according to personal preferences or specific needs, so as to cover special situations that may not be met by automatic adjustment;
[0152] The algorithm controller 603 is used to realize the adaptive adjustment of the screen brightness, and is responsible for calling the screen brightness correction algorithm in the algorithm database 604 to automatically adjust the screen brightness according to the data collected by the light sensor 601;
[0153] Algorithm database 604, used to store pre-trained target deep learning models and screen brightness correction algorithms to provide them to algorithm controller 603 for data processing and screen brightness adjustment;
[0154] The screen 605 is used to display according to the screen brightness adjusted by the algorithm controller 603 to achieve the final screen display effect.
[0155] It should be noted that the embodiments of the present application can at least bring the following beneficial effects:
[0156] (1) High brightness adjustment accuracy: By using the target deep learning model to learn the light parameters of different environments and the screen brightness set by users corresponding to the light parameters of different environments, a target brightness curve can be obtained that reflects the user's behavioral habits of setting screen brightness according to the light parameters of different environments. Based on the target brightness curve, the screen brightness can be adjusted more accurately by combining the user's behavioral habits of setting screen brightness and the current ambient light and other information, so that the screen display effect is more in line with user expectations.
[0157] (2) Strong adaptability: Compared with the traditional manual adjustment method, the embodiment of the present application can realize adaptive adjustment of screen brightness, automatically adjust the screen brightness according to the data collected in real time, without the need for manual adjustment by the user, thus reducing the user's operating burden.
[0158] (3) Better user experience: Through intelligent analysis of user habits and environmental conditions, a screen display effect that better meets user needs can be achieved, improving user experience and comfort.
[0159] (4) Wide scope of application: The embodiments of the present application can be applied to various electronic devices, such as mobile phones, tablet computers, televisions, and computer monitors, and have strong versatility and applicability.
[0160] (5) Feedback optimization mechanism: By continuously monitoring and optimizing user feedback and actual brightness adjustment effects, the screen brightness adjustment strategy and algorithm can be continuously improved, so that the screen display effect is continuously improved to meet users' demand for high-quality screen display.
[0161] The screen brightness adjustment device provided in an embodiment of the present application is described below. The screen brightness adjustment device described below and the screen brightness adjustment method described above can be referenced to each other.
[0162] Figure 7 A schematic diagram of the structure of a screen brightness adjustment device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the device includes: a first determination module 710, a second determination module 720 and an adjustment module 730; wherein:
[0163] A first determination module 710 is used to determine the light perception parameters of the environment in which the target screen is currently located;
[0164] A second determination module 720, configured to determine the brightness of the first screen based on the light perception parameters of the environment in which the target screen is currently located and a target brightness curve, wherein the target brightness curve is used to characterize the mapping relationship between the light perception parameters of different environments and the brightness of different screens;
[0165] An adjustment module 730, configured to adjust the brightness of the target screen based on the brightness of the first screen;
[0166] The target brightness curve is obtained by using a target deep learning model to learn light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of the different environments.
[0167] The screen brightness adjustment device provided in the embodiment of the present application determines the first screen brightness based on the light parameters of the environment in which the target screen is currently located and the target brightness curve, and then adjusts the brightness of the target screen based on the first screen brightness. Since the target brightness curve is obtained by using a target deep learning model to learn the light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of different environments, the mapping relationship between the light parameters of different environments represented by the target brightness curve and the different screen brightness can reflect the user's behavioral habits of setting the screen brightness for the light parameters of different environments. The brightness of the target screen is adjusted by using the first screen brightness determined based on the target brightness curve that can reflect the user's behavioral habits of setting the screen brightness for the lighting of different environments, so that the brightness adjustment effect of the target screen is more in line with user expectations, the screen brightness adjustment effect in various complex environments is improved, and the user's demand for high-quality screen display is met.
[0168] In some embodiments, the adjustment module 730 is specifically used to:
[0169] Determine a second screen brightness set by a user for the target screen;
[0170] Determine a ratio of the second screen brightness to the first screen brightness as a first tuning rate;
[0171] When it is determined that the first tuning rate is within a preset range, the brightness of the target screen is adjusted to the second screen brightness.
[0172] In some embodiments, the adjustment module 730 is further configured to:
[0173] When it is determined that the first tuning rate is not within the preset range, determining an absolute difference between the second screen brightness and the first screen brightness;
[0174] When it is determined that the absolute difference is less than or equal to a preset threshold, the brightness of the target screen is adjusted to the second screen brightness.
[0175] In some embodiments, the adjustment module 730 is further configured to:
[0176] When it is determined that the absolute difference is greater than the preset threshold, the brightness of the target screen is adjusted to the first screen brightness.
[0177] In some embodiments, the screen brightness adjustment device further includes a target brightness curve determination module, and the target brightness curve determination module includes:
[0178] A data acquisition unit, configured to acquire sample data, wherein the sample data includes light perception parameters of different environments and screen brightness set by a user corresponding to the light perception parameters of the different environments;
[0179] A learning unit, used to learn the sample data using the target deep learning model to obtain a learning result;
[0180] The correction unit is used to correct the initially calibrated brightness curve based on the learning result to obtain the target brightness curve.
[0181] In some embodiments, the learning unit is specifically used to:
[0182] Determining third screen brightnesses corresponding to the light perception parameters of the different environments respectively based on the initially calibrated brightness curve and the light perception parameters of the different environments included in the sample data;
[0183] Determine a ratio of a screen brightness set by a user corresponding to the light perception parameters of the different environments to the corresponding third screen brightness as a second tuning rate;
[0184] The target deep learning model is used to learn the sample data and each of the second tuning rates to obtain the learning result.
[0185] In some embodiments, the target deep learning model is constructed based on any of the following deep learning model architectures:
[0186] Convolutional neural network model architecture, self-attention mechanism model architecture.
[0187] It should be noted here that the above-mentioned screen brightness adjustment device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned screen brightness adjustment method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0188] Figure 8 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application, such as Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may execute the executable data instructions stored in the memory 830 to implement some or all of the steps in the screen brightness adjustment method provided in the above embodiments.
[0189] In addition, the executable data instructions stored in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0190] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, some or all of the steps in the screen brightness adjustment method provided in the above embodiments are implemented.
[0191] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute some or all of the steps in the screen brightness adjustment method provided in the above embodiments.
[0192] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0193] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0194] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0195] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0196] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0197] The above description is merely an optional embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A method for adjusting screen brightness, It is characterized in that include: Determine the light perception parameters of the environment in which the target screen is currently located; Determine the brightness of the first screen based on the light perception parameters of the environment in which the target screen is currently located and a target brightness curve, wherein the target brightness curve is used to characterize the mapping relationship between the light perception parameters of different environments and different screen brightnesses; Based on the brightness of the first screen, adjusting the brightness of the target screen; The target brightness curve is obtained by using a target deep learning model to learn light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of the different environments.
2. The screen brightness adjustment method according to claim 1, It is characterized in that The adjusting the brightness of the target screen based on the brightness of the first screen includes: Determine a second screen brightness set by a user for the target screen; Determine a ratio of the second screen brightness to the first screen brightness as a first tuning rate; When it is determined that the first tuning rate is within a preset range, the brightness of the target screen is adjusted to the second screen brightness.
3. The screen brightness adjustment method according to claim 2, It is characterized in that The method further comprises: When it is determined that the first tuning rate is not within the preset range, determining an absolute difference between the second screen brightness and the first screen brightness; When it is determined that the absolute difference is less than or equal to a preset threshold, the brightness of the target screen is adjusted to the second screen brightness.
4. The screen brightness adjustment method according to claim 3, It is characterized in that The method further comprises: When it is determined that the absolute difference is greater than the preset threshold, the brightness of the target screen is adjusted to the first screen brightness.
5. The screen brightness adjustment method according to claim 1, It is characterized in that Before determining the brightness of the first screen based on the light perception parameters of the current environment of the target screen and the target brightness curve, the method further includes: Acquire sample data, where the sample data includes light perception parameters of different environments and screen brightness set by a user corresponding to the light perception parameters of the different environments; Using the target deep learning model to learn the sample data to obtain a learning result; Based on the learning result, the initially calibrated brightness curve is corrected to obtain the target brightness curve.
6. The screen brightness adjustment method according to claim 5, It is characterized in that The using the target deep learning model to learn the sample data to obtain a learning result includes: Determining third screen brightnesses corresponding to the light perception parameters of the different environments respectively based on the initially calibrated brightness curve and the light perception parameters of the different environments included in the sample data; Determine a ratio of a screen brightness set by a user corresponding to the light perception parameters of the different environments to the corresponding third screen brightness as a second tuning rate; The target deep learning model is used to learn the sample data and each of the second tuning rates to obtain the learning result.
7. The screen brightness adjustment method according to any one of claims 1 to 6, It is characterized in that The target deep learning model is built based on any of the following deep learning model architectures: Convolutional neural network model architecture, self-attention mechanism model architecture.
8. A screen brightness adjustment device, It is characterized in that include: A first determination module is used to determine the light perception parameters of the environment in which the target screen is currently located; A second determination module, configured to determine the brightness of the first screen based on the light perception parameters of the environment in which the target screen is currently located and a target brightness curve, wherein the target brightness curve is used to characterize a mapping relationship between light perception parameters of different environments and different screen brightnesses; An adjustment module, configured to adjust the brightness of the target screen based on the brightness of the first screen; The target brightness curve is obtained by using a target deep learning model to learn light parameters of different environments and the screen brightness set by the user corresponding to the light parameters of the different environments.
9. An electronic device, It is characterized in that include: A memory for storing executable data instructions; The processor is used to implement the steps of the screen brightness adjustment method described in any one of claims 1 to 7 when executing the executable data instructions stored in the memory.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the screen brightness adjustment method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Screen brightness adjusting method of display device and related equipment
CN119993020A
