WO2023245417A1 - Screen brightness adjustment method and apparatus, and electronic device and medium - Google Patents

Screen brightness adjustment method and apparatus, and electronic device and medium Download PDF

Info

Publication number
WO2023245417A1
WO2023245417A1 PCT/CN2022/100137 CN2022100137W WO2023245417A1 WO 2023245417 A1 WO2023245417 A1 WO 2023245417A1 CN 2022100137 W CN2022100137 W CN 2022100137W WO 2023245417 A1 WO2023245417 A1 WO 2023245417A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
screen brightness
brightness
target
historical
Prior art date
Application number
PCT/CN2022/100137
Other languages
French (fr)
Chinese (zh)
Inventor
李芝珩
邓嘉俊
Original Assignee
北京小米移动软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2022/100137 priority Critical patent/WO2023245417A1/en
Priority to CN202280004340.4A priority patent/CN117616496A/en
Publication of WO2023245417A1 publication Critical patent/WO2023245417A1/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Definitions

  • the present disclosure relates to the technical field of electronic equipment, and in particular, to methods, devices, electronic equipment, and media for adjusting screen brightness.
  • the present disclosure provides a method, device, electronic device, and medium for adjusting screen brightness.
  • a method for adjusting screen brightness is provided, which is applied to electronic devices.
  • the method for adjusting screen brightness includes:
  • the historical adjustment data includes a target brightness adjustment model
  • the screen brightness adjustment method further includes:
  • Target brightness information is a weighted calculation value based on each historical screen brightness information
  • a target brightness adjustment model is generated.
  • determining target brightness information based on the historical screen brightness information includes:
  • the determining of each historical screen brightness information includes:
  • determining the weight information of each of the historical screen brightness information according to each of the binary normal probability distributions includes:
  • the method for adjusting screen brightness also includes:
  • storing the target screen brightness information and application scene information corresponding to the target screen brightness information into the historical adjustment data includes:
  • the target screen brightness information and the application scene information corresponding to the target screen brightness information are used as sample data;
  • sample data determine the distribution state of the target screen brightness information in the sample data
  • warning information is displayed.
  • the processor is configured as:
  • a non-transitory computer-readable storage medium which when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform an adjustment of screen brightness.
  • the method includes:
  • the method in the present disclosure finds the recommended brightness information corresponding to the target application scene information through the correspondence between the application scene and the screen brightness information, and adjusts the screen for the user.
  • Brightness according to the application scenario, refines the user's needs and outputs the brightness value expected by the user, making it more suitable for the user's actual brightness needs and improving the user experience.
  • FIG. 1 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 2 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 3 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 4 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 5 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 6 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 7 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 8 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 9 is a block diagram of a device for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 10 is a block diagram of an electronic device according to an exemplary embodiment.
  • FIG. 11 is a block diagram of a device for adjusting screen brightness according to an exemplary embodiment.
  • FIG. 12 is a schematic diagram showing the distribution of historical screen brightness information according to an exemplary embodiment.
  • FIG. 13 is a binary positive probability distribution diagram of historical screen brightness information according to an exemplary embodiment.
  • Figure 14 is a schematic diagram of a target brightness adjustment model according to an exemplary embodiment.
  • Figure 15 is a schematic diagram of a target brightness adjustment model according to an exemplary embodiment.
  • some manufacturers have introduced automatic brightness adjustment design concepts.
  • the screen of an electronic device is equipped with an automatic brightness adjustment function.
  • the automatic brightness adjustment function adjusts the screen brightness based on the ambient light brightness.
  • the two form a relatively simple linear relationship. For example, the stronger the ambient light during the day, the brighter the screen of the electronic device, and the darker the ambient light at night, the darker the screen of the electronic device.
  • the present disclosure proposes a screen brightness adjustment method, which is applied to electronic devices.
  • the screen brightness adjustment method includes obtaining target application scene information; obtaining historical adjustment data, and the historical adjustment data is used to represent the correspondence between the application scene and screen brightness information. relationship; determine the recommended brightness information based on historical adjustment data and target application scene information; adjust the screen brightness of the electronic device based on the recommended brightness information.
  • the method in this disclosure finds the recommended brightness information corresponding to the target application scene information through the correspondence between the application scene and the screen brightness information, adjusts the screen brightness for the user, refines the user's needs according to the application scene, and outputs the user's expectations
  • the brightness value makes it more suitable for the actual brightness needs of users and improves the user experience.
  • Figure 1 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment.
  • the method for adjusting screen brightness is used in an electronic device.
  • the electronic device includes a processor for storing the processor.
  • the method of adjusting screen brightness includes the following steps:
  • the ambient light brightness information is, for example, the ambient light brightness information in different application scenarios.
  • usage time and ambient light brightness information can be classified as continuous value, and user information, application information, geographical location information and usage date are classified as discrete value.
  • user information, application information, geographical location information and usage date are classified as discrete value.
  • the screen brightness information may be determined by the screen brightness value when the user manually adjusted it in the past.
  • the processor collects screen brightness information acting on the electronic device.
  • Each screen brightness information has a corresponding screen brightness value during manual adjustment, and the processor stores it in historical adjustment data.
  • Each application scenario information has a corresponding relationship with the screen brightness information.
  • the user will manually adjust the screen brightness to a certain brightness value based on his own preferences and the current application scenario information. , to meet current usage needs.
  • each application scene information corresponds to a piece of screen brightness information. Users may have different needs in different environments, causing the user to adjust it multiple times, and the application scene information corresponds to one or more screen brightness values when manually adjusted.
  • the processor can pre-filter the discrete factors, that is, classify them.
  • Each category has a corresponding relationship.
  • the correspondence relationship can be, for example, a correspondence relationship table for easy search, or it can be an independent target brightness adjustment model for intuitive viewing.
  • the processor collects when user A manually adjusts the screen brightness, such as adjusting it to 50nit (nit), 200nit, etc., obtains the target application scenario information, and determines the category of discrete factors in the target application scenario information. For example, if the usage date in the discrete factor is a working day and user A uses the short video APP when the geographical location information is a certain resident address, the processor collects the current screen brightness information, makes a corresponding relationship, and stores it. based on historical adjustment data.
  • the processor collects when user B manually adjusts the screen brightness, such as adjusting it to 100nit, 300nit, etc., obtains the target application scenario information, and determines the category of discrete factors in the target application scenario information. If the usage date in the discrete factor is a non-working day, and user B uses the Weibo APP when the geographical location information is a certain resident address, the processor collects the current screen brightness information and makes a corresponding relationship. And stored in historical adjustment data.
  • the processor collects the screen brightness value when the user manually adjusted it, it means that the user has manually adjusted the screen, and the processor determines the screen brightness information based on the screen brightness value that the user has manually adjusted in the past.
  • the probability algorithm of density clustering can be used to calculate the screen brightness value that the user is most likely to expect, or a deep learning neural network can be used to simulate more complex nonlinear relationships to determine The screen brightness value that the user is most likely to expect.
  • the processor when the processor does not collect the screen brightness value when the user manually adjusts it, it means that the user has not manually adjusted the screen.
  • the processor can determine the screen brightness corresponding to the target application scenario information based on the preset recommended brightness adjustment model. Information, the processor processes and analyzes the screen brightness information to determine the recommended brightness information. Among them, in order to simplify the processing and analysis process and quickly determine the recommended brightness information, the screen brightness information can correspond to the recommended brightness information, and the screen brightness information is used as the recommended brightness information.
  • step S14 the processor adjusts the screen brightness of the electronic device according to the recommended brightness information so that the screen brightness of the electronic device meets the user's needs.
  • the recommended brightness information is, for example, a recommended screen brightness value.
  • the recommended screen brightness value may be, for example, but is not limited to 10nit, 100nit, or 500nit.
  • Multiple historical screen brightness information can represent the user's usual expected brightness value of the screen, and the weighted operation value between multiple historical screen brightness information can be calculated, which is the weighted average value between multiple historical screen brightness information, that is, Calculate the user's demand for the screen brightness of the electronic device and determine the target brightness information. For example, if multiple screen brightness information are 35nit, 40nit, and 45nit respectively, then the target brightness information is 40nit.
  • step S22 generating a target brightness adjustment model based on the target brightness information also includes the following steps:
  • the processor determines the weight information of each historical screen brightness information.
  • the weight information can be obtained through calculation.
  • the weight information is, for example, the binary normal probability distribution of the application scenario information that can be obtained for each historical screen brightness information.
  • the weight information of each historical screen brightness information is determined.
  • the binary normal probability distribution of the application scene information of each historical screen brightness information may be determined based on the ambient light information and time information in the application scene information.
  • a bivariate normal probability distribution is calculated.
  • the bivariate normal probability distribution is the weight information, and the formula of the bivariate normal probability distribution is:
  • x amb level (ambient light level, that is, ambient light information)
  • y can be understood as time (time information)
  • ⁇ X and ⁇ Y are the variances of X and Y
  • ⁇ X and ⁇ Y are the mean values of X and Y
  • is the two The correlation coefficient of variables X and Y; the calculation method of ⁇ is:
  • Outliers are also called escape values. They refer to one or several values in the sample data that are significantly different from other values. , if the probability that a value deviates from the mean value of the sample data is less than or equal to 1/(2n), the sample data should be discarded (n is the number of sample data examples, and the probability can be estimated based on the distribution of the sample data). Probabilistic weighting can give more weight to closer values, improving the algorithm's ability to combat the uncertainty of manual adjustment of brightness data and achieving more accurate predictions. For example, corresponding to the screen brightness information during manual adjustment in Figure 12, the new target brightness adjustment model is the recommended brightness curve shown in Figure 14 (view from z-axis) and Figure 15.
  • the X-axis represents ambient light brightness information (ambientlight)
  • the y-axis represents time information (minscale)
  • the time information is from 0h to 24h, for example, the unit is min
  • the z-axis represents the target screen brightness information (brightness) after manual adjustment.
  • Different color depths represent different target screen brightness information.
  • the target brightness adjustment model is adjusted to the brightness value of the screen brightness information that the user has manually adjusted in the past.
  • the new target brightness adjustment model does not follow a linear relationship.
  • the target brightness adjustment model does not have manual adjustment.
  • the area of the screen brightness information during adjustment still maintains the default preset recommended brightness adjustment model (details will be described in the embodiments described later).
  • step S2212 the processor determines the weight coefficient of each historical screen brightness information based on the time information.
  • the weight information of the early historical screen brightness information is given a lower weight, and the weight information of the recent historical screen brightness information is given a higher weight.
  • the weight coefficient is, for example, 0.7, 0.5, 0.3, 0, etc.
  • step S2213 the processor determines the weight information of each historical screen brightness information through calculation according to the weight coefficient and the binary normal probability distribution.
  • step S222 the processor determines target brightness information based on the weight information and historical screen brightness information. Among them, the average value between the product of each weight information and the corresponding historical screen brightness information is the determined target brightness information.
  • the binary normal probability is the sum of the probabilities corresponding to all the times the screen brightness is adjusted during the same usage period.
  • the processor searches historical adjustment data in a traversal manner, and when it queries the historical screen brightness information corresponding to the same application scenario information in the historical adjustment data, it means that the user has manually adjusted the screen brightness, and the processor Based on the historical screen brightness information, the target brightness information is determined, and the target brightness adjustment model is generated from the target brightness information and the corresponding application scene information to meet the user's needs.
  • the processor Based on the historical screen brightness information, the target brightness information is determined, and the target brightness adjustment model is generated from the target brightness information and the corresponding application scene information to meet the user's needs.
  • different weight coefficients are assigned to the weight information on different dates to update the weight information and adjust it at any time according to the user's preferences to improve the user experience and meet the user's needs.
  • weight information is determined by binary normal probability, which can better avoid the influence of outlier factors, improve the algorithm's ability to resist the uncertainty of manual adjustment of brightness data, and improve the accuracy of recommendations. Assign different coefficients to the weight information at different time points, forget the premature historical screen brightness information, and further realize the ability of self-updating.
  • step S33 the processor searches historical adjustment data in a traversal manner.
  • step S34 during the processor query process, if there is screen brightness information corresponding to the target application scene information, steps S37 to S39 are executed; if there is no screen brightness information corresponding to the target application scene information, step S35 is executed. .
  • a preset recommended brightness adjustment model is obtained.
  • the preset recommended brightness adjustment model is stored in the processor before leaving the factory to provide a basis for adjusting the screen brightness.
  • the preset recommended brightness adjustment model can be preset to have an independent adjustment model for each application scenario.
  • Each preset recommended brightness value in the preset recommended brightness adjustment model has a corresponding relationship with the application scenario information.
  • step S36 the processor adjusts the brightness of the screen using a preset recommended brightness adjustment model corresponding to the target application scene information.
  • the processor detects that the user is in the target application scene information, it searches for an adjustment model corresponding to the target application scene information according to the preset recommended brightness adjustment model. Based on the adjustment model, it determines the preset recommended automatic brightness value to use the preset recommended automatic brightness value. Adjust the screen brightness of electronic devices.
  • the preset recommended brightness adjustment model can formulate corresponding adjustment curves based on ambient light information, or it can collect the preferences of different users and use them as sample data, conduct modeling analysis on them, and calculate the corresponding adjustment curves. Specifically, based on actual The design shall prevail and shall not be further limited here. For example, the preferences of different users can be collected based on different user information.
  • each user can upload user information and application scenario information to the cloud based on his or her personal wishes to provide analysis support for the data.
  • steps S37 to S39 are the same as the methods implemented in steps S33 to S35, and will not be repeated here.
  • the method in this embodiment uses the processor to search historical adjustment data to determine whether there is screen brightness information in the historical adjustment data, and then determine whether the user has manually adjusted the screen brightness. If there is no manual adjustment of the screen brightness, it means that the user has not manually adjusted the screen brightness.
  • the preset recommended brightness adjustment model is quite satisfactory.
  • the processor adjusts the screen brightness of the electronic device based on the preset recommended brightness adjustment model so that the current screen brightness meets the user's eye needs for the target application scene information and improves the user's visual effect.
  • Figure 6 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment. As shown in Figure 6, the method for adjusting screen brightness is used in an electronic device.
  • the electronic device includes a processor for storing the processor.
  • the method of adjusting screen brightness includes the following steps:
  • step S41 the processor obtains target screen brightness information acting on the electronic device.
  • the target screen brightness information is the screen brightness value manually adjusted by the user under the current application scene information.
  • a sensor is provided in the screen.
  • the user touches the screen and wants to adjust the screen brightness value
  • the user operates the brightness adjustment bar.
  • the processor collects that the user has called up the brightness adjustment interface and adjusted the screen brightness value.
  • the processor obtains the screen brightness value.
  • the screen brightness value is adjusted to 100nit, or other screen brightness values that meet the user's needs.
  • the brightness adjustment interface can be set in the drop-down notification bar of the electronic device, or can be set at any position on the screen display interface, or the brightness adjustment interface can be brought up through preset gestures to display the brightness adjustment bar to the user to facilitate the user. It adjusts.
  • the processor When the user completes manual adjustment, he can slide the notification bar up and down to hide the brightness adjustment bar. Or, if the user clicks a position other than the brightness adjustment bar, the processor hides the brightness adjustment bar. Or, if the processor does not obtain any operation of the brightness adjustment bar within the preset time period, the processor hides the brightness adjustment bar.
  • the brightness adjustment bar may include a slide bar to facilitate the user to slide and adjust its brightness.
  • the brightness adjustment bar can also include "+” and “-” keys, so that the user can click the "+” and “-” keys to accurately adjust the brightness.
  • the brightness adjustment bar also includes a close key so that users can quickly turn off the automatic recommended brightness adjustment function. Among them, the close key can be expressed in graphic form, text form, or symbolic form, which shall be subject to the actual design.
  • step S42 the processor adjusts the screen brightness of the electronic device according to the target screen brightness information.
  • the processor collects the screen brightness value, it sends a control instruction to the screen to control the screen brightness of the electronic device to display the target screen brightness information.
  • step S43 the processor stores the target screen brightness information and the application scene information corresponding to the target screen brightness information into historical adjustment data.
  • the processor can combine the target screen brightness information and the current
  • the corresponding application scenario information is stored in the historical adjustment data so as to be used as sample data to provide data support for generating the target brightness adjustment model.
  • the method in this embodiment obtains the target screen brightness information that the user acts on the electronic device.
  • the target screen brightness information is the screen brightness information value when the user currently adjusts manually, and the screen displays the screen brightness value when the user currently adjusts manually. , to meet the current needs of users.
  • the screen brightness information and the corresponding application scenario information are synchronously stored in the historical adjustment data, so as to provide data support for the target brightness adjustment model of future applications, realize the storage of targeted information, and formulate the user's personalized screen brightness design to meet the needs of the user. Meet the needs of different users and improve the user experience.
  • step S43 the target screen brightness information and the application scene information corresponding to the target screen brightness information are stored in the historical adjustment data. Also includes the following steps:
  • step S432 the processor analyzes the sample data to determine whether the sample data meets the conditions for triggering the recommended automatic brightness. Since there is a possibility of accidental and mis-adjustment when the user manually adjusts the screen brightness, you can set the conditions that trigger the recommended automatic brightness to take effect, so as to determine whether the sample data is valid data.
  • step S4321 the processor determines the distribution state of the target screen brightness information in the sample data based on the sample data.
  • the distribution status of the target screen brightness information in the sample data can be determined by calculating the bivariate Gaussian Distribution of each target screen brightness information using the density-based clustering method.
  • the formula for the bivariate normal probability distribution is:
  • x amb level (ambient light level, that is, ambient light brightness information)
  • y can be understood as time (time)
  • ⁇ X and ⁇ Y are the variances of X and Y
  • ⁇ X and ⁇ Y are the mean values of X and Y
  • is The correlation coefficient of two variables X and Y; ⁇ is calculated as:
  • the category that the user is currently in is a short video APP.
  • the processor collects through the sensor that the current ambient light brightness is 1ux and the usage time is 2 o'clock.
  • the processor obtains and adjusts the screen brightness once.
  • it can be determined that the probability of the binary normal probability f is small during the current use time, and the user is highly likely to accidentally touch it during this use time.
  • step S4323 the processor determines whether the sample data satisfies the conditions for triggering the recommended automatic brightness according to the correlation.
  • the sample data with a stronger correlation that is, it satisfies the conditions for stimulating the automatic brightness recommendation.
  • step S433 is executed. If the sample data has a weaker correlation, it does not satisfy the conditions for stimulating the automatic brightness recommendation. condition, in response to the sample data not meeting the conditions for activating the recommended automatic brightness, step S434 is executed.
  • the probability distribution of the application scenario information of at least one target screen brightness information is located at a position greater than 0.5, or the probability distribution of the application scenario information of at least two target screen brightness information is located at a position greater than 0.625, Then the conditions for triggering recommended automatic brightness are met.
  • step S433 the processor records the sample data that satisfies the conditions for triggering the recommended automatic brightness into historical adjustment data in preparation for generating a target brightness adjustment model.
  • the probability distribution of at least one screen brightness is located at a position greater than 0.5, or at least two screen brightness probability distributions are located at a position greater than 0.625, then the conditions for triggering recommended automatic brightness are met. conditions, effectively preventing misadjustment from having a greater impact on the target brightness adjustment model, improving the accuracy of recommended automatic adjustment, and improving the user experience.
  • FIG. 8 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment. As shown in Figure 8, the method for adjusting screen brightness is used in an electronic device.
  • the electronic device includes a processor and a sensor for storing
  • the processor is a memory that can execute instructions.
  • the sensor is used to obtain ambient light brightness information and screen brightness information.
  • the method of adjusting screen brightness includes the following steps:
  • step S61 the sensor collects the current screen brightness information and the ambient light brightness information respectively, and the processor is communicatively connected with the sensor so that the processor can obtain the current screen brightness information and the ambient light brightness information.
  • step S62 the processor compares the current screen brightness information and the ambient light brightness information to determine the difference between the current screen brightness information and the ambient light brightness information.
  • a warning message is displayed.
  • the display warning information may be displayed in the display interface of the screen in the form of a pop-up window, prompting the user that the current screen brightness information does not match the ambient light brightness information in the current environment, and the screen brightness information should be adjusted.
  • the warning information may be displayed directly in the form of sound to remind the user.
  • a prompt voice may be issued.
  • the prompt voice may be, for example, unsafe or the screen brightness is not sufficient. Standards and other warning words.
  • the method in this embodiment determines whether the user's current usage is inappropriate by calculating the difference between the current screen brightness information and the ambient light brightness information. If used improperly, a warning message will be displayed to remind the user to change the current screen brightness information to prevent users from developing bad usage habits and protect human eyes. For example, when the user stares at the mobile phone for a long time, the ambient light brightness information is 10lux and the current environment is relatively dim. The user adjusts the screen brightness information to 100nit to make the screen brighter, which will irritate the human eyes and cause damage. When the user stares at the phone for a long time, the ambient light brightness information is 100lux. The current environment is relatively bright. The user adjusts the screen brightness information to 10nit, making the screen brightness darker. Long-term gaze will cause eye fatigue and even irreversible damage. . In this disclosure, warning information is displayed to try to guide the user's screen brightness to remain within an appropriate brightness range to protect human health.
  • the method in the present disclosure is not limited to monitoring screen brightness information, but can also monitor the user's usage time. If the user's usage time is too long, a warning message can also be displayed and the screen can be adjusted to warm colors. Keep its screen brightness at the best state to protect human eyes. And/or, the method in the present disclosure can also monitor the display content of the screen display interface and determine the spectrum of the displayed content. Among them, the blue spectrum is the most harmful to human eyes and will affect the user's sleep quality. If the user watches content with blue spectrum for a long time, a warning message should be displayed to remind the user and guide the user to protect their eyes.
  • the monitoring method in this disclosure can set specific conditions and values for human eye health by recommending automatic brightness model settings to correct the user's bad usage habits and protect the user's health.
  • the screen brightness adjustment method proposed in this disclosure uses the probability algorithm of density clustering or the deep learning neural network to simulate more complex nonlinear relationships, introduces application scenario information, and classifies it, and details it according to the application scenario information. Customize the needs of users and make targeted adjustments and designs for each user.
  • the application scenario information includes at least two of the following: ambient light brightness information, application program information, time information, and geographical location information; where the time information includes usage time and usage date.
  • using the probability algorithm of density clustering to calculate the screen brightness value that the user is most likely to expect can better avoid the influence of outlier factors and improve the algorithm's resistance to manual adjustment of brightness data.
  • Deep learning neural networks can also be used to replace density clustering algorithms to simulate more complex nonlinear relationships, so as to generate target brightness adjustment models and improve accuracy.
  • FIG. 9 is a block diagram of a device for adjusting screen brightness according to an exemplary embodiment.
  • the device includes a first acquisition module 700 , a second acquisition module 710 , a determination module 720 and an adjustment module 730 .
  • the first acquisition module 700 is configured to acquire target application scenario information.
  • the second acquisition module 710 is configured to acquire historical adjustment data, where the historical adjustment data is used to represent the correspondence between the application scene and the screen brightness information.
  • the determination module 720 is configured to determine recommended brightness information based on historical adjustment data and target application scene information.
  • the adjustment module 730 is configured to adjust the screen brightness of the electronic device according to the recommended brightness information.
  • Processing component 802 generally controls the overall operations of electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method.
  • processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
  • processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action.
  • multimedia component 808 includes a front-facing camera and/or a rear-facing camera.
  • Audio component 810 is configured to output and/or input audio signals.
  • audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 .
  • audio component 810 also includes a speaker for outputting audio signals.
  • a non-transitory computer-readable storage medium including instructions such as a memory 804 including instructions, which can be executed by the processor 820 of the electronic device 800 to complete the above method is also provided.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • target application scenario information Obtain historical adjustment data, which is used to represent the correspondence between application scenarios and screen brightness information. Determine recommended brightness information based on historical adjustment data and target application scenario information. Adjust the screen brightness of the electronic device based on recommended brightness information.
  • the method in this disclosure finds the recommended brightness information corresponding to the target application scene information through the correspondence between the application scene and the screen brightness information, adjusts the screen brightness for the user, refines the user's needs according to the application scene, and outputs the user's expectations
  • the brightness value makes it more suitable for the actual brightness needs of users and improves the user experience.

Abstract

A screen brightness adjustment method and apparatus, and an electronic device and a medium. The screen brightness adjustment method comprises: acquiring target application scenario information; acquiring historical adjustment data, wherein the historical adjustment data is used for representing the correspondence between application scenarios and screen brightness information; generating a target recommended brightness adjustment model according to the historical adjustment data and the target application scenario information; and adjusting the screen brightness of an electronic device to a target recommended automatic brightness value on the basis of the target recommended brightness adjustment model and the target application scenario information. In the screen brightness adjustment method, a target recommended brightness adjustment model is generated on the basis of historical adjustment data and target application scenario information, such that when a user is in a target application scenario in the future, the screen brightness can be automatically adjusted for the user on the basis of the correspondence with the target recommended brightness adjustment model, the requirement of the user is refined, a brightness value desired by the user can be output, and the brightness can better fit the actual brightness requirement of the user, thereby improving the usage experience of the user.

Description

一种屏幕亮度的调节方法、装置、电子设备及介质A method, device, electronic equipment and medium for adjusting screen brightness 技术领域Technical field
本公开涉及电子设备技术领域,尤其涉及屏幕亮度的调节方法、装置、电子设备及介质。The present disclosure relates to the technical field of electronic equipment, and in particular, to methods, devices, electronic equipment, and media for adjusting screen brightness.
背景技术Background technique
随着电子设备技术的网络技术的发展,用户越来越依赖于电子设备。电子设备能够满足用户的日常生活与商务办公等,由于电子设备的便携性,用户对电子设备的使用场景并不固定,场景复杂多变,屏幕亮度调节难以贴合用户亮度需求。With the development of network technology in electronic device technology, users are becoming more and more dependent on electronic devices. Electronic devices can meet users' daily life and business office needs. Due to the portability of electronic devices, users' usage scenarios of electronic devices are not fixed. The scenarios are complex and changeable, and it is difficult to adjust the screen brightness to meet the user's brightness needs.
发明内容Contents of the invention
有鉴于此,本公开提供一种屏幕亮度的调节方法、装置、电子设备及介质。In view of this, the present disclosure provides a method, device, electronic device, and medium for adjusting screen brightness.
根据本公开实施例的第一方面,提供一种屏幕亮度的调节方法,应用于电子设备,所述屏幕亮度的调节方法包括:According to a first aspect of an embodiment of the present disclosure, a method for adjusting screen brightness is provided, which is applied to electronic devices. The method for adjusting screen brightness includes:
获取目标应用场景信息;Obtain target application scenario information;
获取历史调节数据,所述历史调节数据用于表征应用场景信息与屏幕亮度信息之间的对应关系;Obtain historical adjustment data, which is used to represent the correspondence between application scene information and screen brightness information;
根据所述历史调节数据和所述目标应用场景信息,确定推荐亮度信息;Determine recommended brightness information based on the historical adjustment data and the target application scene information;
根据所述推荐亮度信息调节电子设备的屏幕亮度。Adjust the screen brightness of the electronic device according to the recommended brightness information.
可选地,所述历史调节数据包括目标亮度调节模型,所述屏幕亮度的调节方法还包括:Optionally, the historical adjustment data includes a target brightness adjustment model, and the screen brightness adjustment method further includes:
获取对应于同一应用场景信息的历史屏幕亮度信息,和所述历史屏幕亮度信息对应的应用场景信息;Obtain historical screen brightness information corresponding to the same application scene information, and application scene information corresponding to the historical screen brightness information;
根据所述历史屏幕亮度信息,确定目标亮度信息;其中,所述目标亮度信息为基于每个历史屏幕亮度信息的加权运算值;Determine target brightness information according to the historical screen brightness information; wherein the target brightness information is a weighted calculation value based on each historical screen brightness information;
根据所述目标亮度信息和对应的应用场景信息,生成目标亮度调节模型。According to the target brightness information and corresponding application scene information, a target brightness adjustment model is generated.
可选地,所述根据所述历史屏幕亮度信息,确定目标亮度信息,包括:Optionally, determining target brightness information based on the historical screen brightness information includes:
确定每个所述历史屏幕亮度信息的获取权重信息;Determine the acquisition weight information of each of the historical screen brightness information;
根据所述权重信息和所述历史屏幕亮度信息,确定目标亮度信息。Target brightness information is determined based on the weight information and the historical screen brightness information.
可选地,所述确定每个所述历史屏幕亮度信息的,包括:Optionally, the determining of each historical screen brightness information includes:
获取每个所述历史屏幕亮度信息的应用场景信息的的二元正态概率分布;Obtain the bivariate normal probability distribution of the application scenario information of each historical screen brightness information;
根据每个所述二元正态概率分布,确定每个所述历史屏幕亮度信息的权重信息。According to each of the binary normal probability distributions, the weight information of each of the historical screen brightness information is determined.
可选地,所述根据每个所述二元正态概率分布,确定每个所述历史屏幕亮度信息的权重信息,包括:Optionally, determining the weight information of each of the historical screen brightness information according to each of the binary normal probability distributions includes:
获取每个所述历史屏幕亮度信息的时间信息;Obtain the time information of each historical screen brightness information;
根据所述时间信息,确定每个所述历史屏幕亮度信息的权重系数;Determine a weight coefficient for each historical screen brightness information according to the time information;
根据所述权重系数和所述二元正态概率分布,确定每个所述历史屏幕亮度信息的权重信息。According to the weight coefficient and the binary normal probability distribution, the weight information of each of the historical screen brightness information is determined.
可选地,所述屏幕亮度的调节方法,还包括:Optionally, the method for adjusting screen brightness also includes:
以遍历方式搜查所述历史调节数据,若不存在与所述目标应用场景信息对应的屏幕亮度信息,则获取预设推荐亮度调节模型;Search the historical adjustment data in a traversal manner, and if there is no screen brightness information corresponding to the target application scene information, obtain a preset recommended brightness adjustment model;
基于与所述目标应用场景信息对应的预设推荐亮度调节模型调整屏幕亮度。Adjust the screen brightness based on a preset recommended brightness adjustment model corresponding to the target application scene information.
可选地,所述屏幕亮度的调节方法还包括:Optionally, the method for adjusting screen brightness also includes:
获取作用于所述电子设备的目标屏幕亮度信息;所述目标屏幕亮度信息用于表征手动调节后的屏幕亮度信息;Obtain target screen brightness information acting on the electronic device; the target screen brightness information is used to represent the manually adjusted screen brightness information;
根据所述目标屏幕亮度信息调节所述电子设备的屏幕亮度;Adjust the screen brightness of the electronic device according to the target screen brightness information;
将所述目标屏幕亮度信息,以及与所述目标屏幕亮度信息对应的应用场景信息存储至所述历史调节数据。The target screen brightness information and the application scene information corresponding to the target screen brightness information are stored in the historical adjustment data.
可选地,所述将所述目标屏幕亮度信息,以及与所述目标屏幕亮度信息对应的应用场景信息存储至所述历史调节数据,包括:Optionally, storing the target screen brightness information and application scene information corresponding to the target screen brightness information into the historical adjustment data includes:
所述目标屏幕亮度信息,以及与所述目标屏幕亮度信息对应的应用场景信息作为样本数据;The target screen brightness information and the application scene information corresponding to the target screen brightness information are used as sample data;
响应于所述样本数据满足激发推荐自动亮度的条件,将所述样本数据记录至历史调节数据。In response to the sample data satisfying a condition for triggering the recommended automatic brightness, the sample data is recorded to historical adjustment data.
可选地,所述响应于所述样本数据满足激发推荐自动亮度的条件,将所述样本数据记录至历史调节数据,包括:Optionally, in response to the sample data meeting the conditions for triggering recommended automatic brightness, recording the sample data to historical adjustment data includes:
根据所述样本数据,确定所述样本数据中的目标屏幕亮度信息的分布状态;According to the sample data, determine the distribution state of the target screen brightness information in the sample data;
对所述目标屏幕亮度信息的分布状态进行分析,确定所述样本数据中相邻的两个样本值的关联性;Analyze the distribution state of the target screen brightness information and determine the correlation between two adjacent sample values in the sample data;
基于所述关联性,响应于所述样本数据满足激发推荐自动亮度的条件,将所述样本数据 记录至历史调节数据。Based on the correlation, in response to the sample data satisfying a condition for triggering recommended automatic brightness, the sample data is recorded to historical adjustment data.
可选地,所述屏幕亮度的调节方法还包括:Optionally, the method for adjusting screen brightness also includes:
获取当前屏幕亮度信息和环境光亮度信息;Get the current screen brightness information and ambient light brightness information;
当所述当前屏幕亮度信息和所述环境光亮度信息的差值的绝对值大于预设阈值,显示警示信息。When the absolute value of the difference between the current screen brightness information and the ambient light brightness information is greater than a preset threshold, warning information is displayed.
可选地,所述应用场景信息包括以下至少二者:Optionally, the application scenario information includes at least two of the following:
环境光亮度信息、应用程序信息、时间信息、地理位置信息;其中,时间信息包括使用时间和使用日期。Ambient light brightness information, application information, time information, and geographical location information; among which, time information includes usage time and usage date.
根据本公开实施例的第二方面,提供一种屏幕亮度的调节装置,应用于电子设备,包括:According to a second aspect of an embodiment of the present disclosure, a screen brightness adjustment device is provided, which is applied to electronic equipment, including:
第一获取模块,用于获取目标应用场景信息;The first acquisition module is used to acquire target application scenario information;
第二获取模块,用于获取历史调节数据,所述历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系;The second acquisition module is used to acquire historical adjustment data, where the historical adjustment data is used to represent the correspondence between the application scenario and the screen brightness information;
确定模块,用于根据所述历史调节数据和所述目标应用场景信息,确定推荐亮度信息;A determination module configured to determine recommended brightness information based on the historical adjustment data and the target application scene information;
调节模块,用于根据所述推荐亮度信息调节所述电子设备的屏幕亮度。An adjustment module, configured to adjust the screen brightness of the electronic device according to the recommended brightness information.
根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory used to store instructions executable by the processor;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取目标应用场景信息;Obtain target application scenario information;
获取历史调节数据,所述历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系;Obtain historical adjustment data, which is used to characterize the correspondence between application scenarios and screen brightness information;
根据所述历史调节数据和所述目标应用场景信息,确定推荐亮度信息;Determine recommended brightness information based on the historical adjustment data and the target application scene information;
根据所述推荐亮度信息调节所述电子设备的屏幕亮度。Adjust the screen brightness of the electronic device according to the recommended brightness information.
根据本公开实施例的第四方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行一种屏幕亮度的调节方法,所述方法包括:According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, which when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform an adjustment of screen brightness. Method, the method includes:
获取目标应用场景信息;Obtain target application scenario information;
获取历史调节数据,所述历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系;Obtain historical adjustment data, which is used to characterize the correspondence between application scenarios and screen brightness information;
根据所述历史调节数据和所述目标应用场景信息,确定推荐亮度信息;Determine recommended brightness information based on the historical adjustment data and the target application scene information;
根据所述推荐亮度信息调节所述电子设备的屏幕亮度。Adjust the screen brightness of the electronic device according to the recommended brightness information.
本公开的实施例提供的技术方案可以包括以下有益效果:本公开中的方法通过应用场景与屏幕亮度信息之间的对应关系,找到与目标应用场景信息对应的推荐亮度信息,为用户进行调节屏幕亮度,根据应用场景,细化用户的需求,输出用户期望的亮度值,使其更加贴合用户实际的亮度需求,提升用户的使用体验。The technical solution provided by the embodiments of the present disclosure can include the following beneficial effects: the method in the present disclosure finds the recommended brightness information corresponding to the target application scene information through the correspondence between the application scene and the screen brightness information, and adjusts the screen for the user. Brightness, according to the application scenario, refines the user's needs and outputs the brightness value expected by the user, making it more suitable for the user's actual brightness needs and improving the user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图。FIG. 1 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图。FIG. 2 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图。FIG. 3 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图。FIG. 4 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图。FIG. 5 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图。FIG. 6 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图。FIG. 7 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图。FIG. 8 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种屏幕亮度的调节装置的框图。FIG. 9 is a block diagram of a device for adjusting screen brightness according to an exemplary embodiment.
图10是根据一示例性实施例示出的一种电子设备的框图。FIG. 10 is a block diagram of an electronic device according to an exemplary embodiment.
图11是根据一示例性实施例示出的一种屏幕亮度的调节装置的框图。FIG. 11 is a block diagram of a device for adjusting screen brightness according to an exemplary embodiment.
图12是根据一示例性实施例示出的历史屏幕亮度信息分布示意图。FIG. 12 is a schematic diagram showing the distribution of historical screen brightness information according to an exemplary embodiment.
图13是根据一示例性实施例示出的历史屏幕亮度信息的二元正太概率分布图。FIG. 13 is a binary positive probability distribution diagram of historical screen brightness information according to an exemplary embodiment.
图14是根据一示例性实施例示出的目标亮度调节模型示意图。Figure 14 is a schematic diagram of a target brightness adjustment model according to an exemplary embodiment.
图15是根据一示例性实施例示出的目标亮度调节模型示意图。Figure 15 is a schematic diagram of a target brightness adjustment model according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述 的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the appended claims.
在一些示例中,部分生产厂商推出自动亮度调节设计理念。在电子设备的屏幕搭载亮度自动调节功能,亮度自动调节功能基于环境光亮度去调整屏幕亮度,二者形成一种较为简单的线性关系。比如,白天的环境光亮度越强,电子设备的屏幕亮度越亮,夜晚环境光亮度越暗,电子设备的屏幕亮度越暗。In some examples, some manufacturers have introduced automatic brightness adjustment design concepts. The screen of an electronic device is equipped with an automatic brightness adjustment function. The automatic brightness adjustment function adjusts the screen brightness based on the ambient light brightness. The two form a relatively simple linear relationship. For example, the stronger the ambient light during the day, the brighter the screen of the electronic device, and the darker the ambient light at night, the darker the screen of the electronic device.
但是,由于不同的用户对屏幕亮度的敏感程度不一样,导致不同用户对屏幕亮度的需求就不一样,自动调节的屏幕亮度并不能满足每个用户的需求。实际情况中,面对不同的使用场景,用户经常抱怨自动调节的屏幕亮度不能满足需求。比如,夜晚看书时屏幕太亮或者太暗,用户体验仍旧不舒适,白天拍照时屏幕太暗等,屏幕亮度仍无法满足用户在白天的需求,亮度自动调节功能完全依赖于环境光亮度,决定其功能的因素太少,不能完全满足不同用户的喜好和需求。However, since different users have different sensitivity to screen brightness, different users have different needs for screen brightness, and automatically adjusted screen brightness cannot meet the needs of each user. In actual situations, faced with different usage scenarios, users often complain that the automatically adjusted screen brightness cannot meet their needs. For example, if the screen is too bright or too dark when reading at night, the user experience is still uncomfortable; if the screen is too dark when taking photos during the day, etc., the screen brightness still cannot meet the user's needs during the day. The automatic brightness adjustment function completely depends on the ambient light brightness to determine its function. There are too few factors and cannot fully meet the preferences and needs of different users.
本公开提出了一种屏幕亮度的调节方法,应用于电子设备,屏幕亮度的调节方法包括获取目标应用场景信息;获取历史调节数据,历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系;根据历史调节数据和目标应用场景信息,确定推荐亮度信息;根据推荐亮度信息调节电子设备的屏幕亮度。本公开中的方法通过应用场景与屏幕亮度信息之间的对应关系,找到与目标应用场景信息对应的推荐亮度信息,为用户进行调节屏幕亮度,根据应用场景,细化用户的需求,输出用户期望的亮度值,使其更加贴合用户实际的亮度需求,提升用户的使用体验。The present disclosure proposes a screen brightness adjustment method, which is applied to electronic devices. The screen brightness adjustment method includes obtaining target application scene information; obtaining historical adjustment data, and the historical adjustment data is used to represent the correspondence between the application scene and screen brightness information. relationship; determine the recommended brightness information based on historical adjustment data and target application scene information; adjust the screen brightness of the electronic device based on the recommended brightness information. The method in this disclosure finds the recommended brightness information corresponding to the target application scene information through the correspondence between the application scene and the screen brightness information, adjusts the screen brightness for the user, refines the user's needs according to the application scene, and outputs the user's expectations The brightness value makes it more suitable for the actual brightness needs of users and improves the user experience.
图1是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图,如图1所示,屏幕亮度的调节方法用于电子设备中,电子设备包括处理器,用于存储处理器可执行指令的存储器,屏幕亮度的调节方法包括以下步骤:Figure 1 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment. As shown in Figure 1, the method for adjusting screen brightness is used in an electronic device. The electronic device includes a processor for storing the processor. In the memory of executable instructions, the method of adjusting screen brightness includes the following steps:
S11、获取目标应用场景信息。S11. Obtain target application scenario information.
在步骤S11中,电子设备的处理器获取目标应用场景信息。当电子设备检测到用户正在使用或者操作电子设备时,如用户正在触摸屏幕的某个区域,屏幕检测到按压或者滑动等操作;或者,用户正在使用某个应用程序信息,应用程序信息比如是微信、QQ、视频浏览器、游戏APP、拍照模式等,处理器获取目标应用场景信息,以便于确定用户当前使用的应用场景信息。其中,应用场景信息包括以下至少二者:In step S11, the processor of the electronic device obtains target application scenario information. When the electronic device detects that the user is using or operating the electronic device, for example, the user is touching a certain area of the screen, and the screen detects operations such as pressing or sliding; or the user is using an application information, such as WeChat , QQ, video browser, game APP, camera mode, etc., the processor obtains the target application scenario information in order to determine the application scenario information currently used by the user. Among them, the application scenario information includes at least two of the following:
环境光亮度信息、应用程序信息、时间信息、地理位置信息;其中,时间信息包括使用时间和使用日期。Ambient light brightness information, application information, time information, and geographical location information; among which, time information includes usage time and usage date.
环境光亮度信息比如是不同应用场景下的环境光亮度信息。The ambient light brightness information is, for example, the ambient light brightness information in different application scenarios.
应用程序信息比如是电子设备内的应用软件,应用软件比如是微信等通信类应用、支付宝等支付类应用、游戏类应用、腾讯等视频类应用等。Application information is, for example, application software in electronic devices. Application software is, for example, communication applications such as WeChat, payment applications such as Alipay, game applications, video applications such as Tencent, etc.
时间信息比如时间信息包括使用时间(XX时XX分)和使用日期(XXXX年XX月XX日),使用日期可以划分为工作日和非工作日,或者,节日和非节日等。Time information such as time information includes usage time (XX hour XX minute) and usage date (XXXX year XX month XX day). The usage date can be divided into working days and non-working days, or holidays and non-holidays.
地理位置信息比如可以利用GPS等技术,通过经纬度以得到结构化地址信息,如省份+城市+区县+城镇+乡村+街道+门牌号等,将结构化地址信息可以划分为常驻地址和非常驻地址。For example, geographical location information can use GPS and other technologies to obtain structured address information through longitude and latitude, such as province + city + district + county + town + village + street + house number, etc. The structured address information can be divided into permanent address and emergency address. resident address.
其中,使用时间和环境光亮度信息可以归类为连续值(continuous value),用户信息、应用程序信息、地理位置信息和使用日期归类为离散值(discrete value),通过增加更多的衡量因素,能够更加准确的确定用户当前使用的应用场景信息。Among them, usage time and ambient light brightness information can be classified as continuous value, and user information, application information, geographical location information and usage date are classified as discrete value. By adding more measurement factors , which can more accurately determine the application scenario information currently used by the user.
在此需要,说明的是,当记录应用场景信息时,还可以记录用户信息,形成用户定制化的个人屏幕调节。用户信息比如是用户的ID账号和密码、用户的面部信息、用户的指纹信息等。It should be noted here that when recording application scenario information, user information can also be recorded to form user-customized personal screen adjustments. User information includes, for example, the user's ID account and password, the user's facial information, the user's fingerprint information, etc.
S12、获取历史调节数据。S12. Obtain historical adjustment data.
在步骤S12中,电子设备的处理器获取历史调节数据。其中,历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系。In step S12, the processor of the electronic device obtains historical adjustment data. Among them, historical adjustment data is used to represent the correspondence between application scenarios and screen brightness information.
一个示例中,屏幕亮度信息比如可以由用户以往的手动调节时的屏幕亮度值确定。例如,处理器采集作用于电子设备的屏幕亮度信息,每个屏幕亮度信息具有对应的手动调节时的屏幕亮度值,处理器将其存储于历史调节数据。每个应用场景信息下均具有与屏幕亮度信息之间的对应关系,用户在使用过程中,会根据自己的喜好以及当前的应用场景信息,去进行手动调节屏幕亮度,使其处于某一个亮度值,以满足当前的使用需求。其中,每个应用场景信息对应一个屏幕亮度信息,用户在不同的环境下,可能需求不同,使得用户多次调节,进而应用场景信息对应一个或者多个手动调节时的屏幕亮度值。In one example, the screen brightness information may be determined by the screen brightness value when the user manually adjusted it in the past. For example, the processor collects screen brightness information acting on the electronic device. Each screen brightness information has a corresponding screen brightness value during manual adjustment, and the processor stores it in historical adjustment data. Each application scenario information has a corresponding relationship with the screen brightness information. During use, the user will manually adjust the screen brightness to a certain brightness value based on his own preferences and the current application scenario information. , to meet current usage needs. Among them, each application scene information corresponds to a piece of screen brightness information. Users may have different needs in different environments, causing the user to adjust it multiple times, and the application scene information corresponds to one or more screen brightness values when manually adjusted.
处理器采集到用户手动调节下的屏幕亮度值时,可以对离散性的因素进行预过滤处理(pre-filtering),即对其进行分类。每个类别均具有一个对应关系。对应关系比如可以是对应关系表,便于查找,还比如可以是一条独立的目标亮度调节模型,直观查看。When the processor collects the screen brightness value manually adjusted by the user, it can pre-filter the discrete factors, that is, classify them. Each category has a corresponding relationship. The correspondence relationship can be, for example, a correspondence relationship table for easy search, or it can be an independent target brightness adjustment model for intuitive viewing.
示例性地,处理器采集到用户A手动调节了屏幕亮度时,比如调节至50nit(尼特)、200nit等,获取目标应用场景信息,确定目标应用场景信息中离散性因素的类别。如离散性因素中的使用日期为工作日,用户A在地理位置信息为某个常驻地址时,使用了短视频APP, 处理器采集当前的屏幕亮度信息,将其做成对应关系,并存储于历史调节数据。For example, the processor collects when user A manually adjusts the screen brightness, such as adjusting it to 50nit (nit), 200nit, etc., obtains the target application scenario information, and determines the category of discrete factors in the target application scenario information. For example, if the usage date in the discrete factor is a working day and user A uses the short video APP when the geographical location information is a certain resident address, the processor collects the current screen brightness information, makes a corresponding relationship, and stores it. based on historical adjustment data.
示例性地,处理器采集到用户B手动调节了屏幕亮度时,比如调节至100nit、300nit等,获取目标应用场景信息,确定目标应用场景信息中离散性因素的类别。如离散性因素中的使用日期为非工作日,用户B在地理位置信息为某个常驻地址时,使用了微博APP,则处理器采集当前的屏幕亮度信息,将其做成对应关系,并存储于历史调节数据。For example, the processor collects when user B manually adjusts the screen brightness, such as adjusting it to 100nit, 300nit, etc., obtains the target application scenario information, and determines the category of discrete factors in the target application scenario information. If the usage date in the discrete factor is a non-working day, and user B uses the Weibo APP when the geographical location information is a certain resident address, the processor collects the current screen brightness information and makes a corresponding relationship. And stored in historical adjustment data.
另一个示例中,屏幕亮度信息比如可以由预设推荐亮度调节模型确定,预设推荐亮度调节模型在出厂前设置于处理器内。每个应用场景信息下,对应预设屏幕亮度信息,每个预设屏幕亮度信息对应一个预设屏幕亮度值。当处理器未采集到作用于电子设备的屏幕亮度信息时,则表示用户并未手动调节过屏幕亮度,则目标应用场景信息与对应的屏幕亮度信息之间的对应关系可以依据于预设推荐亮度调节模型进行确定。In another example, the screen brightness information may be determined by a preset recommended brightness adjustment model, which is set in the processor before leaving the factory. Each application scene information corresponds to preset screen brightness information, and each preset screen brightness information corresponds to a preset screen brightness value. When the processor does not collect the screen brightness information acting on the electronic device, it means that the user has not manually adjusted the screen brightness. The corresponding relationship between the target application scene information and the corresponding screen brightness information can be based on the preset recommended brightness. Adjustment model is determined.
S13、根据历史调节数据和目标应用场景信息,确定推荐亮度信息。S13. Determine recommended brightness information based on historical adjustment data and target application scene information.
在步骤S13中,处理器根据历史调节数据和应用场景信息,确定推荐亮度信息。当处理器获取到目标应用场景信息时,以遍历方式对历史调节数据进行搜查,以找到与目标应用场景信息对应的屏幕亮度信息,处理器对屏幕亮度信息进行处理和分析,以确定推荐亮度信息。In step S13, the processor determines recommended brightness information based on historical adjustment data and application scene information. When the processor obtains the target application scenario information, it searches the historical adjustment data in a traversal manner to find the screen brightness information corresponding to the target application scenario information. The processor processes and analyzes the screen brightness information to determine the recommended brightness information. .
一个示例中,当处理器采集到用户手动调节时的屏幕亮度值时,则表示用户手动调节过屏幕,处理器根据用户以往手动调节过的屏幕亮度值,确定屏幕亮度信息。In one example, when the processor collects the screen brightness value when the user manually adjusted it, it means that the user has manually adjusted the screen, and the processor determines the screen brightness information based on the screen brightness value that the user has manually adjusted in the past.
其中,推荐亮度信息比如是用户最有可能期望的屏幕亮度值,用户最有可能期望的屏幕亮度值比如可以是选择用户以往手动调节时的屏幕亮度值中的任意一个,或者,也可以是基于用户以往手动调节时的屏幕亮度值,权衡出更加合理的屏幕亮度值。Among them, the recommended brightness information is, for example, the screen brightness value that the user is most likely to expect. The screen brightness value that the user is most likely to expect can be, for example, any one of the screen brightness values that the user has manually adjusted in the past, or it can be based on The screen brightness value when the user manually adjusted it in the past was weighed to arrive at a more reasonable screen brightness value.
由于用户喜好的不确定性和多变性,可以采用密度聚类的概率算法来计算用户最有可能期望的屏幕亮度值,或者,采用深度学习神经网络来模拟更为复杂的非线性关系,以确定用户最有可能期望的屏幕亮度值。Due to the uncertainty and variability of user preferences, the probability algorithm of density clustering can be used to calculate the screen brightness value that the user is most likely to expect, or a deep learning neural network can be used to simulate more complex nonlinear relationships to determine The screen brightness value that the user is most likely to expect.
另一个示例中,当处理器未采集到用户手动调节时的屏幕亮度值时,则表示用户未手动调节过屏幕,处理器可以根据预设推荐亮度调节模型,确定目标应用场景信息对应的屏幕亮度信息,处理器对屏幕亮度信息进行处理和分析,确定推荐亮度信息。其中,为了简化处理和分析过程,快速判断推荐亮度信息,屏幕亮度信息可以与推荐亮度信息相对应,以屏幕亮度信息作为推荐亮度信息。In another example, when the processor does not collect the screen brightness value when the user manually adjusts it, it means that the user has not manually adjusted the screen. The processor can determine the screen brightness corresponding to the target application scenario information based on the preset recommended brightness adjustment model. Information, the processor processes and analyzes the screen brightness information to determine the recommended brightness information. Among them, in order to simplify the processing and analysis process and quickly determine the recommended brightness information, the screen brightness information can correspond to the recommended brightness information, and the screen brightness information is used as the recommended brightness information.
S14、根据推荐亮度信息调节电子设备的屏幕亮度。S14. Adjust the screen brightness of the electronic device according to the recommended brightness information.
在步骤S14中,处理器根据推荐亮度信息调节电子设备的屏幕亮度,使电子设备的屏幕亮度满足用户的需求。推荐亮度信息比如是推荐屏幕亮度值,推荐屏幕亮度值比如可以是但 不限于10nit、100nit、500nit。In step S14, the processor adjusts the screen brightness of the electronic device according to the recommended brightness information so that the screen brightness of the electronic device meets the user's needs. The recommended brightness information is, for example, a recommended screen brightness value. The recommended screen brightness value may be, for example, but is not limited to 10nit, 100nit, or 500nit.
本实施例中的方法,可以通过对每个用户做针对性的推荐亮度调节,基于应用场景信息和屏幕亮度信息之间的对应关系,确定推荐亮度信息,满足用户的需求。通过应用场景信息和用户以往的手动调节时的屏幕亮度值,权衡出满足用户需求的推荐屏幕亮度值,更加符合每个用户的个人需求,提升用户的使用体验。The method in this embodiment can make targeted recommended brightness adjustments for each user and determine the recommended brightness information based on the correspondence between the application scene information and the screen brightness information to meet the user's needs. Through the application scene information and the user's previous manual adjustment of the screen brightness value, the recommended screen brightness value that meets the user's needs is weighed, which is more in line with each user's personal needs and improves the user's experience.
图2是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图,如图2所示,屏幕亮度的调节方法用于电子设备中,电子设备包括处理器,用于存储处理器可执行指令的存储器。其中,历史调节数据包括目标亮度调节模型,屏幕亮度的调节方法包括以下步骤:Figure 2 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment. As shown in Figure 2, the method for adjusting screen brightness is used in an electronic device. The electronic device includes a processor for storing the processor. Memory for executable instructions. Among them, the historical adjustment data includes the target brightness adjustment model, and the screen brightness adjustment method includes the following steps:
S21、获取对应于同一应用场景信息的历史屏幕亮度信息。S21. Obtain historical screen brightness information corresponding to the same application scene information.
在步骤S21中,处理器获取从历史调节数据中获取位于同一应用场景信息中的历史屏幕亮度信息。其中,基于目标应用场景信息的分类,同一使用时间内,使用了相同的应用程序信息,由于用户的喜好和需求随时变化,使其可能多次调节屏幕亮度,产生多个屏幕亮度信息,形成历史屏幕亮度信息,处理器能够获取到与位于同一应用场景信息中的所有的历史屏幕亮度信息。In step S21, the processor obtains historical screen brightness information located in the same application scene information from historical adjustment data. Among them, based on the classification of target application scenario information, the same application information is used during the same usage period. Since the user's preferences and needs change at any time, the user may adjust the screen brightness multiple times, generating multiple screen brightness information, forming a history. For screen brightness information, the processor can obtain all historical screen brightness information located in the same application scene information.
S22、根据历史屏幕亮度信息,确定目标亮度信息。S22. Determine target brightness information based on historical screen brightness information.
在步骤S22中,处理器根据所有历史屏幕亮度信息,确定目标亮度信息。其中,目标亮度信息为基于每个历史屏幕亮度信息的加权运算值。In step S22, the processor determines target brightness information based on all historical screen brightness information. The target brightness information is a weighted operation value based on each historical screen brightness information.
多个历史屏幕亮度信息能够表征出用户平时对屏幕的期望亮度值,计算出多个历史屏幕亮度信息之间的加权运算值,也就是多个历史屏幕亮度信息之间的加权平均值,即可推算出用户对电子设备的屏幕亮度的需求,确定目标亮度信息。多个屏幕亮度信息比如分别为35nit、40nit、45nit,则目标亮度信息为40nit。Multiple historical screen brightness information can represent the user's usual expected brightness value of the screen, and the weighted operation value between multiple historical screen brightness information can be calculated, which is the weighted average value between multiple historical screen brightness information, that is, Calculate the user's demand for the screen brightness of the electronic device and determine the target brightness information. For example, if multiple screen brightness information are 35nit, 40nit, and 45nit respectively, then the target brightness information is 40nit.
一个示例中,参照图3所示,在步骤S22中,根据目标亮度信息,生成目标亮度调节模型,还包括以下步骤:In an example, referring to Figure 3, in step S22, generating a target brightness adjustment model based on the target brightness information also includes the following steps:
S221、确定每个历史屏幕亮度信息的权重信息。S221. Determine the weight information of each historical screen brightness information.
在步骤S221中,处理器确定每个历史屏幕亮度信息的权重信息。其中,权重信息可以通过计算而获得。权重信息比如可以获取每个历史屏幕亮度信息的应用场景信息的二元正态概率分布。根据每个二元正态概率分布,确定每个历史屏幕亮度信息的权重信息。示例地,每个历史屏幕亮度信息的应用场景信息的二元正态概率分布可以基于应用场景信息中的环境光信息和时间信息确定。In step S221, the processor determines the weight information of each historical screen brightness information. Among them, the weight information can be obtained through calculation. The weight information is, for example, the binary normal probability distribution of the application scenario information that can be obtained for each historical screen brightness information. According to each binary normal probability distribution, the weight information of each historical screen brightness information is determined. For example, the binary normal probability distribution of the application scene information of each historical screen brightness information may be determined based on the ambient light information and time information in the application scene information.
示例性地,当确定历史屏幕亮度信息的应用场景信息时,计算二元正态概率分布,二元 正态概率分布即为权重信息,其二元正态概率分布的公式为:For example, when determining the application scenario information of historical screen brightness information, a bivariate normal probability distribution is calculated. The bivariate normal probability distribution is the weight information, and the formula of the bivariate normal probability distribution is:
Figure PCTCN2022100137-appb-000001
Figure PCTCN2022100137-appb-000001
其中,x为amb level(环境光水平,即环境光信息),y可以理解为time(时间信息),δX和δY是X和Y的方差,μX和μY是X和Y的均值,ρ是两个变量X和Y的相关系数;ρ的计算方式为:Among them, x is amb level (ambient light level, that is, ambient light information), y can be understood as time (time information), δX and δY are the variances of X and Y, μX and μY are the mean values of X and Y, and ρ is the two The correlation coefficient of variables X and Y; the calculation method of ρ is:
Figure PCTCN2022100137-appb-000002
Figure PCTCN2022100137-appb-000002
基于概率权重的计算方法能够更好的规避离群值(outlier)因素的影响,离群值也称逸出值,是指在样本数据中有一个或几个数值与其他数值相比差异较大,如果一个数值偏离样本数据平均值的概率小于等于1/(2n),则该样本数据应当舍弃(其中n为样本数据例数,概率可以根据样本数据的分布进行估计)。概率权重能够对更接近的值赋予更多的权重,提高了算法对抗手动调节亮度数据不确定性的能力,实现更精准的预测。示例地,对应于图12的手动调节时的屏幕亮度信息,新的目标亮度调节模型如图14(view from z-axis)和图15所示的推荐亮度曲线,如图14和图15中,X轴代表环境光亮度信息(ambientlight),y轴代表时间信息(minscale),时间信息比如是从0h到24h,单位为min,z轴代表手调后的目标屏幕亮度信息(brightness),图中不同颜色深度表示不同目标屏幕亮度信息,其具体数值可参照对应于图14和图15右侧柱状图;应当注意的是,在手动调节的屏幕亮度信息密集的区域,如20时到24时之间,目标亮度调节模型调整到用户过往手动调节的屏幕亮度信息亮度的数值。其中,如图15所示,可以看出新的目标亮度调节模型不遵循线性关系。对于孤立的手动调节的屏幕亮度信息的历史调节数据(例如15时和17时),因为没有满足激发推荐自动亮度的条件(后述实施例中有详细记载),所以目标亮度调节模型和没有手动调节时的屏幕亮度信息的区域一样仍然保持默认的预设推荐亮度调节模型(后述实施例中有详细记载)。The calculation method based on probability weight can better avoid the influence of outlier factors. Outliers are also called escape values. They refer to one or several values in the sample data that are significantly different from other values. , if the probability that a value deviates from the mean value of the sample data is less than or equal to 1/(2n), the sample data should be discarded (n is the number of sample data examples, and the probability can be estimated based on the distribution of the sample data). Probabilistic weighting can give more weight to closer values, improving the algorithm's ability to combat the uncertainty of manual adjustment of brightness data and achieving more accurate predictions. For example, corresponding to the screen brightness information during manual adjustment in Figure 12, the new target brightness adjustment model is the recommended brightness curve shown in Figure 14 (view from z-axis) and Figure 15. In Figure 14 and Figure 15, The X-axis represents ambient light brightness information (ambientlight), the y-axis represents time information (minscale), the time information is from 0h to 24h, for example, the unit is min, and the z-axis represents the target screen brightness information (brightness) after manual adjustment. In the figure Different color depths represent different target screen brightness information. For specific values, please refer to the histograms on the right side of Figure 14 and Figure 15. It should be noted that in manually adjusted areas with dense screen brightness information, such as between 20:00 and 24:00 time, the target brightness adjustment model is adjusted to the brightness value of the screen brightness information that the user has manually adjusted in the past. Among them, as shown in Figure 15, it can be seen that the new target brightness adjustment model does not follow a linear relationship. For the historical adjustment data of isolated manually adjusted screen brightness information (for example, 15 o'clock and 17 o'clock), because the conditions for stimulating recommended automatic brightness are not met (detailed records will be described in the embodiments described later), the target brightness adjustment model does not have manual adjustment. The area of the screen brightness information during adjustment still maintains the default preset recommended brightness adjustment model (details will be described in the embodiments described later).
由于用户对屏幕亮度的偏好会随时间发生变化,对于权重信息的算法可以具备自我更新的能力。其中,参照图4所示,在步骤S221中,根据每个二元正态概率分布,确定每个历史屏幕亮度信息的权重信息,可以通过以下步骤进行判定:Since the user's preference for screen brightness changes over time, the algorithm for weight information can have the ability to self-update. 4, in step S221, the weight information of each historical screen brightness information is determined according to each binary normal probability distribution, which can be determined through the following steps:
S2211、获取每个历史屏幕亮度信息的时间信息。S2211. Obtain the time information of each historical screen brightness information.
在步骤S2211中,处理器以遍历方式搜索历史调节数据,根据历史调节数据,确定每个 历史屏幕亮度信息的时间信息。由时间信息确定存储每个历史屏幕亮度信息的时间点,按照先后顺序进行排列,以确定早期历史屏幕亮度信息和近期的历史屏幕亮度信息。In step S2211, the processor searches historical adjustment data in a traversal manner, and determines the time information of each historical screen brightness information based on the historical adjustment data. The time point at which each historical screen brightness information is stored is determined based on the time information, and arranged in sequence to determine early historical screen brightness information and recent historical screen brightness information.
S2212、根据时间信息,确定每个历史屏幕亮度信息的权重系数。S2212. Determine the weight coefficient of each historical screen brightness information according to the time information.
在步骤S2212中,处理器根据时间信息,确定每个历史屏幕亮度信息的权重系数。对早期历史屏幕亮度信息的权重信息赋予较低的权重,对近期的历史屏幕亮度信息的权重信息赋予较高的权重。其中,权重系数比如是0.7、0.5、0.3、0等。In step S2212, the processor determines the weight coefficient of each historical screen brightness information based on the time information. The weight information of the early historical screen brightness information is given a lower weight, and the weight information of the recent historical screen brightness information is given a higher weight. Among them, the weight coefficient is, for example, 0.7, 0.5, 0.3, 0, etc.
S2213、根据权重系数和二元正态概率分布,确定每个历史屏幕亮度信息的权重信息。S2213. Determine the weight information of each historical screen brightness information based on the weight coefficient and the binary normal probability distribution.
在步骤S2213中,处理器根据权重系数和二元正态概率分布,通过计算确定每个历史屏幕亮度信息的权重信息。In step S2213, the processor determines the weight information of each historical screen brightness information through calculation according to the weight coefficient and the binary normal probability distribution.
一个示例中,根据每个历史屏幕亮度信息的时间点,将近期至早期的权重信息定义为第一二元正态概率、第二二元正态概率、第三二元正态概率、第四二元正态概率和第五二元正态概率。其中,第一二元正态概率所赋予的权重系数为0.7,即第一二元正态概率乘以0.7,进而得到更新后的权重信息。第二二元正态概率所赋予的权重系数为0.5,即第二二元正态概率乘以0.5,进而得到更新后的权重信息。第三二元正态概率所赋予的权重系数为0.3,即第三二元正态概率乘以0.3,进而得到更新后的权重信息。而第四二元正态概率和第五二元正态概率属于早期手动调节的样本数据,而日期更晚的时间点越能够符合用户喜好,日期越早越脱离用户当前的喜好和需求,通过赋予权重系数可以忘记早期的屏幕亮度信息,实现自动更新的能力,满足用户的个人需求,随着用户对屏幕亮度偏好的改变而调整,提升用户的使用体验。In one example, based on the time point of each historical screen brightness information, the recent to early weight information is defined as the first binary normal probability, the second binary normal probability, the third binary normal probability, and the fourth binary normal probability. Bivariate normal probability and fifth bivariate normal probability. Among them, the weight coefficient assigned to the first binary normal probability is 0.7, that is, the first binary normal probability is multiplied by 0.7 to obtain the updated weight information. The weight coefficient assigned to the second binary normal probability is 0.5, that is, the second binary normal probability is multiplied by 0.5 to obtain the updated weight information. The weight coefficient assigned to the third binary normal probability is 0.3, that is, the third binary normal probability is multiplied by 0.3 to obtain the updated weight information. The fourth binary normal probability and the fifth binary normal probability belong to early manually adjusted sample data, and the later time point is more in line with the user's preferences, and the earlier the date, the more out of touch with the user's current preferences and needs. Giving a weighting coefficient can forget the early screen brightness information, realize the ability of automatic updating, meet the user's personal needs, and adjust as the user's preference for screen brightness changes, improving the user experience.
S222、根据权重信息和历史屏幕亮度信息,确定目标亮度信息。S222. Determine the target brightness information based on the weight information and historical screen brightness information.
在步骤S222中,处理器根据权重信息和历史屏幕亮度信息,确定目标亮度信息。其中,每个权重信息和对应的历史屏幕亮度信息的乘积之间的平均值即为确定目标亮度信息。In step S222, the processor determines target brightness information based on the weight information and historical screen brightness information. Among them, the average value between the product of each weight information and the corresponding historical screen brightness information is the determined target brightness information.
S23、根据目标亮度信息和对应的应用场景信息,生成目标亮度调节模型。S23. Generate a target brightness adjustment model based on the target brightness information and corresponding application scene information.
在步骤S23中,处理器根据目标亮度信息,生成目标亮度调节模型。其中,目标亮度信息可以直接定义为目标亮度值,并构建形成目标亮度调节模型,确定方式更加直观,提升屏幕亮度调节时的效率。或者,可以赋予目标亮度信息权重,以便于换算成目标亮度值,并构建形成新的目标亮度调节模型。In step S23, the processor generates a target brightness adjustment model based on the target brightness information. Among them, the target brightness information can be directly defined as the target brightness value, and a target brightness adjustment model can be constructed to make the determination method more intuitive and improve the efficiency of screen brightness adjustment. Alternatively, the target brightness information can be given a weight to convert it into a target brightness value, and a new target brightness adjustment model can be constructed.
目标亮度调节模型中的数值即可表示为推荐亮度信息。其中,推荐亮度信息比如满足以下公式:The numerical values in the target brightness adjustment model can be expressed as recommended brightness information. Among them, the recommended brightness information satisfies the following formula:
Figure PCTCN2022100137-appb-000003
Figure PCTCN2022100137-appb-000003
历史屏幕亮度信息为同一使用时间内,所有的手动调节过的屏幕亮度值,其中,i=1,n为该使用时间内所有手动调节过的屏幕亮度的次数。二元正态概率为同一使用时间内,所有调节屏幕亮度的次数所对应的概率之和。The historical screen brightness information is all manually adjusted screen brightness values within the same usage period, where i=1 and n is the number of manually adjusted screen brightness values within the usage period. The binary normal probability is the sum of the probabilities corresponding to all the times the screen brightness is adjusted during the same usage period.
本实施例中的方法,当处理器以遍历方式搜查历史调节数据时,当查询到历史调节数据中对应于同一应用场景信息中的历史屏幕亮度信息时,表示用户手动调节过屏幕亮度,处理器基于历史屏幕亮度信息,确定目标亮度信息,由目标亮度信息和对应的应用场景信息,生成目标亮度调节模型,满足用户的需求。其中,由于用户的偏好随着时间会出现变化,对不同日期的权重信息,赋予不同的权重系数,以更新权重信息,跟随用户的偏好随时调整,提升用户的使用体验,满足用户的需求。且权重信息由二元正态概率确定,能够更好的规避离群值因素的影响,提高了算法对抗手动调节亮度数据不确定性的能力,提升推荐的精准度。对不同时间点的权重信息赋予不同的系数,将过早的历史屏幕亮度信息忘记,进一步实现自我更新的能力。In the method in this embodiment, when the processor searches historical adjustment data in a traversal manner, and when it queries the historical screen brightness information corresponding to the same application scenario information in the historical adjustment data, it means that the user has manually adjusted the screen brightness, and the processor Based on the historical screen brightness information, the target brightness information is determined, and the target brightness adjustment model is generated from the target brightness information and the corresponding application scene information to meet the user's needs. Among them, since the user's preferences will change over time, different weight coefficients are assigned to the weight information on different dates to update the weight information and adjust it at any time according to the user's preferences to improve the user experience and meet the user's needs. And the weight information is determined by binary normal probability, which can better avoid the influence of outlier factors, improve the algorithm's ability to resist the uncertainty of manual adjustment of brightness data, and improve the accuracy of recommendations. Assign different coefficients to the weight information at different time points, forget the premature historical screen brightness information, and further realize the ability of self-updating.
图5是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图,如图5所示,屏幕亮度的调节方法用于电子设备中,电子设备包括处理器,用于存储处理器可执行指令的存储器,屏幕亮度的调节方法包括以下步骤:Figure 5 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment. As shown in Figure 5, the method for adjusting screen brightness is used in an electronic device. The electronic device includes a processor for storing the processor. In the memory of executable instructions, the method of adjusting screen brightness includes the following steps:
S31、获取目标应用场景信息。S31. Obtain target application scenario information.
S32、获取历史调节数据。S32. Obtain historical adjustment data.
S33、以遍历方式搜查历史调节数据。S33. Search historical adjustment data in a traversal manner.
在步骤S33中,处理器以遍历方式搜查历史调节数据。In step S33, the processor searches historical adjustment data in a traversal manner.
S34、确定历史调节数据中是否存在屏幕亮度信息。S34. Determine whether screen brightness information exists in the historical adjustment data.
在步骤S34中,处理器查询过程中,若存在与目标应用场景信息对应的屏幕亮度信息,则执行步骤S37-步骤S39;若不存在与目标应用场景信息对应的屏幕亮度信息,则执行步骤S35。In step S34, during the processor query process, if there is screen brightness information corresponding to the target application scene information, steps S37 to S39 are executed; if there is no screen brightness information corresponding to the target application scene information, step S35 is executed. .
S35、获取预设推荐亮度调节模型。S35. Obtain the preset recommended brightness adjustment model.
在步骤S35中,获取预设推荐亮度调节模型,预设推荐亮度调节模型为出厂前存储于处理器中,以便于为调整屏幕亮度提供依据。预设推荐亮度调节模型比如可以预先设定每种应用场景下,均具有一个独立的调整模型,预设推荐亮度调节模型中每个预设推荐亮度值与应用场景信息存在对应关系。In step S35, a preset recommended brightness adjustment model is obtained. The preset recommended brightness adjustment model is stored in the processor before leaving the factory to provide a basis for adjusting the screen brightness. For example, the preset recommended brightness adjustment model can be preset to have an independent adjustment model for each application scenario. Each preset recommended brightness value in the preset recommended brightness adjustment model has a corresponding relationship with the application scenario information.
S36、基于与目标应用场景信息对应的预设推荐亮度调节模型调整屏幕亮度。S36. Adjust the screen brightness based on the preset recommended brightness adjustment model corresponding to the target application scene information.
在步骤S36中,处理器采用与目标应用场景信息对应的预设推荐亮度调节模型调整屏幕的亮度。当处理器检测到用户处于目标应用场景信息中,根据预设推荐亮度调节模型查找与目标应用场景信息对应调节模型,基于该调节模型,确定预设推荐自动亮度值,以预设推荐自动亮度值调整电子设备的屏幕亮度。In step S36, the processor adjusts the brightness of the screen using a preset recommended brightness adjustment model corresponding to the target application scene information. When the processor detects that the user is in the target application scene information, it searches for an adjustment model corresponding to the target application scene information according to the preset recommended brightness adjustment model. Based on the adjustment model, it determines the preset recommended automatic brightness value to use the preset recommended automatic brightness value. Adjust the screen brightness of electronic devices.
其中,预设推荐亮度调节模型可以基于环境光信息,制定对应的调节曲线,也可以采集不同用户的喜好,用作样本数据,对其进行建模分析,推算出对应的调节曲线,具体以实际设计为准,在此,不对其进一步限定。采集不同用户的喜好比如可以依据于不同的用户信息,进行数据采集,每个用户在应用过程中,可以依据个人意愿,将用户信息以及应用场景信息上传云端,为数据提供分析支持。Among them, the preset recommended brightness adjustment model can formulate corresponding adjustment curves based on ambient light information, or it can collect the preferences of different users and use them as sample data, conduct modeling analysis on them, and calculate the corresponding adjustment curves. Specifically, based on actual The design shall prevail and shall not be further limited here. For example, the preferences of different users can be collected based on different user information. During the application process, each user can upload user information and application scenario information to the cloud based on his or her personal wishes to provide analysis support for the data.
S37、获取历史调节数据中,与目标应用场景信息对应的屏幕亮度信息。S37. Obtain the screen brightness information corresponding to the target application scene information in the historical adjustment data.
S38、根据屏幕亮度信息,确定目标亮度信息。S38. Determine the target brightness information according to the screen brightness information.
S39、根据目标亮度信息,确定推荐自动亮度信息。S39. Determine the recommended automatic brightness information based on the target brightness information.
步骤S37-步骤S39所实施的方法与步骤S33-步骤S35中所实施的方法相同,在此,不再重复赘述。The methods implemented in steps S37 to S39 are the same as the methods implemented in steps S33 to S35, and will not be repeated here.
本实施例中的方法,由处理器搜查历史调节数据的方式,确定历史调节数据中是否存在屏幕亮度信息,进而确定用户是否手动调节了屏幕亮度,若不存在手动调节屏幕亮度,则表示用户对预设推荐亮度调节模型比较满意,处理器基于预设推荐亮度调节模型调整电子设备的屏幕亮度,使当前的屏幕亮度满足用户对目标应用场景信息下的用眼需求,提升用户的视觉效果。The method in this embodiment uses the processor to search historical adjustment data to determine whether there is screen brightness information in the historical adjustment data, and then determine whether the user has manually adjusted the screen brightness. If there is no manual adjustment of the screen brightness, it means that the user has not manually adjusted the screen brightness. The preset recommended brightness adjustment model is quite satisfactory. The processor adjusts the screen brightness of the electronic device based on the preset recommended brightness adjustment model so that the current screen brightness meets the user's eye needs for the target application scene information and improves the user's visual effect.
图6是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图,如图6所示,屏幕亮度的调节方法用于电子设备中,电子设备包括处理器,用于存储处理器可执行指令的存储器,屏幕亮度的调节方法包括以下步骤:Figure 6 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment. As shown in Figure 6, the method for adjusting screen brightness is used in an electronic device. The electronic device includes a processor for storing the processor. In the memory of executable instructions, the method of adjusting screen brightness includes the following steps:
S41、获取作用于电子设备的目标屏幕亮度信息。S41. Obtain the target screen brightness information acting on the electronic device.
在步骤S41中,处理器获取作用于电子设备的目标屏幕亮度信息。目标屏幕亮度信息为当前应用场景信息下,用户手动调节后的屏幕亮度值。In step S41, the processor obtains target screen brightness information acting on the electronic device. The target screen brightness information is the screen brightness value manually adjusted by the user under the current application scene information.
一个示例中,屏幕内设置有传感器,当用户的触摸屏幕,想要调节屏幕亮度值时,用户对亮度调节条进行操作。处理器采集到用户调出了亮度调节界面,并调节了屏幕亮度值,处理器获取到该屏幕亮度值,屏幕亮度值比如调节至100nit,或者其他满足用户需求的屏幕亮度值。In one example, a sensor is provided in the screen. When the user touches the screen and wants to adjust the screen brightness value, the user operates the brightness adjustment bar. The processor collects that the user has called up the brightness adjustment interface and adjusted the screen brightness value. The processor obtains the screen brightness value. For example, the screen brightness value is adjusted to 100nit, or other screen brightness values that meet the user's needs.
其中,亮度调节界面比如可以设置于电子设备的下拉通知栏内,也可以设置于屏幕显示界面的任意位置,或者通过预设手势,调出亮度调节界面,为用户展示亮度调节条,方便用户对其进行调节。Among them, the brightness adjustment interface can be set in the drop-down notification bar of the electronic device, or can be set at any position on the screen display interface, or the brightness adjustment interface can be brought up through preset gestures to display the brightness adjustment bar to the user to facilitate the user. It adjusts.
当用户手动调节完成时,可以上滑下拉通知栏,以隐藏亮度调节条。或者,用户点击亮度调节条以外的位置,则处理器隐藏亮度调节条。或者,预设时长内,处理器未获取到亮度调节条的任何操作,则处理器隐藏亮度调节条。When the user completes manual adjustment, he can slide the notification bar up and down to hide the brightness adjustment bar. Or, if the user clicks a position other than the brightness adjustment bar, the processor hides the brightness adjustment bar. Or, if the processor does not obtain any operation of the brightness adjustment bar within the preset time period, the processor hides the brightness adjustment bar.
亮度调节条可以包括滑动条,以便于用户滑动调节其亮度。亮度调节条还可以包括“+”“-”键,以便于用户可以点击“+”“-”键,精准调节其亮度。亮度调节条还包括关闭键,以便于用户可以快速关闭自动推荐亮度调节功能。其中,关闭键可以以图形形式表示,也可以以文字形式表示,或者以符号形式进行表示,具体以实际设计为准。The brightness adjustment bar may include a slide bar to facilitate the user to slide and adjust its brightness. The brightness adjustment bar can also include "+" and "-" keys, so that the user can click the "+" and "-" keys to accurately adjust the brightness. The brightness adjustment bar also includes a close key so that users can quickly turn off the automatic recommended brightness adjustment function. Among them, the close key can be expressed in graphic form, text form, or symbolic form, which shall be subject to the actual design.
S42、根据目标屏幕亮度信息调节电子设备的屏幕亮度。S42. Adjust the screen brightness of the electronic device according to the target screen brightness information.
在步骤S42中,处理器根据目标屏幕亮度信息,调节电子设备的屏幕亮度。当处理器采集到该屏幕亮度值时,发出控制指令至屏幕,以控制电子设备的屏幕亮度以目标屏幕亮度信息进行显示。In step S42, the processor adjusts the screen brightness of the electronic device according to the target screen brightness information. When the processor collects the screen brightness value, it sends a control instruction to the screen to control the screen brightness of the electronic device to display the target screen brightness information.
S43、将目标屏幕亮度信息,以及与目标屏幕亮度信息对应的应用场景信息存储至历史调节数据。S43. Store the target screen brightness information and the application scene information corresponding to the target screen brightness information into historical adjustment data.
在步骤S43中,处理器将该目标屏幕亮度信息以及与目标屏幕亮度信息对应的应用场景信息存储至历史调节数据。其中,在目标应用场景信息下,用户手动调节了屏幕亮度,则表示预设推荐亮度调节模型设置的预设推荐自动亮度值并不能满足用户当前的需求,处理器可以将目标屏幕亮度信息以及当前对应的应用场景信息存储至历史调节数据,以便于作为样本数据,为生成目标亮度调节模型提供数据支持。In step S43, the processor stores the target screen brightness information and the application scene information corresponding to the target screen brightness information into historical adjustment data. Among them, if the user manually adjusts the screen brightness under the target application scenario information, it means that the preset recommended automatic brightness value set by the preset recommended brightness adjustment model cannot meet the user's current needs. The processor can combine the target screen brightness information and the current The corresponding application scenario information is stored in the historical adjustment data so as to be used as sample data to provide data support for generating the target brightness adjustment model.
本实施例中的方法,通过获取用户作用于电子设备的目标屏幕亮度信息,目标屏幕亮度信息为用户当前手动调节时的屏幕亮度信息值,屏幕以用户当前的手动调节时的屏幕亮度值进行显示,满足用户当前的需求。且将该屏幕亮度信息和对应的应用场景信息同步存储于历史调节数据内,以便于未来应用的目标亮度调节模型提供数据支持,实现针对性信息的存储,制定用户个人化的屏幕亮度设计,满足不同用户的需求,提升用户的使用体验。The method in this embodiment obtains the target screen brightness information that the user acts on the electronic device. The target screen brightness information is the screen brightness information value when the user currently adjusts manually, and the screen displays the screen brightness value when the user currently adjusts manually. , to meet the current needs of users. And the screen brightness information and the corresponding application scenario information are synchronously stored in the historical adjustment data, so as to provide data support for the target brightness adjustment model of future applications, realize the storage of targeted information, and formulate the user's personalized screen brightness design to meet the needs of the user. Meet the needs of different users and improve the user experience.
其中,参照图7所示,在步骤S43中,将目标屏幕亮度信息,以及与目标屏幕亮度信息对应的应用场景信息存储至历史调节数据。还包括以下步骤:Referring to FIG. 7 , in step S43 , the target screen brightness information and the application scene information corresponding to the target screen brightness information are stored in the historical adjustment data. Also includes the following steps:
S431、将目标屏幕亮度信息,以及与目标屏幕亮度信息对应的应用场景信息作为样本数据。S431. Use the target screen brightness information and the application scene information corresponding to the target screen brightness information as sample data.
在步骤S431中,处理器将对于屏幕亮度调节的目前屏幕亮度信息,以及与目标屏幕亮度信息对应的应用场景信息,作为样本数据。其中,样本数据可以包括多个对于屏幕亮度调节的目标屏幕亮度信息。例如,当用户A在多天内的22点,使用微信时,均手动调节了屏幕亮度,则对于屏幕亮度调节的每个目标屏幕亮度信息,以及对应的应用场景信息,均用作样本数据。In step S431, the processor uses the current screen brightness information for screen brightness adjustment and the application scene information corresponding to the target screen brightness information as sample data. The sample data may include a plurality of target screen brightness information for screen brightness adjustment. For example, when user A manually adjusted the screen brightness when using WeChat at 22:00 on multiple days, the screen brightness information for each target of the screen brightness adjustment and the corresponding application scenario information were used as sample data.
S432、对样本数据进行分析,以确定样本数据是否满足激发推荐自动亮度的条件。S432. Analyze the sample data to determine whether the sample data meets the conditions for triggering the recommended automatic brightness.
在步骤S432中,处理器对样本数据进行分析,以确定样本数据是否满足激发推荐自动亮度的条件。由于用户手调屏幕亮度时,有偶然性和误调的可能,可以设定激发推荐自动亮度生效的条件,以便于确定样本数据是否为有效数据。In step S432, the processor analyzes the sample data to determine whether the sample data meets the conditions for triggering the recommended automatic brightness. Since there is a possibility of accidental and mis-adjustment when the user manually adjusts the screen brightness, you can set the conditions that trigger the recommended automatic brightness to take effect, so as to determine whether the sample data is valid data.
其中,步骤S432中,对样本数据进行分析,以确定样本数据是否满足激发推荐自动亮度的条件,包括以下步骤:Among them, in step S432, the sample data is analyzed to determine whether the sample data meets the conditions for triggering recommended automatic brightness, including the following steps:
S4321、根据样本数据,确定样本数据中的目标屏幕亮度信息的分布状态。S4321. According to the sample data, determine the distribution status of the target screen brightness information in the sample data.
在步骤S4321中,处理器根据样本数据,确定样本数据中的目标屏幕亮度信息的分布状态。其中,确定样本数据中的目标屏幕亮度信息的分布状态可以利用密度聚类(density-based clustering)的方法计算每个目标屏幕亮度信息的二元正态概率分布(bivariate Gaussian Distribution)进行确定。二元正态概率分布的公式为:In step S4321, the processor determines the distribution state of the target screen brightness information in the sample data based on the sample data. Among them, the distribution status of the target screen brightness information in the sample data can be determined by calculating the bivariate Gaussian Distribution of each target screen brightness information using the density-based clustering method. The formula for the bivariate normal probability distribution is:
Figure PCTCN2022100137-appb-000004
Figure PCTCN2022100137-appb-000004
其中,x为amb level(环境光水平,也即环境光亮度信息),y可以理解为time(时间),δX和δY是X和Y的方差,μX和μY是X和Y的均值,ρ是两个变量X和Y的相关系数;ρ的计算方式为:Among them, x is amb level (ambient light level, that is, ambient light brightness information), y can be understood as time (time), δX and δY are the variances of X and Y, μX and μY are the mean values of X and Y, and ρ is The correlation coefficient of two variables X and Y; ρ is calculated as:
Figure PCTCN2022100137-appb-000005
Figure PCTCN2022100137-appb-000005
例如,用户目前处于的类别为短视频APP,处理器通过传感器采集到当前的环境光亮度为12lux,使用时间为22点,处理器获取到调节了若干次屏幕亮度,产生多个样本数据。其中,调节若干次表示为用户在调节过程中,往往不能一次就调节到最满意的状态,当觉得调节的屏幕亮度不合适时,需要多次调节直至达到最满意的屏幕亮度。通过二元正态概率分布计算时,可以确定当前使用时间内,二元正态概率f的概率较大,用户在这个使用时间内调整了屏幕亮度的可能性很大。For example, the category that the user is currently in is a short video APP. The processor collects through the sensor that the current ambient light brightness is 12lux and the usage time is 22 o'clock. The processor obtains that the screen brightness has been adjusted several times and generates multiple sample data. Among them, adjusting several times means that during the adjustment process, users often cannot adjust to the most satisfactory state in one go. When they feel that the adjusted screen brightness is inappropriate, they need to adjust it multiple times until they reach the most satisfactory screen brightness. When calculated through the binary normal probability distribution, it can be determined that the probability of the binary normal probability f is relatively large during the current usage time, and the user is very likely to adjust the screen brightness during this usage time.
而用户在调节过程中,也可能存在误触的情况。例如,用户目前处于的类别为短视频APP,处理器通过传感器采集到当前的环境光亮度为1ux,使用时间为2点,处理器获取到调节了一次屏幕亮度。通过二元正态概率分布计算时,可以确定当前使用时间内,二元正态概率f的概率较小,用户在该使用时间误触的可能性很大。There may also be accidental touches during the adjustment process. For example, the category that the user is currently in is a short video APP. The processor collects through the sensor that the current ambient light brightness is 1ux and the usage time is 2 o'clock. The processor obtains and adjusts the screen brightness once. When calculated through the binary normal probability distribution, it can be determined that the probability of the binary normal probability f is small during the current use time, and the user is highly likely to accidentally touch it during this use time.
S4322、对目标屏幕亮度信息的分布状态进行分析,确定样本数据中相邻的两个样本值的关联性。S4322. Analyze the distribution status of the target screen brightness information and determine the correlation between two adjacent sample values in the sample data.
在步骤S4332中,处理器对目标屏幕亮度信息的分布状态进行分析,确定样本数据中相邻的两个样本值的关联性。其中,关联性表征为用户在特定的环境光亮度和特定的使用时间内,用户手调屏幕亮度可能性的大小。如果关联性越强,说明用户手调屏幕亮度的可能性越大,而不是误触,如果关联性越弱,说明用户误触的可能性越大。In step S4332, the processor analyzes the distribution state of the target screen brightness information and determines the correlation between two adjacent sample values in the sample data. Among them, the correlation is represented by the possibility of the user manually adjusting the screen brightness under a specific ambient light brightness and a specific usage time. If the correlation is stronger, it means that the user is more likely to manually adjust the screen brightness instead of accidentally touching it. If the correlation is weaker, it means that the user is more likely to accidentally touch it.
一个示例中,在某个类别中,处理器收集到多个目标屏幕亮度信息,参照图12所示,图12中的X轴代表环境光亮度信息(ambientlight),y轴代表时间信息(minscale),时间信息比如是从0h到24h,单位为min,z轴代表手调后的目标屏幕亮度信息(brightness),图12中不同颜色深度表示不同目标屏幕亮度信息,其数值对应于图12右侧柱状图。为了确认样本数据中相邻的两个样本值的关联性,利用密度聚类(density-based clustering)的方法计算每个目标屏幕亮度信息的应用场景信息的二元正态概率分布(bivariate Gaussian Distribution),根据二元正态概率分布情况,确定两个样本值的关联性。比如,当环境光亮度信息为12lux,使用时间为22点时,该点的二元正太概率分布参照图13所示,图13中,X轴代表amb level(环境光水平,也即环境光亮度信息),Y轴代表time(时间信息),柱形图表示表示不同坐标点之间的相关性(如相关系数,其表征对应坐标点关联度的概率)。若第二个点离该点越近,概率就越大,代表两个点关联性越强,相反如果两个点距离越远,概率越小,关联性越弱。In one example, in a certain category, the processor collects multiple target screen brightness information, as shown in Figure 12. The X-axis in Figure 12 represents ambient light brightness information (ambientlight), and the y-axis represents time information (minscale). , the time information is from 0h to 24h, for example, the unit is min, and the z-axis represents the target screen brightness information (brightness) after manual adjustment. Different color depths in Figure 12 represent different target screen brightness information, and their values correspond to the right side of Figure 12 Bar chart. In order to confirm the correlation between two adjacent sample values in the sample data, the density-based clustering method is used to calculate the bivariate Gaussian Distribution of the application scenario information of each target screen brightness information. ), determine the correlation between two sample values based on the binary normal probability distribution. For example, when the ambient light brightness information is 12lux and the usage time is 22 o'clock, the binary normal probability distribution of this point is shown in Figure 13. In Figure 13, the X-axis represents amb level (ambient light level, that is, ambient light brightness) information), the Y-axis represents time (time information), and the bar chart represents the correlation between different coordinate points (such as the correlation coefficient, which represents the probability of the correlation degree of the corresponding coordinate point). If the second point is closer to this point, the greater the probability, which means the stronger the correlation between the two points. On the contrary, if the distance between the two points is farther, the probability is smaller and the correlation is weaker.
例如,两个目标屏幕亮度信息所形成的概率比如分别为f 1=0.6和f 2=0.65,则两个概率都很大,且都大于0.5,说明两个样本值的关联性较强。 For example, if the probabilities formed by two target screen brightness information are f 1 =0.6 and f 2 =0.65 respectively, then both probabilities are very large and both are greater than 0.5, indicating that the correlation between the two sample values is strong.
S4323、基于关联性,确定样本数据是否满足激发推荐自动亮度的条件。S4323. Based on the correlation, determine whether the sample data meets the conditions for stimulating automatic brightness recommendation.
在步骤S4323中,处理器根据关联性,以确定样本数据是否满足激发推荐自动亮度的条件。关联性越强的样本数据,即满足激发推荐自动亮度的条件,则响应于样本数据满足激发推荐自动亮度的条件,执行步骤S433,若关联性越弱的样本数据,则不满足激发推荐自动亮度的条件,响应于样本数据不满足激发推荐自动亮度的条件,执行步骤S434。In step S4323, the processor determines whether the sample data satisfies the conditions for triggering the recommended automatic brightness according to the correlation. The sample data with a stronger correlation, that is, it satisfies the conditions for stimulating the automatic brightness recommendation. In response to the sample data meeting the conditions for stimulating the automatic brightness recommendation, step S433 is executed. If the sample data has a weaker correlation, it does not satisfy the conditions for stimulating the automatic brightness recommendation. condition, in response to the sample data not meeting the conditions for activating the recommended automatic brightness, step S434 is executed.
其中,当样本数据中,至少一个目标屏幕亮度信息的应用场景信息的概率分布位于大于 0.5的位置上,或者,至少两个目标屏幕亮度信息的应用场景信息的概率分布位于大于0.625的位置上,则满足激发推荐自动亮度的条件。Wherein, when in the sample data, the probability distribution of the application scenario information of at least one target screen brightness information is located at a position greater than 0.5, or the probability distribution of the application scenario information of at least two target screen brightness information is located at a position greater than 0.625, Then the conditions for triggering recommended automatic brightness are met.
S433、响应于样本数据满足激发推荐自动亮度的条件,将样本数据记录至历史调节数据。S433. In response to the sample data meeting the conditions for triggering the recommended automatic brightness, record the sample data to historical adjustment data.
在步骤S433中,处理器将满足激发推荐自动亮度的条件的样本数据记录至历史调节数据,以备生成目标亮度调节模型使用。In step S433, the processor records the sample data that satisfies the conditions for triggering the recommended automatic brightness into historical adjustment data in preparation for generating a target brightness adjustment model.
S434、舍弃样本数据。S434. Discard the sample data.
本实施例中的方法,当样本数据中,至少一个屏幕亮度的概率分布位于大于0.5的位置上,或者,至少两个屏幕亮度的概率分布位于大于0.625的位置上,则满足激发推荐自动亮度的条件,有效避免误调对目标亮度调节模型造成较大的影响,提升推荐自动调节的准确性,提升用户的使用体验。According to the method in this embodiment, when in the sample data, the probability distribution of at least one screen brightness is located at a position greater than 0.5, or at least two screen brightness probability distributions are located at a position greater than 0.625, then the conditions for triggering recommended automatic brightness are met. conditions, effectively preventing misadjustment from having a greater impact on the target brightness adjustment model, improving the accuracy of recommended automatic adjustment, and improving the user experience.
可以理解的是,上述所有目标屏幕亮度信息,存储于历史数据中时,会形成历史屏幕亮度信息,即充当历史屏幕亮度信息,以便于后续计算使用。It can be understood that all the above target screen brightness information, when stored in historical data, will form historical screen brightness information, that is, serve as historical screen brightness information to facilitate subsequent calculation and use.
图8是根据一示例性实施例示出的一种屏幕亮度的调节方法的流程图,如图8所示,屏幕亮度的调节方法用于电子设备中,电子设备包括处理器和传感器,用于存储处理器可执行指令的存储器,传感器用于获取环境光亮度信息和屏幕亮度信息,屏幕亮度的调节方法包括以下步骤:Figure 8 is a flow chart of a method for adjusting screen brightness according to an exemplary embodiment. As shown in Figure 8, the method for adjusting screen brightness is used in an electronic device. The electronic device includes a processor and a sensor for storing The processor is a memory that can execute instructions. The sensor is used to obtain ambient light brightness information and screen brightness information. The method of adjusting screen brightness includes the following steps:
S61、获取当前屏幕亮度信息和环境光亮度信息。S61. Obtain current screen brightness information and ambient light brightness information.
在步骤S61中,传感器分别采集当前屏幕亮度信息和环境光亮度信息,处理器与传感器通信连接,使处理器能够获取到当前屏幕亮度信息和环境光亮度信息。In step S61, the sensor collects the current screen brightness information and the ambient light brightness information respectively, and the processor is communicatively connected with the sensor so that the processor can obtain the current screen brightness information and the ambient light brightness information.
S62、当当前屏幕亮度信息和环境光亮度信息的差值的绝对值大于预设阈值,显示警示信息。S62. When the absolute value of the difference between the current screen brightness information and the ambient light brightness information is greater than the preset threshold, a warning message is displayed.
在步骤S62中,处理器将当前屏幕亮度信息和环境光亮度信息进行比较,以确定当前屏幕亮度信息和环境光亮度信息的差值。当当前屏幕亮度信息和环境光亮度信息的差值的绝对值大于预设阈值时,显示警示信息。其中,显示警示信息比如可以以弹窗的形式,显示于屏幕的显示界面内,提示用户当前屏幕亮度信息与当前环境下的环境光亮度信息不匹配,应当调节屏幕亮度信息。显示警示信息比如还可以直接是以声音的形式,提示于用户,当当前屏幕亮度信息与当前环境下的环境光亮度信息不匹配时,可以发出提示语音,提示语音比如为不安全、屏幕亮度不规范等警示性用语。In step S62, the processor compares the current screen brightness information and the ambient light brightness information to determine the difference between the current screen brightness information and the ambient light brightness information. When the absolute value of the difference between the current screen brightness information and the ambient light brightness information is greater than the preset threshold, a warning message is displayed. Among them, the display warning information may be displayed in the display interface of the screen in the form of a pop-up window, prompting the user that the current screen brightness information does not match the ambient light brightness information in the current environment, and the screen brightness information should be adjusted. For example, the warning information may be displayed directly in the form of sound to remind the user. When the current screen brightness information does not match the ambient light brightness information in the current environment, a prompt voice may be issued. The prompt voice may be, for example, unsafe or the screen brightness is not sufficient. Standards and other warning words.
当显示警示信息时,处理器可以发出调节屏幕亮度的指令,使当前屏幕亮度信息与环境光亮度信息相匹配,保护用户的眼睛。When a warning message is displayed, the processor can issue instructions to adjust the screen brightness so that the current screen brightness information matches the ambient light brightness information to protect the user's eyes.
本实施例中的方法,通过计算当前屏幕亮度信息和环境光亮度信息的差值,确定用户当前的使用方式是否不当。若使用不当,则显示警示信息,提醒用户改变当前屏幕亮度信息,避免用户养成不良的使用习惯,保护人眼。比如,当用户长时间注视手机时,环境光亮度信息为10lux,当前环境较为昏暗,用户将屏幕亮度信息调节至100nit,使其屏幕亮度较亮,会对人眼产生刺激,造成伤害。当用户长时间注视手机时,环境光亮度信息为100lux,当前环境较为明亮,用户将屏幕亮度信息调节至10nit,使其屏幕亮度较暗,长时间注视会造成人眼疲劳,甚至是不可逆的伤害。本公开中通过显示警示信息,尽量引导用户的屏幕亮度保持在合适的亮度区间内,保护人体健康。The method in this embodiment determines whether the user's current usage is inappropriate by calculating the difference between the current screen brightness information and the ambient light brightness information. If used improperly, a warning message will be displayed to remind the user to change the current screen brightness information to prevent users from developing bad usage habits and protect human eyes. For example, when the user stares at the mobile phone for a long time, the ambient light brightness information is 10lux and the current environment is relatively dim. The user adjusts the screen brightness information to 100nit to make the screen brighter, which will irritate the human eyes and cause damage. When the user stares at the phone for a long time, the ambient light brightness information is 100lux. The current environment is relatively bright. The user adjusts the screen brightness information to 10nit, making the screen brightness darker. Long-term gaze will cause eye fatigue and even irreversible damage. . In this disclosure, warning information is displayed to try to guide the user's screen brightness to remain within an appropriate brightness range to protect human health.
在此,需要说明的是,本公开中的方法不限于监控屏幕亮度信息,还可以监控用户的使用时长,若用户使用时间过长,则也可以显示警示信息,并将屏幕调节为暖色调,使其屏幕亮度保持在最佳保护人眼的状态。和/或,本公开中的方法还可以监控屏幕显示界面的显示内容,确定显示内容的光谱。其中,蓝光谱对人眼的伤害最大,会影响用户的睡眠质量,若用户长时间观看具有蓝光谱的内容,则应当显示警示信息,提醒用户,引导用户保护眼睛。本公开中的监控方法可以通过推荐自动亮度模型设置,设置人眼健康的具体条件和数值,以纠正用户的不良使用习惯,保护用户身体健康。Here, it should be noted that the method in the present disclosure is not limited to monitoring screen brightness information, but can also monitor the user's usage time. If the user's usage time is too long, a warning message can also be displayed and the screen can be adjusted to warm colors. Keep its screen brightness at the best state to protect human eyes. And/or, the method in the present disclosure can also monitor the display content of the screen display interface and determine the spectrum of the displayed content. Among them, the blue spectrum is the most harmful to human eyes and will affect the user's sleep quality. If the user watches content with blue spectrum for a long time, a warning message should be displayed to remind the user and guide the user to protect their eyes. The monitoring method in this disclosure can set specific conditions and values for human eye health by recommending automatic brightness model settings to correct the user's bad usage habits and protect the user's health.
本公开所提出的屏幕亮度的调节方法,利用密度聚类的概率算法或者深度学习神经网络来模拟更为复杂的非线性关系,引入应用场景信息,并对其进行归类,根据应用场景信息细化用户的需求,对每个用户做针对性调节设计。其中,应用场景信息包括以下至少二者:环境光亮度信息、应用程序信息、时间信息、地理位置信息;其中,时间信息包括使用时间和使用日期。The screen brightness adjustment method proposed in this disclosure uses the probability algorithm of density clustering or the deep learning neural network to simulate more complex nonlinear relationships, introduces application scenario information, and classifies it, and details it according to the application scenario information. Customize the needs of users and make targeted adjustments and designs for each user. The application scenario information includes at least two of the following: ambient light brightness information, application program information, time information, and geographical location information; where the time information includes usage time and usage date.
由目标应用场景信息内的多个因素和历史调节数据中用户手动调节时的历史屏幕亮度信息,自动计算出目标亮度调节模型,以便于在未来的相同应用场景信息中,输出用户期望的屏幕亮度值,基于目标亮度调节模型,确定与该相同应用场景信息对应的屏幕亮度信息,为电子设备的屏幕亮度进行调节,满足不同用户的需求。The target brightness adjustment model is automatically calculated based on multiple factors in the target application scenario information and the historical screen brightness information when the user manually adjusts the historical adjustment data, so as to output the screen brightness expected by the user in the same application scenario information in the future. value, based on the target brightness adjustment model, determine the screen brightness information corresponding to the same application scene information, and adjust the screen brightness of the electronic device to meet the needs of different users.
由于用户的喜好具有不确定性和多变性,利用密度聚类的概率算法计算用户最有可能期望的屏幕亮度值,能够更好的规避离群值因素的影响,提高了算法对抗手动调节亮度数据不确定性的能力,实现更精准的预测。且以概率方式计算每个手动调节时的屏幕亮度,确定屏幕亮度信息之间的关联性,降低不确定因素所造成的影响,更好的预测用户的需求。Due to the uncertainty and variability of user preferences, using the probability algorithm of density clustering to calculate the screen brightness value that the user is most likely to expect can better avoid the influence of outlier factors and improve the algorithm's resistance to manual adjustment of brightness data. The ability to reduce uncertainty and achieve more accurate predictions. It also calculates the screen brightness for each manual adjustment in a probabilistic manner, determines the correlation between screen brightness information, reduces the impact of uncertain factors, and better predicts user needs.
而还可以利用深度学习神经网络替换密度聚类算法来模拟更为复杂的非线性关系,以便于生成目标亮度调节模型,提升准确性。Deep learning neural networks can also be used to replace density clustering algorithms to simulate more complex nonlinear relationships, so as to generate target brightness adjustment models and improve accuracy.
本公开中设置人眼保护机制,及时提醒用户不良的使用习惯,避免损害人体健康,实现更加人性化的设计。This disclosure is provided with a human eye protection mechanism to promptly remind users of bad usage habits to avoid damage to human health and achieve a more humane design.
图9是根据一示例性实施例示出的一种屏幕亮度的调节装置的框图。参照图9,该装置包括第一获取模块700,第二获取模块710、确定模块720和调节模块730。FIG. 9 is a block diagram of a device for adjusting screen brightness according to an exemplary embodiment. Referring to FIG. 9 , the device includes a first acquisition module 700 , a second acquisition module 710 , a determination module 720 and an adjustment module 730 .
第一获取模块700被配置为,用于获取目标应用场景信息。第二获取模块710被配置为,用于获取历史调节数据,历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系。确定模块720被配置为,用于根据历史调节数据和目标应用场景信息,确定推荐亮度信息。调节模块730被配置为,用于根据推荐亮度信息调节电子设备的屏幕亮度。The first acquisition module 700 is configured to acquire target application scenario information. The second acquisition module 710 is configured to acquire historical adjustment data, where the historical adjustment data is used to represent the correspondence between the application scene and the screen brightness information. The determination module 720 is configured to determine recommended brightness information based on historical adjustment data and target application scene information. The adjustment module 730 is configured to adjust the screen brightness of the electronic device according to the recommended brightness information.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图10是根据一示例性实施例示出的一种电子设备800的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 10 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
参照图10,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。Referring to FIG. 10 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power supply component 806 , a multimedia component 808 , an audio component 810 , an input/output (I/O) interface 812 , and a sensor component 814 , and communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。 Processing component 802 generally controls the overall operations of electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operations at device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。 Power supply component 806 provides power to various components of electronic device 800 . Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一 些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。 Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor component 814 includes one or more sensors for providing various aspects of status assessment for electronic device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor component 814 can also detect the electronic device 800 or a component of the electronic device 800. changes in position, the presence or absence of user contact with the electronic device 800 , the orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门 阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 800 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由电子设备800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which can be executed by the processor 820 of the electronic device 800 to complete the above method is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行一种屏幕亮度的调节方法,所述方法包括:A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a method for adjusting screen brightness, the method comprising:
获取目标应用场景信息。获取历史调节数据,历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系。根据历史调节数据和目标应用场景信息,确定推荐亮度信息。根据推荐亮度信息调节电子设备的屏幕亮度。Obtain target application scenario information. Obtain historical adjustment data, which is used to represent the correspondence between application scenarios and screen brightness information. Determine recommended brightness information based on historical adjustment data and target application scenario information. Adjust the screen brightness of the electronic device based on recommended brightness information.
图11是根据一示例性实施例示出的一种用于屏幕亮度的调节装置900的框图。例如,装置900可以被提供为一服务器。参照图11,装置900包括处理组件922,其进一步包括一个或多个处理器,以及由存储器932所代表的存储器资源,用于存储可由处理组件922的执行的指令,例如应用程序。存储器932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件922被配置为执行指令,以执行上述方法。FIG. 11 is a block diagram of a device 900 for adjusting screen brightness according to an exemplary embodiment. For example, device 900 may be provided as a server. 11, apparatus 900 includes a processing component 922, which further includes one or more processors, and memory resources represented by memory 932 for storing instructions, such as application programs, executable by processing component 922. The application program stored in memory 932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 922 is configured to execute instructions to perform the above-described method.
装置900还可以包括一个电源组件926被配置为执行装置900的电源管理,一个有线或无线网络接口950被配置为将装置900连接到网络,和一个输入输出(I/O)接口958。装置900可以操作基于存储在存储器932的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。 Device 900 may also include a power supply component 926 configured to perform power management of device 900, a wired or wireless network interface 950 configured to connect device 900 to a network, and an input-output (I/O) interface 958. Device 900 may operate based on an operating system stored in memory 932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It is to be understood that the present invention is not limited to the precise construction described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
工业实用性Industrial applicability
本公开中的方法通过应用场景与屏幕亮度信息之间的对应关系,找到与目标应用场景信息对应的推荐亮度信息,为用户进行调节屏幕亮度,根据应用场景,细化用户的需求,输出用户期望的亮度值,使其更加贴合用户实际的亮度需求,提升用户的使用体验。The method in this disclosure finds the recommended brightness information corresponding to the target application scene information through the correspondence between the application scene and the screen brightness information, adjusts the screen brightness for the user, refines the user's needs according to the application scene, and outputs the user's expectations The brightness value makes it more suitable for the actual brightness needs of users and improves the user experience.

Claims (14)

  1. 一种屏幕亮度的调节方法,其中,所述屏幕亮度的调节方法包括:A method for adjusting screen brightness, wherein the method for adjusting screen brightness includes:
    获取目标应用场景信息;Obtain target application scenario information;
    获取历史调节数据,所述历史调节数据用于表征应用场景信息与屏幕亮度信息之间的对应关系;Obtain historical adjustment data, which is used to represent the correspondence between application scene information and screen brightness information;
    根据所述历史调节数据和所述目标应用场景信息,确定推荐亮度信息;Determine recommended brightness information based on the historical adjustment data and the target application scene information;
    根据所述推荐亮度信息调节电子设备的屏幕亮度。Adjust the screen brightness of the electronic device according to the recommended brightness information.
  2. 根据权利要求1所述的屏幕亮度的调节方法,其中,所述历史调节数据包括目标亮度调节模型,所述屏幕亮度的调节方法还包括:The method for adjusting screen brightness according to claim 1, wherein the historical adjustment data includes a target brightness adjustment model, and the method for adjusting screen brightness further includes:
    获取对应于同一应用场景信息的历史屏幕亮度信息;Obtain historical screen brightness information corresponding to the same application scene information;
    根据所述历史屏幕亮度信息,确定目标亮度信息;其中,所述目标亮度信息为基于每个历史屏幕亮度信息的加权运算值;Determine target brightness information according to the historical screen brightness information; wherein the target brightness information is a weighted calculation value based on each historical screen brightness information;
    根据所述目标亮度信息和对应的应用场景信息,生成目标亮度调节模型。According to the target brightness information and corresponding application scene information, a target brightness adjustment model is generated.
  3. 根据权利要求2所述的屏幕亮度的调节方法,其中,所述根据所述历史屏幕亮度信息,确定目标亮度信息,包括:The method for adjusting screen brightness according to claim 2, wherein determining the target brightness information based on the historical screen brightness information includes:
    确定每个所述历史屏幕亮度信息的权重信息;Determine the weight information of each historical screen brightness information;
    根据所述权重信息和所述历史屏幕亮度信息,确定目标亮度信息。Target brightness information is determined based on the weight information and the historical screen brightness information.
  4. 根据权利要求3所述的屏幕亮度的调节方法,其中,所述确定每个所述历史屏幕亮度信息的权重信息,包括:The method for adjusting screen brightness according to claim 3, wherein the determining the weight information of each historical screen brightness information includes:
    获取每个所述历史屏幕亮度信息的应用场景信息的二元正态概率分布;Obtain the binary normal probability distribution of the application scenario information of each historical screen brightness information;
    根据每个所述二元正态概率分布,确定每个所述历史屏幕亮度信息的权重信息。According to each of the binary normal probability distributions, the weight information of each of the historical screen brightness information is determined.
  5. 根据权利要求4所述的屏幕亮度的调节方法,其中,所述根据每个所述二元正态概率分布,确定每个所述历史屏幕亮度信息的所述权重信息,包括:The method for adjusting screen brightness according to claim 4, wherein determining the weight information of each historical screen brightness information according to each binary normal probability distribution includes:
    获取每个所述历史屏幕亮度信息的时间信息;Obtain the time information of each historical screen brightness information;
    根据所述时间信息,确定每个所述历史屏幕亮度信息的权重系数;Determine a weight coefficient for each historical screen brightness information according to the time information;
    根据所述权重系数和所述二元正态概率分布,确定每个所述历史屏幕亮度信息的权重信息。According to the weight coefficient and the binary normal probability distribution, the weight information of each of the historical screen brightness information is determined.
  6. 根据权利要求1所述的屏幕亮度的调节方法,其中,所述屏幕亮度的调节方法,还包括:The method for adjusting screen brightness according to claim 1, wherein the method for adjusting screen brightness further includes:
    以遍历方式搜查所述历史调节数据,若不存在与所述目标应用场景信息对应的屏幕亮度信息,则获取预设推荐亮度调节模型;Search the historical adjustment data in a traversal manner, and if there is no screen brightness information corresponding to the target application scene information, obtain a preset recommended brightness adjustment model;
    基于与所述目标应用场景信息对应的预设推荐亮度调节模型调整屏幕亮度。Adjust the screen brightness based on a preset recommended brightness adjustment model corresponding to the target application scene information.
  7. 根据权利要求1所述的屏幕亮度的调节方法,其中,所述屏幕亮度的调节方法还包括:The method for adjusting screen brightness according to claim 1, wherein the method for adjusting screen brightness further includes:
    获取作用于所述电子设备的目标屏幕亮度信息;所述目标屏幕亮度信息用于表征手动调节后的屏幕亮度信息;Obtain target screen brightness information acting on the electronic device; the target screen brightness information is used to represent the manually adjusted screen brightness information;
    根据所述目标屏幕亮度信息调节所述电子设备的屏幕亮度;Adjust the screen brightness of the electronic device according to the target screen brightness information;
    将所述目标屏幕亮度信息,以及与所述目标屏幕亮度信息对应的应用场景信息存储至所述历史调节数据。The target screen brightness information and the application scene information corresponding to the target screen brightness information are stored in the historical adjustment data.
  8. 根据权利要求7所述的屏幕亮度的调节方法,其中,所述将所述目标屏幕亮度信息,以及与所述目标屏幕亮度信息对应的应用场景信息存储至所述历史调节数据,包括:The method for adjusting screen brightness according to claim 7, wherein the storing the target screen brightness information and the application scene information corresponding to the target screen brightness information into the historical adjustment data includes:
    将所述目标屏幕亮度信息,以及与所述目标屏幕亮度信息对应的应用场景信息作为样本数据;Use the target screen brightness information and the application scene information corresponding to the target screen brightness information as sample data;
    响应于所述样本数据满足激发推荐自动亮度的条件,将所述样本数据记录至历史调节数据。In response to the sample data satisfying a condition for triggering the recommended automatic brightness, the sample data is recorded to historical adjustment data.
  9. 根据权利要求8所述的屏幕亮度的调节方法,其中,所述响应于所述样本数据满足激发推荐自动亮度的条件,将所述样本数据记录至历史调节数据,包括:The method for adjusting screen brightness according to claim 8, wherein recording the sample data to historical adjustment data in response to the sample data meeting conditions for stimulating recommended automatic brightness includes:
    根据所述样本数据,确定所述样本数据中的目标屏幕亮度信息的分布状态;According to the sample data, determine the distribution state of the target screen brightness information in the sample data;
    对所述目标屏幕亮度信息的分布状态进行分析,确定所述样本数据中相邻的两个样本值的关联性;Analyze the distribution state of the target screen brightness information and determine the correlation between two adjacent sample values in the sample data;
    基于所述关联性,响应于所述样本数据满足激发推荐自动亮度的条件,将所述样本数据记录至历史调节数据。Based on the correlation, in response to the sample data satisfying a condition for triggering recommended automatic brightness, the sample data is recorded to historical adjustment data.
  10. 根据权利要求1所述的屏幕亮度的调节方法,其中,所述屏幕亮度的调节方法还包括:The method for adjusting screen brightness according to claim 1, wherein the method for adjusting screen brightness further includes:
    获取当前屏幕亮度信息和环境光亮度信息;Get the current screen brightness information and ambient light brightness information;
    当所述当前屏幕亮度信息和所述环境光亮度信息的差值的绝对值大于预设阈值,显示警示信息。When the absolute value of the difference between the current screen brightness information and the ambient light brightness information is greater than a preset threshold, warning information is displayed.
  11. 根据权利要求1所述的屏幕亮度的调节方法,其中,所述应用场景信息包括以下至少二者:The method for adjusting screen brightness according to claim 1, wherein the application scene information includes at least two of the following:
    环境光亮度信息、应用程序信息、时间信息、地理位置信息;其中,时间信息包括使用 时间和使用日期。Ambient light brightness information, application information, time information, and geographical location information; among which, time information includes usage time and usage date.
  12. 一种屏幕亮度的调节装置,应用于电子设备,其中,包括:A screen brightness adjustment device, applied to electronic equipment, including:
    第一获取模块,用于获取目标应用场景信息;The first acquisition module is used to acquire target application scenario information;
    第二获取模块,用于获取历史调节数据,所述历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系;The second acquisition module is used to acquire historical adjustment data, where the historical adjustment data is used to represent the correspondence between the application scenario and the screen brightness information;
    确定模块,用于根据所述历史调节数据和所述目标应用场景信息,确定推荐亮度信息;A determination module configured to determine recommended brightness information based on the historical adjustment data and the target application scene information;
    调节模块,用于根据所述推荐亮度信息调节所述电子设备的屏幕亮度。An adjustment module, configured to adjust the screen brightness of the electronic device according to the recommended brightness information.
  13. 一种电子设备,其中,包括:An electronic device, including:
    处理器;processor;
    用于存储处理器可执行指令的存储器;Memory used to store instructions executable by the processor;
    其中,所述处理器被配置为:Wherein, the processor is configured as:
    获取目标应用场景信息;Obtain target application scenario information;
    获取历史调节数据,所述历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系;Obtain historical adjustment data, which is used to represent the correspondence between the application scene and the screen brightness information;
    根据所述历史调节数据和所述目标应用场景信息,确定推荐亮度信息;Determine recommended brightness information based on the historical adjustment data and the target application scene information;
    根据所述推荐亮度信息调节电子设备的屏幕亮度。Adjust the screen brightness of the electronic device according to the recommended brightness information.
  14. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行一种屏幕亮度的调节方法,所述方法包括:A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a method for adjusting screen brightness, the method comprising:
    获取目标应用场景信息;Obtain target application scenario information;
    获取历史调节数据,所述历史调节数据用于表征应用场景与屏幕亮度信息之间的对应关系;Obtain historical adjustment data, which is used to characterize the correspondence between application scenarios and screen brightness information;
    根据所述历史调节数据和所述目标应用场景信息,确定推荐亮度信息;Determine recommended brightness information based on the historical adjustment data and the target application scene information;
    根据所述推荐亮度信息调节电子设备的屏幕亮度。Adjust the screen brightness of the electronic device according to the recommended brightness information.
PCT/CN2022/100137 2022-06-21 2022-06-21 Screen brightness adjustment method and apparatus, and electronic device and medium WO2023245417A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/100137 WO2023245417A1 (en) 2022-06-21 2022-06-21 Screen brightness adjustment method and apparatus, and electronic device and medium
CN202280004340.4A CN117616496A (en) 2022-06-21 2022-06-21 Screen brightness adjusting method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/100137 WO2023245417A1 (en) 2022-06-21 2022-06-21 Screen brightness adjustment method and apparatus, and electronic device and medium

Publications (1)

Publication Number Publication Date
WO2023245417A1 true WO2023245417A1 (en) 2023-12-28

Family

ID=89378745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/100137 WO2023245417A1 (en) 2022-06-21 2022-06-21 Screen brightness adjustment method and apparatus, and electronic device and medium

Country Status (2)

Country Link
CN (1) CN117616496A (en)
WO (1) WO2023245417A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010107805A (en) * 2008-10-31 2010-05-13 Koyo Electronics Ind Co Ltd Electronic device with display screen
CN107507602A (en) * 2017-09-22 2017-12-22 深圳天珑无线科技有限公司 Screen intensity Automatic adjustment method, terminal and storage medium
CN108877741A (en) * 2018-07-27 2018-11-23 维沃移动通信有限公司 A kind of screen luminance adjustment method and terminal device
CN109271014A (en) * 2017-07-18 2019-01-25 华为终端(东莞)有限公司 A kind of method and apparatus adjusting screen intensity
CN109951596A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Adjusting method, device, storage medium and the mobile terminal of screen intensity
WO2021169402A1 (en) * 2020-02-26 2021-09-02 华为技术有限公司 Screen brightness adjustment method and electronic device
CN114283761A (en) * 2021-12-23 2022-04-05 展讯通信(天津)有限公司 Screen brightness adjusting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010107805A (en) * 2008-10-31 2010-05-13 Koyo Electronics Ind Co Ltd Electronic device with display screen
CN109271014A (en) * 2017-07-18 2019-01-25 华为终端(东莞)有限公司 A kind of method and apparatus adjusting screen intensity
CN107507602A (en) * 2017-09-22 2017-12-22 深圳天珑无线科技有限公司 Screen intensity Automatic adjustment method, terminal and storage medium
CN109951596A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Adjusting method, device, storage medium and the mobile terminal of screen intensity
CN108877741A (en) * 2018-07-27 2018-11-23 维沃移动通信有限公司 A kind of screen luminance adjustment method and terminal device
WO2021169402A1 (en) * 2020-02-26 2021-09-02 华为技术有限公司 Screen brightness adjustment method and electronic device
CN114283761A (en) * 2021-12-23 2022-04-05 展讯通信(天津)有限公司 Screen brightness adjusting method and device

Also Published As

Publication number Publication date
CN117616496A (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN107582028B (en) Sleep monitoring method and device
CN109920418B (en) Method and device for adjusting awakening sensitivity
CN106250430B (en) Method and device for sorting intelligent device list
CN109189185B (en) Terminal temperature adjusting method and device
CN107454204B (en) User information labeling method and device
CN107666536B (en) Method and device for searching terminal
CN111128091A (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN110717399A (en) Face recognition method and electronic terminal equipment
WO2023245417A1 (en) Screen brightness adjustment method and apparatus, and electronic device and medium
CN112000305A (en) Screen color temperature adjusting method and device
CN111951787A (en) Voice output method, device, storage medium and electronic equipment
US10739913B2 (en) Protective film detection method and apparatus, and storage medium
CN107896277B (en) Method and device for setting alarm clock reminding mode and computer readable storage medium
CN107734303B (en) Video identification method and device
CN111539617B (en) Data processing method and device, electronic equipment, interaction system and storage medium
CN109752087B (en) Environment information determination method and device
CN113870195A (en) Target map detection model training and map detection method and device
CN109088920B (en) Evaluation method, device and equipment of intelligent sound box and storage medium
CN112951162A (en) Display screen and control method and device thereof
CN113190725B (en) Object recommendation and model training method and device, equipment, medium and product
CN110457560B (en) Method for obtaining click rate and related device
WO2023240490A1 (en) Method and device for adjusting screen brightness, and storage medium
CN115225702B (en) Information pushing method and device, electronic equipment and storage medium
CN114187874B (en) Brightness adjusting method, device and storage medium
WO2016065819A1 (en) Method and device for smart metric calculation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22947197

Country of ref document: EP

Kind code of ref document: A1