Method for obtaining brightness adjustment relationship, computer device and storage medium

By obtaining the target probability distribution function and the expected function, the mapping relationship between screen brightness and drag amplitude is optimized, solving the problem of repeated dragging when adjusting screen brightness, and achieving fewer drag operations and a better user experience.

CN115064106BActive Publication Date: 2026-01-16GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210622923.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2026-01-16
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

In existing technologies, when users adjust screen brightness by dragging, they often have to drag repeatedly to adjust to the desired brightness, resulting in inconvenience and excessive dragging.

Method used

By obtaining the target probability distribution function and expectation function corresponding to the target subjective brightness, the mapping relationship between screen brightness and drag amplitude is determined. Based on the user's historical brightness adjustment data, the brightness adjustment relationship is optimized to reduce the number of drag operations.

Benefits of technology

The number of drag operations during brightness adjustment has been reduced, improving the user experience and ensuring that the difference between the actual adjusted brightness and the target subjective brightness is small.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115064106B_ABST
    Figure CN115064106B_ABST
Patent Text Reader

Abstract

The application discloses a brightness adjustment relationship acquisition method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a target probability distribution function corresponding to a target subjective brightness and an expected function of a target deviation represented by a target deviation, wherein the target deviation is used for representing the difference between the brightness to which the screen is adjusted and the target subjective brightness; acquiring the target probability distribution function based on the conversion relationship between the target subjective brightness and the screen brightness and the screen brightness to which the historical dragging operation is adjusted; acquiring a first mapping relationship between the dragging amplitude and the target variable when the expected function meets a preset expected condition based on the target probability distribution function; and determining the second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship based on the first mapping relationship. The brightness adjustment relationship acquired by the method can reduce the number of dragging operations during brightness adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic devices, and more particularly, to a method and apparatus for obtaining a brightness adjustment relationship, a computer device, and a storage medium. BACKGROUND

[0002] With the rapid progress of science and technology and living standards, electronic devices (such as smart phones, tablet computers, etc.) have become one of the commonly used electronic products in people's lives. When people use electronic devices, there is usually a need to actively adjust the screen brightness. In the related art, when a user actively adjusts the screen brightness, the user usually adjusts the screen brightness by a dragging operation. However, when the screen brightness is adjusted by the dragging operation, repeated dragging is required to adjust to the required brightness. SUMMARY

[0003] The present application provides a method and apparatus for obtaining a brightness adjustment relationship, a computer device, and a storage medium, which can obtain an accurate brightness adjustment relationship to reduce the number of dragging operations when adjusting the brightness.

[0004] In a first aspect, the embodiments of the present application provide a method for obtaining a brightness adjustment relationship, which includes: obtaining a target probability distribution function corresponding to a target subjective brightness and an expected function represented by a target deviation, the target deviation being used to represent the difference between the brightness adjusted by the screen and the target subjective brightness, wherein the target probability distribution function is determined based on the conversion relationship between the target subjective brightness and the screen brightness and the screen brightness adjusted by the historical dragging operation, and the expected function is determined based on the target probability distribution function; based on the target probability distribution function, obtaining a first mapping relationship between the dragging amplitude and the target variable when the expected function satisfies a preset expected condition, the dragging amplitude being the amplitude of the dragging operation used to adjust the screen brightness, and the target variable being a variable corresponding to the screen brightness adjusted by the historical dragging operation; and determining a second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship based on the first mapping relationship.

[0005] In a second aspect, the embodiments of the present application provide a computer device, which includes: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to execute the brightness adjustment relationship obtaining method provided in the first aspect.

[0006] In a third aspect, the embodiments of the present application provide a computer readable storage medium, which stores program codes. The program codes can be invoked by a processor to execute the method for obtaining the brightness adjustment relationship provided in the first aspect.

[0007] The method provided by the embodiments of the present application comprises the following steps: obtaining a target probability distribution function corresponding to a target subjective brightness and an expected function of a target deviation, the target deviation being used to represent a difference between a brightness adjusted by a screen and the target subjective brightness, the target probability distribution function being determined based on a conversion relationship between the target subjective brightness and a screen brightness and a screen brightness adjusted by a historical dragging operation, and the expected function being determined based on the target probability distribution function; obtaining a first mapping relationship between a dragging range and a target variable when the expected function satisfies a preset expected condition, the dragging range being a range dragged by a dragging operation used to adjust the screen brightness, and the target variable being a variable corresponding to the screen brightness adjusted by the historical dragging operation; and determining a second mapping relationship between the screen brightness and the dragging range as the brightness adjustment relationship based on the first mapping relationship. Thus, the brightness adjustment relationship in which the expected value of the target deviation can satisfy the preset expected condition can be determined based on the screen brightness adjusted by the user, and the number of times of the dragging operation during the brightness adjustment can be reduced. BRIEF DESCRIPTION OF DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.

[0009] Figure 1 A schematic diagram of an application environment provided by the embodiments of the present application is shown.

[0010] Figure 2 A flowchart of a method for obtaining a brightness adjustment relationship according to an embodiment of the present application is shown.

[0011] Figure 3 A flowchart of a method for obtaining a brightness adjustment relationship according to another embodiment of the present application is shown.

[0012] Figure 4 An effect schematic diagram provided by the embodiments of the present application is shown.

[0013] Figure 5 A flowchart of a method for obtaining a brightness adjustment relationship according to another embodiment of the present application is shown.

[0014] Figure 6A block diagram of an apparatus for acquiring a brightness adjustment relationship according to an embodiment of the present application is shown.

[0015] Figure 7 is a block diagram of a computer device for executing the method for acquiring a brightness adjustment relationship according to an embodiment of the present application.

[0016] Figure 8 is a storage unit for storing or carrying program code for implementing the method for acquiring a brightness adjustment relationship according to an embodiment of the present application. DETAILED DESCRIPTION

[0017] To make persons skilled in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application.

[0018] With the progress of science and technology, many electronic devices have the function of automatically adjusting the screen brightness, for example, automatically adjusting the screen brightness according to the detected ambient light intensity, so that the screen brightness matches the ambient light brightness, and for example, when the battery power is lower than the power threshold, the screen brightness is reduced to save power. However, in many cases, users still have the need to actively adjust the screen brightness. Among them, adjusting the screen brightness through a drag operation is a common way to actively adjust the screen brightness, for example, the electronic device displays a drag bar for adjusting the brightness in the display interface, and adjusts the screen brightness according to the drag amplitude of the drag operation (which can also be regarded as a sliding operation) on the drag bar.

[0019] When adjusting the screen brightness through a drag operation, the electronic device needs to adjust the brightness of the screen based on the corresponding relationship between the screen brightness and the drag amplitude, and according to the detected drag amplitude. In related technologies, the corresponding relationship between the screen brightness and the drag amplitude is usually linear, power exponential or logarithmic. Among them, assuming that the brightness corresponding to the lowest drag bar dragged by the user is R min , the brightness corresponding to the maximum drag bar is R max , R is the screen brightness, x (0≤x≤1) is the percentage of the drag amplitude,

[0020] The linear relationship is:

[0021]

[0022] The power exponential relationship is:

[0023]

[0024] The logarithmic relationship is:

[0025]

[0026] In the linear relationship described above, the drag bar length corresponding to low light is very short. However, low ambient light scenarios are common, and the subjective perception of brightness and the actual brightness have a logarithmic relationship. Therefore, the demand for dragging to low light is very high. But in a linear relationship, precise dragging in low light requires very small drag amplitudes, leading to inconvenience in operation. Furthermore, a linear relationship can cause the actual adjusted screen brightness to be greater than the desired target brightness. It is evident that a linear relationship easily leads to repeated dragging, requiring users to spend a considerable amount of time adjusting to the desired screen brightness, and multiple adjustments require very small drag amplitudes to achieve the desired brightness.

[0027] The power function relationship is an improvement over the linear function relationship, but the problem still exists. The logarithmic relationship conforms to the Weber-Fechner law, and there is a linear relationship between subjective brightness and drag range. Each subjective brightness corresponds to an equally weighted drag resolution. However, in reality, users have different needs for dragging to different brightness levels, which can easily lead to repeated dragging.

[0028] To address the aforementioned problems, the inventors have proposed a method, apparatus, computer device, and storage medium for obtaining brightness adjustment relationships, as provided in the embodiments of this application. This allows for the determination of a brightness adjustment relationship where the expected value of the target deviation meets preset expectation conditions based on the user's historical screen brightness adjustments, thereby reducing the number of drag operations required during brightness adjustment. The specific method for obtaining the brightness adjustment relationship will be described in detail in subsequent embodiments.

[0029] The scenarios involved in the embodiments of this application will be introduced below.

[0030] In some implementations, please refer to Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of the method for obtaining brightness adjustment relationships provided in the embodiments of this application, such as... Figure 1 As shown, the application environment can be understood as a system 10 provided in the embodiments of this application. The system 10 includes: a computer device 100 and a plurality of electronic devices 200 (only 2 are shown in the figure).

[0031] The computer device 100 can be a server, a computer, or the like. The server can be a single server (a network access server), a server cluster (a cloud server) composed of a plurality of servers, or a cloud computing center (a database server). The electronic device 200 can be any device with communication and storage functions, including but not limited to a smart phone, a smart wearable device, a PC (personal computer), a PDA (tablet), a smart television, or other smart communication devices with network connection functions. The computer device 100 and the electronic device 200 can be connected by wireless or wired means to communicate.

[0032] In this embodiment, the electronic device 200 can be pre-buried to report the screen brightness adjusted by the user through the drag operation to the computer device 100. The computer device 100 can determine the brightness adjustment relationship (i.e., the corresponding relationship between the screen brightness and the drag amplitude) in which the expected value of the target deviation meets the preset expected condition based on the screen brightness adjusted by the user history, and the determined brightness adjustment relationship can be used for the developer to set the corresponding relationship between the screen brightness and the drag amplitude in the electronic device, or the brightness adjustment relationship is sent to the electronic device 200, so that the electronic device 200 updates the set corresponding relationship between the screen brightness and the drag amplitude.

[0033] The brightness adjustment relationship acquisition method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0034] Please refer to Figure 2 , Figure 2 The flowchart of the brightness adjustment relationship acquisition method provided by an embodiment of the present application is shown. In specific embodiments, the brightness adjustment relationship acquisition method is applied to the brightness adjustment relationship acquisition device 400 shown in Figure 6 and the computer device 100 configured with the brightness adjustment relationship acquisition device 400. Figure 7 The specific process of the present embodiment will be described below with the computer device as an example. It can be understood that the computer device to which the present embodiment is applied can be a server, a personal computer, and the like, which is not limited herein. The brightness adjustment relationship acquisition method will be described in detail below with reference to the flowchart shown in Figure 2 The brightness adjustment relationship acquisition method can specifically include the following steps:

[0035] Step S110: Obtain a target probability distribution function corresponding to a target subjective brightness and an expected function of the target deviation represented by a target deviation, the target deviation being used to represent the difference between the brightness adjusted by the screen and the target subjective brightness.

[0036] When the screen brightness is adjusted based on the dragging operation, the actual brightness adjusted to is usually different from the target subjective brightness (i.e., the brightness required to be adjusted to by the user), so that the screen brightness needs to be adjusted to the required brightness through multiple dragging operations. Therefore, in the embodiments of the present application, an expectation function of a target deviation representing the difference between the screen brightness adjusted to and the target subjective brightness can be obtained, so as to determine a brightness adjustment relationship when the expectation function meets a preset expectation condition, so that when the screen brightness is adjusted by the electronic device based on the brightness adjustment relationship, the difference between the actual brightness adjusted to and the target subjective brightness is small. The target probability distribution function corresponding to the target subjective brightness can be used to determine the above-mentioned expectation function represented by the target deviation and the target probability distribution function.

[0037] In some embodiments, the computer device can perform integral operation with the target subjective brightness as the independent variable based on the target probability distribution function corresponding to the target subjective brightness and the target deviation, so as to obtain the expectation function of the target deviation.

[0038] In some embodiments, the target deviation can be the variance of the difference between the screen brightness adjusted to and the target subjective brightness, can be the standard deviation of the difference, or can be the power index of the absolute value of the difference.

[0039] Step S120: Obtain the target probability distribution function based on the conversion relationship between the target subjective brightness and the screen brightness and the screen brightness adjusted to by the historical dragging operation.

[0040] In the embodiments of the present application, the computer device can obtain the screen brightness adjusted to by the electronic device according to the historical dragging operation. Since the subjective perceived brightness and the actual brightness of a person cannot be directly equivalent, the obtained screen brightness reported by the electronic device can be converted based on the conversion relationship between the target subjective brightness and the screen brightness, and then the target probability distribution function corresponding to the target subjective brightness can be counted. It can be understood that since the subjective brightness of the user cannot be known, the computer device can obtain the screen brightness adjusted to by the electronic device according to the historical dragging operation, and determine the target probability distribution function corresponding to the target subjective brightness based thereon.

[0041] In some embodiments, the electronic device can pre-embed the data to be reported, wherein the data to be reported can include the screen brightness adjusted by the electronic device in response to the historical drag operation. Thus, the electronic device can send the data of adjusting the screen brightness to the computer device when the preset uploading condition is met. Accordingly, the computer device obtains the data of adjusting the screen brightness reported by the electronic device, and after receiving the data uploaded by the electronic device, the computer device can parse and convert the data to a specific format and store the data in a corresponding database and data table. The uploading condition can be a preset time interval, i.e., the electronic device uploads the data of the screen brightness adjusted according to the drag operation to the computer device every time interval. Of course, the specific uploading condition can not be limited.

[0042] In a possible implementation, the computer device can be a server, for example, a server of the manufacturer of the electronic device. The electronic device can upload the data of the screen brightness adjusted according to the drag operation to the server, so that the server determines the brightness adjustment relationship according to the data reported by the electronic device.

[0043] In another possible implementation, the computer device can be a personal computer or the like, and the electronic device can upload the data of the screen brightness adjusted according to the drag operation to the server of the manufacturer, and the personal computer obtains the data uploaded by the electronic device from the server of the manufacturer.

[0044] In some embodiments, the screen brightness adjusted by the historical drag operation can be the data reported by the electronic device of a single user, for example, the account of user A is logged in multiple electronic devices, and the multiple electronic devices corresponding to the account can report the brightness adjusted according to the historical drag operation, so that the computer device can determine the brightness adjustment relationship corresponding to the screen brightness distribution adjusted by the user according to the brightness adjusted by the historical drag operation.

[0045] In some embodiments, the screen brightness adjusted by the historical drag operation can be the data reported by the electronic device of a single user, for example, the account of user A is logged in multiple electronic devices, and the multiple electronic devices corresponding to the account can report the brightness adjusted according to the historical drag operation, so that the computer device can determine the brightness adjustment relationship corresponding to the screen brightness distribution adjusted by the user according to the brightness adjusted by the historical drag operation.

[0046] Step S130: based on the target probability distribution function, obtaining a first mapping relationship between a drag amplitude and a target variable when the expectation function meets a preset expectation condition, the drag amplitude being an amplitude of a drag operation for adjusting the screen brightness, and the target variable being a variable corresponding to the screen brightness adjusted based on the historical drag operation.

[0047] In the embodiment of the present application, after the computer device determines the target probability distribution function, the computer device can determine the first mapping relationship between the dragging amplitude and the target variable when the expectation function meets the preset expectation condition based on the expectation function. The dragging amplitude is the amplitude dragged by the dragging operation for adjusting the screen brightness. That is, the dragging amplitude can be the cumulative dragging amplitude, for example, can be the percentage of the cumulative dragging amplitude in the maximum dragging amplitude. The target variable is the variable corresponding to the screen brightness adjusted based on the historical dragging operation.

[0048] In some embodiments, since the expectation function is represented by the target probability distribution function and the target deviation, the independent variable in the expectation function is the target subjective brightness. The computer device can replace the independent variable in the expectation function with the variable corresponding to the screen brightness adjusted based on the historical dragging operation (i.e., the target variable), and then obtain the first mapping relationship between the dragging amplitude and the target variable when the expectation function meets the preset expectation condition based on the functional solution method.

[0049] In some embodiments, the preset expectation condition can include that the value of the target deviation is minimum or the target deviation is less than a preset threshold. Thus, the first mapping relationship determined can ensure that the difference between the brightness adjusted and the target subjective brightness is relatively small.

[0050] Step S140: determining the second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship based on the first mapping relationship.

[0051] In the embodiment of the present application, after the first mapping relationship between the dragging amplitude and the target variable is determined, the computer device can determine the second mapping relationship between the screen brightness and the dragging amplitude based on the first mapping relationship and according to the corresponding relationship between the target variable and the screen brightness, and take the second mapping relationship as the brightness adjustment relationship.

[0052] The brightness adjustment relationship acquisition method provided in the embodiment of the present application can determine the brightness adjustment relationship whose expected value of the target deviation can meet the preset expectation condition based on the screen brightness adjusted by the user through the historical dragging operation, so that the brightness adjustment relationship obtained can ensure that the difference between the brightness adjusted and the target subjective brightness is relatively small, thereby reducing the number of times of the dragging operation during brightness adjustment.

[0053] Please refer to Figure 3 , Figure 3 FIG. 1 shows a flowchart of a brightness adjustment relationship acquisition method provided in another embodiment of the present application. The brightness adjustment relationship acquisition method is applied to the computer device described above, and the following will be described with respect to the computer device. Figure 3The flowchart is described in detail, and the obtaining method of the brightness adjustment relationship can specifically include the following steps.

[0054] Step S210: Obtain a target probability distribution function corresponding to a target subjective brightness and an expected function of a target deviation, the target deviation being used to represent a difference between a brightness to which a screen is adjusted and the target subjective brightness.

[0055] In the embodiments of the present application, the target subjective brightness can be S, and the brightness to which the screen is adjusted can be S u , the difference between the brightness to which the screen is adjusted and the target subjective brightness is S d =S u -S, the target deviation can be D(S d ), the probability distribution function f(S) of the target subjective brightness S of the user when adjusting the screen brightness can be determined based on the conversion relationship between the target subjective brightness and the screen brightness, and the screen brightness to which the historical drag operation is adjusted, and the mapping relationship S=S(x) when the expected value of D(S d ) satisfies a preset expected condition, the expected function of D(S d ) is: S min is the minimum value of the target subjective brightness S, S max is the maximum value of the target subjective brightness S, x(S) is the inverse function of S(x), and x is the drag amplitude.

[0056] Step S220: Convert the screen brightness to which the historical drag operation is adjusted into the target variable based on the conversion relationship between the target subjective brightness and the screen brightness.

[0057] In the embodiments of the present application, since the subjective brightness of the user cannot be directly equivalent to the screen brightness, the user subjective brightness and the screen brightness have a conversion relationship. It can be understood that the resolution of the human eye to brightness changes with the change of brightness, for example, the light source of 10 nit changes 1 nit, and the human eye can subjectively perceive the change, and the light source of 100 nit needs to change 10 nit, and the human eye can distinguish, so the user subjective brightness and the screen brightness have a conversion relationship. The conversion relationship between the target subjective brightness and the screen brightness can be the Weber-Fechner law, in which the subjective brightness S of the user and the screen brightness R are in logarithmic relationship: S=klogR+S0, k and S0 are constants. The computer device can convert the screen brightness to which the historical drag operation is adjusted into the target variable based on the conversion relationship.

[0058] In some embodiments, since the expected function described above is D(S d) and the argument is S, the argument S in the above expectation function can be replaced by the target variable y, and y = logR. Accordingly, the screen brightness R adjusted by the historical drag operation can be converted into the value of the target variable y.

[0059] Step S230: Obtain the probability distribution function corresponding to the target variable as the target probability distribution function.

[0060] In the embodiments of the present application, after the screen brightness R adjusted by the historical drag operation is converted into the value of the target variable y, the probability distribution of the target variable can be determined based on the converted data, and the probability distribution function g(y) corresponding to the target variable is obtained, which can be regarded as being equivalent to the target probability distribution function f(S). Therefore, the above expectation function can be changed to:

[0061] Step S240: Obtain the drag amplitude deviation corresponding to the target deviation, and the drag amplitude deviation is used to represent the difference between the drag amplitude corresponding to the brightness to which the screen is adjusted and the drag amplitude corresponding to the target subjective brightness.

[0062] In the embodiments of the present application, when the computer device obtains the first mapping relationship between the drag amplitude and the target variable based on the target probability distribution function, the expectation function satisfies the preset expectation condition, the drag amplitude deviation corresponding to the target deviation can be obtained, and the drag amplitude deviation is used to represent the difference between the drag amplitude corresponding to the brightness to which the screen is adjusted and the drag amplitude corresponding to the target subjective brightness.

[0063] In some embodiments, the target deviation is determined based on the first difference value between the brightness to which the screen is adjusted and the target subjective brightness, and obtaining the drag amplitude deviation corresponding to the target deviation can include: taking the difference value of the drag amplitude between the brightness to which the screen is adjusted and the target subjective brightness as a second difference value; determining the first difference value between the brightness to which the screen is adjusted and the target subjective brightness based on the second difference value; and determining the drag amplitude deviation based on the first difference value and the target deviation.

[0064] wherein the probability distribution function g(y) corresponding to the target variable is obtained, and the g(y) can be regarded as being equivalent to the target probability distribution function f(S), and the above expectation function is changed to: After that, since S is increasing with x, the derivative S'(x) of S(x) is greater than 0, the inverse function of S(x) is x(S), and the brightness S u to which the screen is adjusted corresponds to the drag amplitude x u x = x(S u), the target subjective brightness corresponds to a drag range x, and the difference between the drag range corresponding to the brightness to which the screen is adjusted and the drag range between the target subjective brightness is x d = x u -x. According to the first-order approximation, it can be obtained that Therefore, the target deviation is approximated as The drag range deviation is That is, the target deviation can be represented by the drag range deviation, so as to determine the mapping relationship between the target variable and the drag range according to the expectation function.

[0065] Step S250: determining a relationship corresponding to the first mapping relationship when the expectation function satisfies a preset expectation condition, based on the drag range deviation and the Euler equation corresponding to the expectation function.

[0066] In the embodiment of the present application, after the drag range deviation is determined, the second difference can be understood as an error caused by the user dragging, that is, the same error exists in the dragging operation of any drag range, so the drag range deviation does not change with the drag range. After the drag range deviation is substituted into the expectation function, the transformed expectation function can be regarded as a functional problem in order to make the value of the transformed expectation function satisfy the preset expectation condition, so the relationship corresponding to the first mapping relationship when the expectation function satisfies the preset expectation condition can be determined based on the Euler equation corresponding to the expectation function.

[0067] The obtained expectation function can be transformed as In order to make the value of the transformed expectation function satisfy the preset expectation condition, the transformed expectation function can be regarded as a functional problem, so the relationship required to be satisfied by the first mapping relationship can be obtained by using the Euler equation corresponding to the expectation function.

[0068] Step S260: determining the first mapping relationship between the drag range and the target variable based on the target probability distribution function and the relationship.

[0069] The drag range is the range dragged by the dragging operation for adjusting the screen brightness, and the target variable is a variable corresponding to the screen brightness adjusted based on the historical dragging operation.

[0070] In the embodiment of the present application, after the computer device obtains the relationship, the computer device can solve the relationship based on the obtained target probability distribution function, and then obtain the first mapping relationship between the drag range and the target variable.

[0071] The computer device determines the relationship according to the relationship The mapping relationship between the dragging amplitude and the target variable can be obtained. The probability distribution function corresponding to the known target variable (i.e., the target probability distribution function) is substituted into the mapping relationship, and the first mapping relationship obtained is obtained.

[0072] Step S270: obtaining the inverse function corresponding to the first mapping relationship.

[0073] In the embodiment of the present application, since the first mapping relationship is the mapping relationship between the dragging amplitude and the target variable, the inverse function corresponding to the first mapping relationship can be obtained, that is, the mapping relationship between the target variable and the dragging amplitude is obtained. Wherein, the first mapping relationship between the dragging amplitude and the target variable is x (y), and the inverse function corresponding to the first mapping relationship is y (x).

[0074] Step S280: based on the corresponding relationship between the target variable and the screen brightness, the inverse function is converted to obtain the second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship.

[0075] In the embodiment of the present application, after the computer device obtains the inverse function of the first mapping relationship, the inverse function can be converted based on the corresponding relationship between the target variable and the screen brightness to obtain the second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship. Wherein, the corresponding relationship between the target variable y and the screen brightness R is: y = log R, and the screen brightness R can be determined, that is, the inverse function corresponding to the first mapping relationship is y (x), and R (x) = e y(x) . Thus, the second mapping relationship between the screen brightness and the dragging amplitude can be obtained and used as the brightness adjustment relationship.

[0076] Please refer to Figure 4 , if the distribution of the target variable y = log R is as shown in curve 1 in Figure 4 , the length of the dragging per unit subjective brightness in the linear relationship is as shown in curve 2 in Figure 4 , the length of the dragging per unit subjective brightness in the power index relationship is as shown in curve 3 in Figure 4 , the length of the dragging per unit subjective brightness in the logarithmic relationship is as shown in curve 4 in Figure 4 , and the length of the dragging per unit subjective brightness in the brightness adjustment relationship obtained by the embodiment of the present application is as shown in curve 5 in Figure 4 .as shown by curve 5 in FIG. 5. It can be seen that the linear relationship has a very short drag bar length under low light conditions, and the user experience is relatively poor; the power index relationship is optimized relative to the linear relationship, but the problem still exists; the logarithmic relationship corresponds to a straight line, but it does not consider that the user's demand is more concentrated in certain brightness intervals; and the brightness adjustment relationship obtained by the above method can be according to the distribution of the user's demand for the screen brightness, the demand concentrated place is larger, the average experience of the user is better relative to the logarithmic curve, the fluctuation is not too large, and the experience in the brightness interval where the target brightness distribution probability is low is better than that of the linear and power index relationships.

[0077] The method for obtaining a brightness adjustment relationship provided in the embodiments of the present application can utilize the statistical historical brightness distribution of the adjusted screen brightness, so that the difference between the target subjective brightness of the user and the actually dragged screen brightness is small, thereby reducing the number of repeated dragging operations when adjusting the screen brightness and the proportion of very small dragging, and improving the user experience.

[0078] Please refer to Figure 5 , Figure 5 FIG. 6 shows a flowchart of a method for obtaining a brightness adjustment relationship provided in another embodiment of the present application. The method for obtaining a brightness adjustment relationship is applied to the electronic device described above, and the following will be described in detail with reference to the flowchart shown in FIG. 6. The method for obtaining a brightness adjustment relationship can specifically include the following steps: Figure 5

[0079] Step S310: Obtain a target probability distribution function corresponding to a target subjective brightness and an expected function represented by a target deviation, the target deviation being used to represent the difference between the brightness to which the screen is adjusted and the target subjective brightness.

[0080] Step S320: Obtain the target probability distribution function based on the conversion relationship between the target subjective brightness and the screen brightness and the screen brightness to which the historical dragging operation is adjusted.

[0081] Step S330: Obtain a first mapping relationship between a dragging amplitude and a target variable when the expected function satisfies a preset expected condition, based on the target probability distribution function, the dragging amplitude being the amplitude of the dragging operation for adjusting the screen brightness, and the target variable being a variable corresponding to the screen brightness to which the historical dragging operation is adjusted.

[0082] Step S340: Determine a second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship based on the first mapping relationship.

[0083] In the embodiments of the present application, steps S310 to S340 can refer to the content of the foregoing embodiments, which will not be described here again.​

[0084] Step S350: sending the luminance adjustment relationship to the electronic device, the electronic device being configured to adjust the screen luminance based on the detected dragging operation and the luminance adjustment relationship.

[0085] In the embodiments of the present application, after obtaining the luminance adjustment relationship, the computer device can send the luminance adjustment relationship to the electronic device. Accordingly, after receiving the luminance adjustment relationship, the electronic device can update the corresponding relationship between the screen luminance and the dragging amplitude, so that the electronic device can adjust the screen luminance according to the detected dragging operation and the luminance adjustment relationship.

[0086] In some embodiments, if the screen luminance adjusted by the historical dragging operation is the data reported by the electronic device of a single user, the luminance adjustment relationship can be sent to all electronic devices of the user, so that the luminance adjustment relationship of all electronic devices of the user can be adapted to the luminance adjusted by the user habitually.

[0087] In some embodiments, if the screen luminance adjusted by the historical dragging operation is the data reported by the electronic devices of the same screen type, the luminance adjustment relationship can be sent to all electronic devices of the same screen type, so that the electronic devices of the same screen type can adjust the screen luminance based on the luminance adjustment relationship.

[0088] The method for obtaining the luminance adjustment relationship provided in the embodiments of the present application can determine the luminance adjustment relationship whose expected value of the target deviation meets the preset expected condition based on the screen luminance adjusted by the user history through the dragging operation, so that the luminance adjustment relationship obtained can ensure that the difference between the adjusted luminance and the target subjective luminance is relatively small, and the luminance adjustment relationship is sent to the electronic device, so that the electronic device can adjust the luminance based on the luminance adjustment relationship, thereby reducing the number of dragging operations during luminance adjustment.

[0089] Please refer to Figure 6Fig. 4 is a structural block diagram of a device 400 for obtaining a brightness adjustment relationship according to an embodiment of the present application. The device 400 for obtaining a brightness adjustment relationship is applied to the electronic device described above. The device 400 for obtaining a brightness adjustment relationship comprises a first obtaining module 410, a second obtaining module 420, a third obtaining module 430, and a relationship determining module 440. The first obtaining module 410 is configured to obtain a target probability distribution function corresponding to a target subjective brightness and an expected function of a target deviation, the target deviation being used to represent a difference between a screen brightness and the target subjective brightness. The second obtaining module 420 is configured to obtain the target probability distribution function based on a conversion relationship between the target subjective brightness and the screen brightness and a screen brightness adjusted by a historical dragging operation. The third obtaining module 430 is configured to obtain a first mapping relationship between a dragging amplitude and a target variable when the expected function satisfies a preset expected condition, the dragging amplitude being an amplitude of a dragging operation used to adjust the screen brightness, based on the target probability distribution function. The relationship determining module 440 is configured to determine a second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship based on the first mapping relationship.

[0090] In some embodiments, the third obtaining module 430 is further configured to obtain a dragging amplitude deviation corresponding to the target deviation, the dragging amplitude deviation being used to represent a difference between a dragging amplitude corresponding to a screen brightness and a dragging amplitude corresponding to a target subjective brightness. The third obtaining module 430 is further configured to determine a relationship formula corresponding to the first mapping relationship when the expected function satisfies the preset expected condition, based on the dragging amplitude deviation and an Euler equation corresponding to the expected function. The third obtaining module 430 is further configured to determine the first mapping relationship based on the target probability distribution function and the relationship formula.

[0091] In a possible implementation, the target deviation is determined based on a first difference value between the screen brightness and the target subjective brightness. The third obtaining module 430 is further configured to take a difference value between the dragging amplitude corresponding to the screen brightness and the dragging amplitude corresponding to the target subjective brightness as a second difference value. The third obtaining module 430 is further configured to determine the first difference value between the screen brightness and the target subjective brightness based on the second difference value. The third obtaining module 430 is further configured to determine the dragging amplitude deviation based on the first difference value and the target deviation.

[0092] Optionally, the target deviation comprises a variance of the first difference value, a standard deviation of the first difference value, or a power index of an absolute value of the first difference value.

[0093] In some embodiments, the second obtaining module 420 can be specifically configured to: convert a screen brightness adjusted by the historical dragging operation into the target variable based on a conversion relationship between the target subjective brightness and the screen brightness; and obtain a probability distribution function corresponding to the target variable as the target probability distribution function.

[0094] In some embodiments, the preset expected condition comprises: the target deviation is minimum, or the target deviation is less than a preset threshold.

[0095] In some embodiments, the relationship determining module 440 can be specifically configured to: obtain an inverse function corresponding to the first mapping relationship; and convert the inverse function based on a corresponding relationship between the target variable and the screen brightness to obtain a second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship.

[0096] In some embodiments, the brightness adjustment relationship obtaining apparatus 400 can further comprise a relationship sending module. The relationship sending module is configured to send the brightness adjustment relationship to an electronic device after the second mapping relationship between the screen brightness and the dragging amplitude is determined as the brightness adjustment relationship based on the first mapping relationship, and the electronic device is configured to adjust the screen brightness based on the detected dragging operation and the brightness adjustment relationship.

[0097] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described apparatuses and modules can refer to the corresponding process in the foregoing method embodiments, which will not be described herein.

[0098] In several embodiments provided in the present application, the coupling between the modules can be electrical, mechanical or other forms of coupling.

[0099] In addition, each functional module in each embodiment of the present application can be integrated in one processing module, or each module can exist physically independently, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.

[0100] In summary, the scheme provided in the present application, by obtaining a target probability distribution function corresponding to a target subjective brightness and an expected function of a target deviation represented by a target deviation, the target deviation is used to represent the difference between the brightness adjusted by the screen and the target subjective brightness, based on the conversion relationship between the target subjective brightness and the screen brightness, and the screen brightness adjusted by the historical drag operation, the target probability distribution function is obtained, then based on the target probability distribution function, the first mapping relationship between the drag amplitude and the target variable when the expected function meets the preset expected condition is obtained, the drag amplitude is the amplitude of the drag operation for adjusting the screen brightness, and the target variable is the variable corresponding to the screen brightness adjusted by the historical drag operation, and then based on the first mapping relationship, the second mapping relationship between the screen brightness and the drag amplitude is determined as the brightness adjustment relationship. Therefore, based on the screen brightness adjusted by the user history, the brightness adjustment relationship can be determined, and the expected value of the target deviation can meet the preset expected condition, thereby reducing the number of drag operations during brightness adjustment.

[0101] Please refer to Figure 7 which shows a structural block diagram of a computer device provided by an embodiment of the present application. The computer device 100 can be a smart phone, a tablet computer, a smart watch, an electronic book, etc. capable of running an application program. The computer device 100 in the present application can include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs can be stored in the memory 120 and configured to be executed by the one or more processors 110, and the one or more application programs are configured to execute the method as described in the foregoing method embodiment.

[0102] The processor 110 can include one or more processing cores. The processor 110 connects various parts within the entire computer device 100 by various interfaces and lines, performs various functions of the computer device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 110 can be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes operating systems, user interfaces, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 110, but be implemented separately through a communication chip.

[0103] The memory 120 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 120 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the method embodiments described below, etc. The data storage area can also store data created by the computer device 100 in use (such as a phone book, audio and video data, chat record data, etc.).

[0104] Please refer to Figure 8 which shows a structural block diagram of a computer readable storage medium provided by an embodiment of the present application. The computer readable medium 800 stores program codes therein, and the program codes can be called and executed by a processor to perform the methods described in the above method embodiments.

[0105] The computer-readable storage medium 800 can be an electronic storage memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk or a ROM. Optionally, the computer-readable storage medium 800 comprises a non-transitory computer-readable medium. The computer-readable storage medium 800 has a storage space for program codes 810 to execute any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program codes 810 can be compressed, for example, in an appropriate form.

[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent replacements for some of the technical features, without departing from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of obtaining a luminance adjustment relationship, characterized by, The method comprises: obtaining a target probability distribution function corresponding to a target subjective brightness and an expected function of a target deviation, the target deviation being used to represent a difference between a brightness to which a screen is adjusted and the target subjective brightness, wherein the target probability distribution function is determined based on a conversion relationship between the target subjective brightness and a screen brightness and a screen brightness to which a historical dragging operation is adjusted, and the expected function is determined based on the target probability distribution function; obtaining, based on the target probability distribution function, a first mapping relationship between a dragging amplitude and a target variable when the expected function satisfies a preset expectation condition, the dragging amplitude being an amplitude of a dragging operation used to adjust the screen brightness, and the target variable being a variable corresponding to the screen brightness to which the historical dragging operation is adjusted; determining, based on the first mapping relationship, a second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship.

2. The method of claim 1, wherein, The obtaining, based on the target probability distribution function, of the first mapping relationship between the dragging amplitude and the target variable when the expected function satisfies the preset expectation condition comprises: obtaining a dragging amplitude deviation corresponding to the target deviation, the dragging amplitude deviation being used to represent a difference between a dragging amplitude corresponding to the brightness to which the screen is adjusted and a dragging amplitude corresponding to the target subjective brightness; determining, based on the dragging amplitude deviation and an Euler equation corresponding to the expected function, a relationship corresponding to the first mapping relationship when the expected function satisfies the preset expectation condition; determining, based on the target probability distribution function and the relationship, the first mapping relationship.

3. The method of claim 2, wherein, The target deviation is determined based on a first difference value between the brightness to which the screen is adjusted and the target subjective brightness, and the obtaining of the dragging amplitude deviation corresponding to the target deviation comprises: taking a difference value of the dragging amplitude between the brightness to which the screen is adjusted and the target subjective brightness as a second difference value; determining the first difference value between the brightness to which the screen is adjusted and the target subjective brightness based on the second difference value; determining the dragging amplitude deviation based on the first difference value and the target deviation.

4. The method of claim 3, wherein, The target deviation comprises a variance of the first difference value, a standard deviation of the first difference value, or a power index of an absolute value of the first difference value.

5. The method of claim 1, wherein, The obtaining of the target probability distribution function based on the conversion relationship between the target subjective brightness and the screen brightness and the screen brightness to which the historical dragging operation is adjusted comprises: converting, based on the conversion relationship between the target subjective brightness and the screen brightness, the screen brightness to which the historical dragging operation is adjusted into the target variable; obtaining a probability distribution function corresponding to the target variable as the target probability distribution function.

6. The method of claim 1, wherein, The preset expectation condition comprises that a value of the target deviation is minimum or the target deviation is less than a preset threshold.

7. The method according to any one of claims 1 to 6, characterized in that, The determining, based on the first mapping relationship, of the second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship comprises: obtaining an inverse function corresponding to the first mapping relationship; The inverse function is converted based on a corresponding relationship between the target variable and the screen brightness, to obtain a second mapping relationship between the screen brightness and the dragging amplitude as the brightness adjustment relationship.

8. The method according to any one of claims 1 to 6, characterized in that, After the second mapping relationship between the screen brightness and the dragging amplitude is determined as the brightness adjustment relationship based on the first mapping relationship, the method further includes: The brightness adjustment relationship is sent to an electronic device, and the electronic device is configured to adjust the screen brightness based on the detected dragging operation and the brightness adjustment relationship.

9. A computer device, comprising: Comprise: One or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method of any one of claims 1-8.

10. A computer readable storage medium, characterized in that, The computer readable storage medium stores program code, and the program code can be called and executed by the processor to execute the method of any one of claims 1-8.

Citation Information

Patent Citations

  • Intelligent screen brightness adjusting method and device, storage medium and mobile terminal

    CN109951594A

  • Screen backlight brightness adjusting method and device, storage medium and electronic equipment

    CN111798811A