CN113035120B - Display parameter adjusting method and device, mobile terminal and storage medium - Google Patents
Display parameter adjusting method and device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN113035120B CN113035120B CN201911360083.4A CN201911360083A CN113035120B CN 113035120 B CN113035120 B CN 113035120B CN 201911360083 A CN201911360083 A CN 201911360083A CN 113035120 B CN113035120 B CN 113035120B
- Authority
- CN
- China
- Prior art keywords
- display parameter
- parameter
- current
- target
- interval
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
- G09G3/3208—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/3406—Control of illumination source
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/36—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0613—The adjustment depending on the type of the information to be displayed
- G09G2320/062—Adjustment of illumination source parameters
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Crystallography & Structural Chemistry (AREA)
- Telephone Function (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the application discloses a display parameter adjusting method, a display parameter adjusting device, a mobile terminal and a storage medium, wherein the method comprises the following steps: when the mobile terminal is in an automatic display parameter adjusting mode, acquiring current display parameters and current detection parameters; detecting whether the current detection parameter is in an anti-shake interval or not, wherein the anti-shake interval comprises a stable interval and a fine-tuning interval; if the current detection parameter falls into the fine adjustment interval, determining a first display parameter corresponding to the current detection parameter according to the target display parameter curve, if the first display parameter is not equal to the current display parameter, calculating the target display parameter according to the current display parameter and the first display parameter, adjusting the display parameter of the mobile terminal from the current display parameter to the target display parameter, wherein the absolute value of the difference value between the target display parameter and the current display parameter is smaller than the absolute value of the difference value between the first display parameter and the current display parameter. The embodiment of the application can avoid the situation of repeated manual adjustment, and can improve the anti-shaking capability in the anti-shaking interval.
Description
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a display parameter adjusting method and device, a mobile terminal and a storage medium.
Background
Currently, in a solution for adjusting display parameters of a mobile terminal, in an automatic display parameter adjustment mode, the display parameters of the mobile terminal are generally adjusted according to an automatic display parameter curve (an abscissa is a detection parameter, and an ordinate is a display parameter). In order to avoid the influence of large fluctuation of the display parameters on a user when the detection parameters are in a certain range, the traditional method solves the problem that the display parameters are jittered when the detection parameters are in the certain range by setting a scheme of jittering intervals of the detection parameters. If the jitter interval of the detection parameter is set too large, when the detection parameter is changed greatly, the display parameter may not be changed, the display effect is poor, and if the jitter interval of the detection parameter is set too small, the anti-shake capability is poor.
Disclosure of Invention
The embodiment of the application provides a display parameter adjusting method, a display parameter adjusting device, a mobile terminal and a storage medium, and the anti-shake capability in an anti-shake interval can be improved.
A first aspect of an embodiment of the present application provides a method for adjusting display parameters, including:
when the mobile terminal is in an automatic display parameter adjusting mode, acquiring current display parameters and current detection parameters;
detecting whether the current detection parameter is in an anti-shake interval or not, wherein the anti-shake interval comprises a stable interval and a fine-tuning interval;
if the current detection parameter falls into the fine adjustment interval, determining a first display parameter corresponding to the current detection parameter according to a target display parameter curve, if the first display parameter is not equal to the current display parameter, calculating a target display parameter according to the current display parameter and the first display parameter, and adjusting the display parameter of the mobile terminal from the current display parameter to a target display parameter, wherein the absolute value of the difference between the target display parameter and the current display parameter is smaller than the absolute value of the difference between the first display parameter and the current display parameter;
and if the current detection parameter falls into the stable interval, determining a stable value corresponding to the stable interval, and if the stable value is not equal to the current display parameter, adjusting the display parameter of the mobile terminal from the current display parameter to the stable value corresponding to the stable interval.
A second aspect of the embodiments of the present application provides a display parameter adjusting apparatus, including:
the mobile terminal comprises an acquisition unit, a detection unit and a display unit, wherein the acquisition unit is used for acquiring current display parameters and current detection parameters when the mobile terminal is in an automatic display parameter adjusting mode;
the detection unit is used for detecting whether the current detection parameters are in an anti-shake interval or not, and the anti-shake interval comprises a stable interval and a fine-tuning interval;
the determining unit is used for determining a first display parameter corresponding to the current detection parameter according to a target display parameter curve under the condition that the current detection parameter falls into the fine adjustment interval;
the calculation unit is used for calculating target display parameters according to the current display parameters and the first display parameters under the condition that the first display parameters and the current display parameters are not equal;
an adjusting unit, configured to adjust a display parameter of the mobile terminal from the current display parameter to a target display parameter, where an absolute value of a difference between the target display parameter and the current display parameter is smaller than an absolute value of a difference between the first display parameter and the current display parameter;
the determining unit is further configured to determine a stable value corresponding to the stable interval when the current detection parameter falls into the stable interval;
the adjusting unit is further configured to adjust the display parameter of the mobile terminal from the current display parameter to a stable value corresponding to the stable interval when the stable value is not equal to the current display parameter.
A third aspect of embodiments of the present application provides a mobile terminal, including a processor and a memory, where the memory is configured to store a computer program, where the computer program includes program instructions, and the processor is configured to invoke the program instructions to perform some or all of the steps described in any of the methods of the first aspect of embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to perform some or all of the steps as described in any one of the methods of the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product comprising a non-transitory computer readable storage medium having a computer program stored thereon, the computer program being operable to cause a computer to perform some or all of the steps of a method as described in any one of the first aspects of embodiments of the present application.
In the embodiment of the application, when the mobile terminal is in the automatic display parameter adjusting mode, the current display parameters and the current detection parameters are obtained; detecting whether the current detection parameter is in an anti-shake interval or not, wherein the anti-shake interval comprises a stable interval and a fine-tuning interval; if the current detection parameter falls into the fine adjustment interval, determining a first display parameter corresponding to the current detection parameter according to a target display parameter curve, if the first display parameter is not equal to the current display parameter, calculating a target display parameter according to the current display parameter and the first display parameter, and adjusting the display parameter of the mobile terminal from the current display parameter to a target display parameter, wherein the absolute value of the difference between the target display parameter and the current display parameter is smaller than the absolute value of the difference between the first display parameter and the current display parameter; and if the current detection parameter falls into the stable interval, determining a stable value corresponding to the stable interval, and if the stable value is not equal to the current display parameter, adjusting the display parameter of the mobile terminal from the current display parameter to the stable value corresponding to the stable interval. The embodiment of the application can be through setting up including the interval of stabilizing the interval and finely tuning the interval anti-shake for show the parameter and remain stable in the interval of stabilizing, keep changing a small margin in the interval of finely tuning, thereby keep the anti-shake ability in great anti-shake interval, improve the anti-shake ability in the interval of anti-shake.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a display parameter adjustment method disclosed in an embodiment of the present application;
FIG. 2 is a schematic diagram of a display parameter curve disclosed in an embodiment of the present application;
FIG. 3 is a schematic diagram of a trimmer interval disclosed in embodiments of the present application;
FIG. 4 is a schematic flow chart illustrating another method for adjusting display parameters according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a method for generating a target backlight luminance curve according to an embodiment of the disclosure;
FIG. 6 is a schematic structural diagram of a display parameter adjustment apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic flow chart of a display parameter adjusting method disclosed in an embodiment of the present application, and as shown in fig. 1, the display parameter adjusting method includes the following steps.
101, when the mobile terminal is in the automatic display parameter adjusting mode, the mobile terminal obtains the current display parameters and the current detection parameters.
In the embodiment of the present application, the display parameter may include a backlight brightness or a backlight color temperature. The display parameter auto-adjustment mode may include a backlight brightness auto-adjustment mode or a backlight color temperature auto-adjustment mode.
The current display parameter may include a current backlight brightness or a current backlight color temperature, and the current detection parameter may include a current light sensation value or a current color temperature value. The mobile terminal can monitor the current light sensing value through the light sensor and can monitor the current color temperature value through the color temperature sensor.
The optical sensor may also be referred to as a light sensor or an ambient light sensor. The light sensor may be disposed on a front panel of the mobile terminal or may be disposed under a display screen (i.e., light sensing under the screen). The light sensor is used for detecting the light sensation value of the environment where the mobile terminal is located. The light sensation value can be expressed in lux.
The color temperature sensor can be arranged on the front panel of the mobile terminal and can also be arranged under the display screen (namely, the color temperature sensor under the screen). The color temperature sensor is used for detecting the color temperature value of the environment where the mobile terminal is located. Both the color temperature value and the backlight color temperature can be expressed in kelvin (K).
In the backlight brightness automatic adjusting mode, the mobile terminal determines the backlight brightness of the mobile terminal according to the automatic backlight brightness curve; in the backlight color temperature automatic adjusting mode, the mobile terminal determines the backlight color temperature of the mobile terminal according to the automatic backlight color temperature curve.
The backlight brightness of the mobile terminal can be set to be in a backlight brightness automatic adjusting mode or in a backlight brightness manual adjusting mode. In the backlight brightness automatic adjustment mode, the backlight brightness of the mobile terminal may be adjusted according to the change of the obtained ambient light intensity, or may be manually adjusted by the user on the basis of automatic adjustment, and when the automatic adjustment conflicts with the manual adjustment, the manual adjustment is generally used as the standard. In the manual adjustment mode, that is, in the case that the user closes the automatic adjustment, the backlight brightness of the mobile terminal is manually set by the user, and once the backlight brightness is set, the backlight brightness of the mobile terminal is fixed.
The backlight brightness of the mobile terminal can be controlled by a display module, and the display module of the mobile terminal generally includes: the display screen (such as a liquid crystal display screen, an LED display screen, an OLED display screen and the like), the backlight source (such as an LED backlight source), the driving circuit, the connecting piece and the control circuit. For a liquid crystal display screen or an LED display screen, the backlight source is positioned at the back of the display screen, the display screen does not emit light, and the display screen displays graphs or characters which are the result of modulating light generated by the display module group to the backlight source. For a liquid crystal display or LED display, the backlight generally includes a light source (e.g., an LED lamp), a light guide plate (e.g., the light guide plate may be made of acrylic material), an optical film, and a plastic frame. The light source is provided with a light guide plate, and the light guide plate is provided with an optical film. The light guide plate and the optical film can convert light generated by the light source into uniform light. In the embodiment of the present application, adjusting the backlight brightness of the mobile terminal mainly refers to adjusting the brightness of a backlight source.
In the manual backlight brightness adjusting mode, a user can adjust the backlight brightness of the mobile terminal by dragging the backlight progress bar of the mobile terminal.
102, the mobile terminal detects whether the current detection parameter is in an anti-shake interval, wherein the anti-shake interval comprises a stable interval and a fine-tuning interval.
In the embodiment of the application, the anti-shake interval is the anti-shake interval that this application embodiment designed, and this anti-shake interval not only includes stable interval, still includes the fine setting interval, and wherein, stable interval and fine setting interval do not have the coincidence.
The anti-shake interval in the embodiment of the present application may have 1 or at least 1 (2 or more than 2), and each anti-shake interval may include a stable interval and at least one fine-tuning interval.
Referring to fig. 2, fig. 2 is a schematic diagram of a display parameter curve disclosed in an embodiment of the present application, and as shown in fig. 2, an abscissa of the display parameter curve is a detected parameter (e.g., a light sensitivity value or a color temperature value), and an ordinate is a display parameter (e.g., a backlight brightness or a backlight color temperature). The anti-shake interval is divided into a stable interval and two fine-tuning intervals, and the stable interval is located between the two fine-tuning intervals. When the detection parameter is in the anti-shake interval, the change amplitude of the display parameter is smaller. Specifically, when the detected parameter is in the stable region, the display parameter remains unchanged, and when the detected parameter changes in the fine-tuning region, the change range of the display parameter is smaller.
103, if the current detection parameter falls into the fine adjustment interval, the mobile terminal determines a first display parameter corresponding to the current detection parameter according to the target display parameter curve, if the first display parameter is not equal to the current display parameter, the mobile terminal calculates the target display parameter according to the current display parameter and the first display parameter, the display parameter of the mobile terminal is adjusted from the current display parameter to the target display parameter, and the absolute value of the difference value between the target display parameter and the current display parameter is smaller than the absolute value of the difference value between the first display parameter and the current display parameter.
In the embodiment of the application, the target display parameter curve may be an automatic display parameter curve, or may be determined based on the automatic display parameter curve and the historical adjustment record. For example, referring to fig. 2, if the current detection parameter is a2 and falls into the fine tuning interval, the mobile terminal determines that the first display parameter corresponding to the current detection parameter is b2 according to the target display parameter curve. If the current display parameter is b1, the mobile terminal may calculate a target display parameter c2 according to the current display parameter b1 and the first display parameter b2, and adjust the display parameter of the mobile terminal from the current display parameter b1 to the target display parameter c2, wherein | c2-b1| < | b2-b1 |. For another example, referring to fig. 2, if the current detection parameter is a3 and falls into the fine-tuning interval, the mobile terminal determines that the first display parameter corresponding to the current detection parameter is b3 according to the target display parameter curve. If the current display parameter is b1, the mobile terminal may calculate a target display parameter c3 according to the current display parameter b1 and the first display parameter b3, and adjust the display parameter of the mobile terminal from the current display parameter b1 to the target display parameter c3, wherein | c3-b1| < | b3-b1 |.
In the embodiment of the application, the display parameters of the mobile terminal are not directly adjusted from b1 to b2 but from b1 to c2 in the fine adjustment interval, or the display parameters of the mobile terminal are not directly adjusted from b1 to b3 but from b1 to c 3. The display parameters are enabled to change slightly in the fine adjustment interval, the anti-shaking interval can be increased, and the anti-shaking capability is improved. For the display parameter of backlight brightness, the embodiment of the application can improve the display parameter to different degrees in a scene with large change of ambient light intensity, such as a scene with change of the posture of the mobile terminal or a street lamp scene. When the ambient light changes slightly, the backlight brightness of the screen can be adjusted slightly, comfortable brightness is provided under the condition that a user does not sense the ambient light, and the user experience of the automatic brightness function is enhanced.
Optionally, in step 103, the mobile terminal calculates the target display parameter according to the current display parameter and the first display parameter, and may include the following steps:
(11) the mobile terminal calculates the absolute value of the difference between the current display parameter and the first display parameter, and multiplies the absolute value of the difference by an attenuation coefficient to obtain an attenuation difference, wherein the attenuation coefficient is less than 1;
(12) if the first display parameter is larger than the current display parameter, the mobile terminal adds the attenuation difference value to the current display parameter to obtain a target display parameter;
(13) and if the first display parameter is smaller than the current display parameter, the mobile terminal subtracts the attenuation difference from the current display parameter to obtain the target display parameter.
In the embodiment of the present application, the attenuation coefficient may be preset and stored in a memory (e.g., a nonvolatile memory) of the mobile terminal. For example, the attenuation coefficient may be set to 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, or the like. The attenuation coefficient of the embodiment of the application is fixed in the whole fine adjustment interval. The embodiment of the application provides a method for calculating a target display parameter, so that the absolute value of the difference between the target display parameter and the current display parameter is smaller than the absolute value of the difference between the first display parameter and the current display parameter. The display parameters are enabled to change slightly in the fine adjustment interval, the anti-shaking interval can be increased, and the anti-shaking capability is improved.
Optionally, the fine tuning interval is divided into N fine tuning subintervals, where N is a positive integer; in step 103, the mobile terminal calculates the target display parameter according to the current display parameter and the first display parameter, which may include the following steps:
(21) if the current detection parameter falls into the first fine tuning subinterval, the mobile terminal determines a first attenuation coefficient corresponding to the first fine tuning subinterval; the first vernier interval is any one of N vernier intervals;
(22) the mobile terminal calculates the absolute value of the difference between the current display parameter and the first display parameter, and multiplies the absolute value of the difference by a first attenuation coefficient to obtain a first attenuation difference, wherein the first attenuation coefficient is less than 1;
(23) if the first display parameter is larger than the current display parameter, the mobile terminal adds the first attenuation difference value to the current display parameter to obtain a target display parameter;
(24) and if the first display parameter is smaller than the current display parameter, the mobile terminal subtracts the first attenuation difference from the current display parameter to obtain the target display parameter.
In the embodiment of the present application, each of the N fine tuning subintervals may correspond to one attenuation coefficient, and different attenuation coefficients may be used in different fine tuning subintervals. Therefore, the anti-shake interval can be further increased, and the anti-shake capacity is improved. For the display parameter being the backlight brightness, a strategy of changing the brightness in the fine adjustment interval can be adopted, so that the backlight brightness can change more stably in the fine adjustment interval.
The attenuation coefficient corresponding to the fine tuning subinterval is described below by taking fig. 3 as an example. Referring to fig. 3, fig. 3 is a schematic diagram of a vernier zone according to an embodiment of the present application. As shown in fig. 3, taking N equal to 6 as an example, the fine tuning interval is divided into 6 fine tuning sub-intervals: subinterval 1, subinterval 2, subinterval 3, subinterval 4, subinterval 5, subinterval 6. For example, the attenuation coefficient corresponding to the subinterval 1 is f1, the attenuation coefficient corresponding to the subinterval 2 is f2, the attenuation coefficient corresponding to the subinterval 3 is f3, the attenuation coefficient corresponding to the subinterval 4 is f5, the attenuation coefficient corresponding to the subinterval 5 is f5, and the attenuation coefficient corresponding to the subinterval 6 is f 6. Wherein f1, f2, f3, f4, f5 and f6 are all less than 1. For example, f1 is set to 0.1, f2 is set to 0.2, f3 is set to 0.3, f4 is set to 0.1, f5 is set to 0.2, f6 is set to 0.3.
Optionally, an attenuation coefficient of the N fine tuning subintervals far from the stable interval is greater than an attenuation coefficient of the N fine tuning subintervals near the stable interval.
The attenuation coefficient of the fine tuning subinterval close to the stable interval is set to be smaller, the attenuation coefficient of the fine tuning subinterval far away from the stable interval is set to be larger, and the display parameter can only change in a small range when the detection parameter changes from the stable interval to the fine tuning subinterval, so that the anti-shaking interval can be further increased, and the anti-shaking capacity is improved. Strategies with different attenuation coefficients can be adopted in the fine adjustment interval, so that the display parameters can change more stably in the fine adjustment interval.
Optionally, the target display parameter curve is determined based on the display parameter automatic adjustment mode and the target historical adjustment record.
And 104, if the current detection parameter falls into the stable interval, the mobile terminal determines a stable value corresponding to the stable interval, and if the stable value is not equal to the current display parameter, the mobile terminal adjusts the display parameter of the mobile terminal from the current display parameter to the stable value corresponding to the stable interval.
In the embodiment of the application, when the detection parameter is in the stable interval, the display parameter of the mobile terminal is fixed at the stable value corresponding to the stable interval. The display parameter corresponding to a certain detection parameter in the stable interval can be determined as a stable value corresponding to the stable interval according to the target display parameter curve. For example, the display parameter corresponding to the middle value of the stable interval may be determined as the stable value corresponding to the stable interval according to the target display parameter curve. For example, referring to fig. 2, the display parameter b1 of the middle value a1 of the stable interval on the target display parameter curve is taken as the stable value corresponding to the stable interval.
The embodiment of the application can be through setting up including the interval of stabilizing the interval and finely tuning the interval anti-shake for show the parameter and keep stable in stabilizing the interval, keep small change in finely tuning the interval, thereby keep the anti-shake ability in great anti-shake interval, improve the anti-shake ability in the anti-shake interval.
Referring to fig. 4, fig. 4 is a schematic flow chart of another display parameter adjustment method disclosed in the embodiment of the present application, and as shown in fig. 4, the display parameter adjustment method includes the following steps.
401, when the mobile terminal is in the automatic display parameter adjustment mode, the mobile terminal obtains the current scene parameters.
In this embodiment of the application, the scene parameter may include at least one of a light sensing value, a color temperature value, a foreground application of the mobile terminal, a network state of the mobile terminal, an electric quantity of the mobile terminal, a time interval, and a geographic location of the mobile terminal. The light sensing value can be obtained by a light sensor of the mobile terminal, and the color temperature value can be obtained by a color temperature sensor of the mobile terminal. Foreground application, which refers to an application program currently operated by a user; the network status may include whether to use the data network. Further, if a data network is used, the network status may also include whether a WiFi network or a mobile data network is used, the uplink and downlink rates of the network, the network delay, etc. Further, if the WiFi network is used, the network status may further include a Service Set Identifier (SSID) corresponding to the WiFi network. The power of the mobile terminal may include a percentage of a remaining battery power of the mobile terminal to a total battery power. The time interval includes a time interval in which a time point when the scene occurs is located. The granularity of the time interval can be in hours or minutes. For example, the granularity of the time interval may be 1 hour, 30 minutes, etc., and the examples of the present application are not limited thereto. For example, if the scene occurs at 18 o ' clock and 20 min, the time interval is 18 o ' clock to 19 o ' clock. The geographic location may include latitude and longitude information, and the geographic location of the mobile terminal may be obtained through a Global Positioning System (GPS) location of the mobile terminal.
Alternatively, the scene parameters to be considered may be different for different display parameters. For example, for the scene parameter being backlight brightness, the scene parameter to be considered may include a light sensation value, a foreground application of the mobile terminal, a network state of the mobile terminal, an electric quantity of the mobile terminal, a time interval, and a geographic location of the mobile terminal; for the scene parameter being the backlight color temperature, the scene parameter to be considered may include a color temperature value, a foreground application of the mobile terminal, a network state of the mobile terminal, an electric quantity of the mobile terminal, a time interval, and a geographic location of the mobile terminal.
402, the mobile terminal determines a target scene parameter with the highest similarity to the current scene parameter in the historical manual adjustment set and a corresponding target similarity, wherein the target scene parameter is a scene parameter contained in a target historical adjustment record in the historical manual adjustment set.
In an embodiment of the present application, the historical manual adjustment set may include at least one historical adjustment record, and each historical adjustment record includes a historical scene parameter and a corresponding historical display parameter value. And the historical display parameter value is the value of the display parameter manually adjusted by the user in the historical scene corresponding to the historical scene parameter.
The mobile terminal can respectively calculate the similarity between each historical scene parameter in each historical adjustment record in the historical manual adjustment set and the current scene parameter, and obtain the target scene parameter with the highest similarity to the current scene parameter in the historical manual adjustment set and the corresponding target similarity. And the target similarity is the similarity between the current scene parameter and the target scene parameter.
Optionally, in step 402, the mobile terminal determines a target scene parameter with the highest similarity to the current scene parameter in the historical manual adjustment set and a corresponding target similarity, which may specifically include the following steps:
(31) the mobile terminal calculates the similarity between each scene parameter in the historical manual adjustment set and the current scene parameter through a similarity algorithm;
(32) the mobile terminal determines the scene parameter with the highest similarity to the current scene parameter in the historical manual adjustment set as the target scene parameter, and determines the similarity between the current scene parameter and the target scene parameter as the target similarity.
In the embodiment of the application, the similarity calculation method may use a distance function to calculate, where the distance function may include one of an euclidean distance function, a cosine distance function, a hamming distance function, and a manhattan distance function.
Each scene parameter in the historical manual adjustment set can be converted into a vector, the current scene parameter can also be converted into a vector, and the similarity between each scene parameter in the historical manual adjustment set and the current scene parameter can be calculated by calculating the similarity between the two vectors. The dimensions (or number of bits) of the two vectors may be the same or different.
For example, for the display parameter being backlight brightness, the scene parameters include a light sensation value, a foreground application of the mobile terminal, a network status of the mobile terminal, a power level of the mobile terminal, a time interval, and a geographic location of the mobile terminal. If a historical scene parameter is specifically: the light sensation value is 1000lux, the foreground application of the mobile terminal is application A (a certain social application), the network state of the mobile terminal is a mobile data network, the residual electric quantity of the mobile terminal is 50%, the time interval is noon (11: 00-1: 00), and the geographic position of the mobile terminal is (longitude: +111.11, latitude: + 42.13); the current scene parameters are specifically: the light sensation value is 1200lux, the foreground application of the mobile terminal is application B (a certain game application), the network state of the mobile terminal is a WiFi data network, the residual capacity of the mobile terminal is 90%, the time interval is unitary (17: 00-19: 00), and the geographic position of the mobile terminal is (longitude: +111.11, latitude: + 42.13). The mobile terminal may convert a certain item of the scene parameter into a corresponding numerical value, for example, the light sensation value is 1000lux to 5, and the light sensation value is 1200lux to 6; application a converts to 3 and application B converts to 10; the mobile data network is converted into 0, and the WiFi data network is converted into 1; the residual capacity is converted into 5 when the residual capacity is 50 percent, and is converted into 9 when the residual capacity is 90 percent; converting the time interval into 7 at noon and 10 at unitary time; the geographical position (longitude: +111.11, latitude: +42.13) of the mobile terminal is converted into (8, 5), then the parameter vector corresponding to the historical scene parameter is (5, 3, 0, 5, 7, 8, 5), and the parameter vector corresponding to the current scene parameter is (6, 10, 1, 9, 10, 8, 5).
It should be noted that the above example is only one possible example, and the embodiment of the present application may adjust the value corresponding to the vector converted by each item in the scene parameter according to the situation.
Optionally, the mobile terminal calculates the similarity between each scene parameter in the historical manual adjustment set and the current scene parameter through an euclidean distance calculation formula.
Specifically, the mobile terminal obtains a parameter vector corresponding to each scene parameter in the historical manual adjustment set, obtains a parameter vector corresponding to the current scene parameter, respectively calculates the Euclidean distance between the parameter vector corresponding to each scene parameter and the parameter vector corresponding to the current scene parameter according to an Euclidean distance calculation formula, and determines the similarity between each scene parameter in the historical manual adjustment set and the current scene parameter according to the calculated Euclidean distance.
For example, the parameter vector corresponding to the first historical scene parameter in the historical manual adjustment set is (x)1,y1) The parameter vector corresponding to the current scene parameter is (x)2,y2) Wherein the first historical scene parameter isOne of all scene parameters in the set is adjusted manually historically. The mobile terminal may calculate the euclidean distance between the parameter vector corresponding to the first historical scene parameter and the parameter vector corresponding to the current scene parameter according to the following euclidean distance calculation formula:
wherein d is the calculated euclidean distance. The larger the Euclidean distance is, the smaller the similarity between the first historical scene parameter and the current scene parameter is, and the smaller the Euclidean distance is, the larger the similarity between the first historical scene parameter and the current scene parameter is.
Optionally, the mobile terminal calculates the similarity between each scene parameter in the historical manual adjustment set and the current scene parameter through a cosine distance calculation formula.
Specifically, the mobile terminal obtains a parameter vector corresponding to each scene parameter in the historical manual adjustment set, obtains a parameter vector corresponding to the current scene parameter, respectively calculates the cosine distance between the parameter vector corresponding to each scene parameter and the parameter vector corresponding to the current scene parameter according to a cosine distance calculation formula, and determines the similarity between each scene parameter in the historical manual adjustment set and the current scene parameter according to the calculated cosine distance.
For example, the parameter vector corresponding to the second historical scene parameter in the historical manual adjustment set is (a)1,a2,a3,a4,a5) The parameter vector corresponding to the current scene parameter is (b)1,b2,b3,b4,b5) Wherein the second historical scene parameter is one of all scene parameters in the historical manual adjustment set. The mobile terminal may calculate the cosine distance between the parameter vector corresponding to the second historical scene parameter and the parameter vector corresponding to the current scene parameter according to the following cosine distance calculation formula:
and P is the cosine distance between the parameter vector corresponding to the second historical scene parameter and the parameter vector corresponding to the current scene parameter, namely the similarity between the second scene parameter and the current scene parameter. The value of P is between-1 and 1, and the larger the value of P is, the higher the similarity of the two is. When the value of P is 1, the similarity between the two is the highest, and when the value of P is-1, the similarity between the two is the lowest.
Optionally, the mobile terminal calculates the similarity between each scene parameter in the historical manual adjustment set and the current scene parameter through a hamming distance calculation formula.
Specifically, the mobile terminal obtains a parameter vector corresponding to each scene parameter in the historical manual adjustment set, obtains a parameter vector corresponding to the current scene parameter, respectively calculates a hamming distance between the parameter vector corresponding to each scene parameter and the parameter vector corresponding to the current scene parameter according to a hamming distance calculation formula, and determines the similarity between each scene parameter in the historical manual adjustment set and the current scene parameter according to the calculated hamming distance.
For example, the parameter vector corresponding to the third historical scene parameter in the historical manual adjustment set is (c)1,c2,c3,c4,c5,c6,c7,c8,c9,c10) The parameter vector corresponding to the current scene parameter is (d)1,d2,d3,d4,d5,d6,d7,d8,d9,d10) Wherein the third historical scene parameter is one of all scene parameters in the historical manual adjustment set. The parameter vector corresponding to the scene parameter of the third history is 10 bits, the parameter vector corresponding to the current scene parameter is 10 bits, and each bit of the parameter vector corresponding to the scene parameter of the third history is compared with each bit of the parameter vector corresponding to the current scene parameter to determine whether the bits are the same (i.e., c is compared respectively)1And d1Whether they are the same, c2And d2Whether they are the same, c3And d3Whether they are the same, c4And d4Whether they are the same, c5And d5Whether they are the same, c6And d6Whether they are the same, c7And d7Whether they are the same, c8And d8Whether they are the same, c9And d9Whether they are the same, c10And d10Whether the data are the same or not) is judged, if so, the Hamming distance corresponding to the bit is 0, if not, the Hamming distance corresponding to the bit is 1, the Hamming distances of all the bits are added to obtain the final Hamming distance between the parameter vector corresponding to the third history scene parameter and the parameter vector corresponding to the current scene parameter, and the final Hamming distance is 0-10. The larger the final Hamming distance is, the lower the similarity is; the smaller the final hamming distance, the higher its similarity.
Optionally, before performing step (32), the following steps may also be performed:
(41) the mobile terminal detects whether the number of historical adjustment records in the historical manual adjustment set is greater than or equal to a second threshold value;
(42) if the number of the historical adjustment records in the historical manual adjustment set is larger than or equal to the second threshold value, the mobile terminal executes the step (32).
(43) And if the number of the historical adjustment records in the historical manual adjustment set is smaller than a second threshold value, the mobile terminal adjusts the display parameters of the mobile terminal according to the automatic display parameter curve.
In the embodiment of the present application, the second preset threshold may be preset and stored in a memory (e.g., a non-volatile memory) of the mobile terminal. For example, the second preset threshold may be set equal to 20. The size of the second preset threshold can be determined according to actual conditions, generally speaking, the larger the second preset threshold is set, the more the subsequently generated new display parameter curve conforms to the manual regulation habit of the user, and the reliability is higher. The set time is too large, so that the repeated manual adjustment times of the user can be increased, and the user experience is influenced. If the setting is too small, the reliability of the subsequently generated new display parameter curve is relatively low.
According to the method and the device, the scene parameter with the highest similarity to the current scene parameter is determined as the target scene parameter from the historical manual adjustment set only when the number of the historical adjustment records in the historical manual adjustment set is larger than or equal to the second threshold, and the similarity between the current scene parameter and the target scene parameter is determined as the target similarity. Therefore, the follow-up generated new display parameter curve is more in line with the manual adjustment habit of the user, the reliability is higher, the repeated adjustment of the display parameters by the user is avoided, and the use experience of the user is improved.
And 403, if the similarity of the target is greater than or equal to the first threshold, the mobile terminal acquires a target display parameter value included in the target historical adjustment record, and generates a target display parameter curve according to the target scene parameter, the target display parameter value and the automatic display parameter curve, wherein the automatic display parameter curve is a corresponding display parameter curve in the automatic display parameter adjustment mode.
In the embodiment of the application, the target similarity is greater than or equal to the first threshold, which indicates that the current scene parameter is closer to the target scene parameter, and the mobile terminal may generate the target display parameter curve according to the target scene parameter, the target display parameter value and the automatic display parameter curve.
The first threshold may be preset and stored in a memory (e.g., a non-volatile memory) of the mobile terminal.
The mobile terminal may re-fit the automatic display parameter curve according to the target scene parameters and the target display parameter values, so that the generated target display parameter curve passes through the data points corresponding to the target scene parameters, and the target display parameter curve is smooth, that is, the target display parameter curve is conductive everywhere. The abscissa of the data point corresponding to the target scene parameter includes a light sensation value or a color temperature value in the target scene parameter, and the ordinate of the data point corresponding to the target scene parameter includes a target display parameter value.
The following description will take the display parameter as the backlight brightness, and the scene parameter includes the light sensation value, the foreground application of the mobile terminal, the network state of the mobile terminal, the power of the mobile terminal, the time interval, and the geographic location of the mobile terminal as examples.
Referring to fig. 5, fig. 5 is a schematic diagram of generating a target backlight luminance curve according to an embodiment of the present disclosure. As shown in fig. 5, the graph at the upper left corner is an automatic backlight brightness graph, and the graphs at the lower left corner, the upper right corner and the lower right corner are target backlight brightness graphs generated based on three different history adjustment records, respectively. In the figure, the abscissa is the light sensation value, the ordinate is the backlight luminance, the curve with thinner lines is the automatic backlight luminance curve, and the curve with thicker lines is the target backlight luminance curve. Black points in the automatic backlight brightness curve chart and the target backlight brightness curve chart are historical adjustment records, each black point represents one historical adjustment record, the abscissa of each black point represents the light sensation value corresponding to the time point of the historical adjustment record, and the ordinate of each black point represents the backlight brightness adjusted by the user and recorded in the historical adjustment record. P1, P2 and P3 in FIG. 5 represent three history adjustment records, respectively. The upper right-hand graph represents the target backlight luminance graph generated based on P1, the lower left-hand graph represents the target backlight luminance graph generated based on P2, and the lower right-hand graph represents the target backlight luminance graph generated based on P3.
It should be noted that, in the upper left corner of fig. 5, only three black dots are exemplarily drawn to illustrate the historical adjustment records, the number of the historical adjustment records theoretically only needs to be 1, may also be more than 3, may also be more than 20, and the like, and the embodiment of the present application is not limited.
Wherein, after performing step 403, the mobile terminal may perform steps 404 to 407.
Optionally, after the step 402 is executed, the following steps may also be executed:
and if the target similarity is smaller than the first threshold, the mobile terminal determines that the automatic display parameter curve is the target display parameter curve.
After the mobile terminal determines that the automatic display parameter curve is the target display parameter curve, steps 404 to 407 may be further performed.
If the target similarity is smaller than the first threshold, which indicates that the historical manual adjustment set does not have scene parameters which are similar to the current scene parameters, the mobile terminal does not refer to the historical adjustment record, takes the automatic display parameter curve as a target display parameter curve, and directly adjusts the display parameters of the mobile terminal by adopting the automatic display parameter curve in the subsequent steps 404 to 407.
According to the method and the device, the target display parameter curve can be generated according to the historical manual adjustment record of the user, the target display parameter curve combines the parameters of manual adjustment of the historical scene closest to the current scene on the basis of automatically displaying the parameter curve, so that the target display parameter curve better meets the display parameter adjustment requirement of the current scene of the user, the situation of repeated manual adjustment is avoided, the adjustment effect of the display parameters is improved, and further the user experience is improved.
Optionally, before performing step 401, the following steps may also be performed:
(51) the mobile terminal detects a manual adjustment operation for a display parameter when the mobile terminal is in an automatic adjustment mode for the display parameter.
(52) The mobile terminal obtains the display parameter value adjusted by the manual adjustment operation, and obtains the scene parameter corresponding to the manual adjustment operation.
(53) And the mobile terminal records the display parameter value and the scene parameter as a historical adjustment record in the historical manual adjustment set.
The mobile terminal detects a manual adjustment operation for the display parameter, and specifically includes: the mobile terminal detects a drag operation for a slider in the display parameter progress bar.
Wherein, the display parameter progress bar may comprise a backlight brightness progress bar or a backlight color temperature progress bar.
For example, for the backlight brightness progress bar, the user may adjust the slider in the backlight brightness progress bar from a first position to a second position, where the backlight brightness value corresponding to the first position is the backlight brightness value determined according to the automatic backlight brightness curve, and the backlight brightness value corresponding to the second position is the backlight brightness value adjusted by the user through the manual adjustment operation.
The manual adjusting operation may include an operation of manually adjusting the brightness of the backlight or an operation of manually adjusting the color temperature of the backlight. The display parameter value of the operation of manually adjusting the backlight brightness is the backlight brightness value adjusted by the manual adjusting operation of the user, and the display parameter value of the operation of manually adjusting the backlight color temperature is the backlight color temperature value adjusted by the manual adjusting operation of the user.
In an embodiment of the present application, the historical manual adjustment set may include at least one historical adjustment record, and each historical adjustment record includes a historical scene parameter and a corresponding historical display parameter value.
Steps (51) to (53) in the embodiment of the present application are specific procedures of recording the historical adjustment records in the historical manual adjustment set.
Optionally, before performing step (53), the following steps may also be performed:
(61) the mobile terminal calculates a corresponding automatic display parameter value according to the automatic display parameter curve;
(62) the mobile terminal calculates whether the difference value between the display parameter value adjusted by the manual adjustment operation and the automatic display parameter value is smaller than or equal to the target difference value corresponding to the scene parameter corresponding to the manual adjustment operation;
(63) if the difference between the display parameter value adjusted by the manual adjustment operation and the automatic display parameter value is smaller than or equal to the target difference, the mobile terminal executes step (53).
(64) If the display parameter value adjusted by the manual adjustment operation and the automatic display parameter value are larger than the target difference value, the mobile terminal does not record the display parameter value and the scene parameter as a historical adjustment record in a historical manual adjustment set.
In the embodiment of the present application, the mobile terminal calculates the corresponding automatic display parameter value according to the automatic display parameter curve, including: if the display parameter is backlight brightness, the mobile terminal calculates an automatic backlight brightness value corresponding to a light sensation value in the scene parameter corresponding to the manual adjustment operation according to the automatic backlight brightness curve; and if the display parameter is the backlight color temperature, the mobile terminal calculates an automatic backlight color temperature value corresponding to the color temperature value in the scene parameter corresponding to the manual adjustment operation according to the automatic backlight color temperature curve.
After each manual adjustment operation, the mobile terminal may calculate whether a difference between the display parameter value adjusted by the manual adjustment operation and the automatic display parameter value is less than or equal to a target difference corresponding to the scene parameter corresponding to the manual adjustment operation. In some cases, if the difference between the manually adjusted value of the user and the automatically displayed parameter value calculated by the automatically displayed parameter curve is large, the manually adjusted value of the display parameter and the scene parameter are determined to be invalid and are not recorded in the historical manually adjusted set. The situation that the generated new display parameter curve does not accord with the use habit of the user due to manual error adjustment or malicious manual adjustment of the user is avoided.
The maximum difference value between the value allowed to be manually adjusted by the user and the value of the automatic display parameter calculated by the automatic display parameter curve can be the same or different when the mobile terminal is in different scenes. For example, in an outdoor scene, a larger difference may be allowed, and in a nighttime scene, a smaller difference may be allowed. The scene in which the mobile terminal is located may be determined according to scene generation. The difference values corresponding to different scene parameters may be pre-stored in a memory (e.g., a non-volatile memory) of the mobile terminal.
404, when the mobile terminal is in the automatic display parameter adjustment mode, the mobile terminal obtains the current display parameters and the current detection parameters.
405, the mobile terminal detects whether the current detection parameter is in an anti-shake interval, where the anti-shake interval includes a stable interval and a fine-tuning interval.
And 406, if the current detection parameter falls into the fine-tuning interval, the mobile terminal determines a first display parameter corresponding to the current detection parameter according to the target display parameter curve, if the first display parameter is not equal to the current display parameter, the mobile terminal calculates the target display parameter according to the current display parameter and the first display parameter, adjusts the display parameter of the mobile terminal from the current display parameter to the target display parameter, and the absolute value of the difference between the target display parameter and the current display parameter is smaller than the absolute value of the difference between the first display parameter and the current display parameter.
And 407, if the current detection parameter falls into the stable interval, the mobile terminal determines a stable value corresponding to the stable interval, and if the stable value is not equal to the current display parameter, the mobile terminal adjusts the display parameter of the mobile terminal from the current display parameter to the stable value corresponding to the stable interval.
In this embodiment, the specific implementation of steps 404 to 407 may refer to steps 101 to 104 shown in fig. 1, which is not described herein again.
According to the embodiment of the application, the target display parameter curve can be generated according to the historical manual adjustment records of the user, and as the historical manual adjustment records are selected from the historical real adjustment records of the user, some conjectured or fused unreal manual adjustment records cannot appear, so that the historical adjustment habit of the user is better met. The target display parameter curve combines the parameters of manual adjustment of the historical scene closest to the current scene on the basis of automatically displaying the parameter curve, so that the target display parameter curve better meets the adjustment requirement of the display parameters of the current scene of the user, the situation of repeated manual adjustment is avoided, the adjustment effect of the display parameters is improved, and further the user experience is improved.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a display parameter adjusting apparatus according to an embodiment of the present disclosure. As shown in fig. 6, the display parameter adjustment apparatus 600 includes an acquisition unit 601, a detection unit 602, a determination unit 603, a calculation unit 604, and an adjustment unit 605, where:
an obtaining unit 601, configured to obtain a current display parameter and a current detection parameter when the mobile terminal is in an automatic display parameter adjustment mode;
a detecting unit 602, configured to detect whether the current detection parameter is in an anti-shake interval, where the anti-shake interval includes a stable interval and a fine-tuning interval;
a determining unit 603, configured to determine, according to a target display parameter curve, a first display parameter corresponding to the current detection parameter when the current detection parameter falls into the fine-tuning interval;
a calculating unit 604, configured to calculate a target display parameter according to the current display parameter and the first display parameter when the first display parameter is not equal to the current display parameter;
an adjusting unit 605, configured to adjust a display parameter of the mobile terminal from the current display parameter to a target display parameter, where an absolute value of a difference between the target display parameter and the current display parameter is smaller than an absolute value of a difference between the first display parameter and the current display parameter;
the determining unit 603 is further configured to determine a stable value corresponding to the stable interval when the current detection parameter falls into the stable interval;
the adjusting unit 605 is further configured to adjust the display parameter of the mobile terminal from the current display parameter to a stable value corresponding to the stable interval when the stable value is not equal to the current display parameter.
Optionally, the calculating unit 604 calculates the target display parameter according to the current display parameter and the first display parameter, specifically: calculating the absolute value of the difference value between the current display parameter and the first display parameter, and multiplying the absolute value of the difference value by an attenuation coefficient to obtain an attenuation difference value, wherein the attenuation coefficient is less than 1; under the condition that the first display parameter is larger than the current display parameter, adding the attenuation difference value to the current display parameter to obtain the target display parameter; and under the condition that the first display parameter is smaller than the current display parameter, subtracting the attenuation difference value from the current display parameter to obtain the target display parameter.
Optionally, the fine tuning interval is divided into N fine tuning subintervals, where N is a positive integer; the calculating unit 604 calculates a target display parameter according to the current display parameter and the first display parameter, specifically:
under the condition that the current detection parameter falls into a first fine tuning subinterval, determining a first attenuation coefficient corresponding to the first fine tuning subinterval; the first vernier interval is any one of the N vernier intervals; calculating the absolute value of the difference value between the current display parameter and the first display parameter, and multiplying the absolute value of the difference value by the first attenuation coefficient to obtain a first attenuation difference value, wherein the first attenuation coefficient is less than 1; adding the first attenuation difference to the current display parameter to obtain the target display parameter under the condition that the first display parameter is larger than the current display parameter; and under the condition that the first display parameter is smaller than the current display parameter, subtracting the first attenuation difference value from the current display parameter to obtain the target display parameter.
Optionally, an attenuation coefficient of the N fine tuning subintervals far from the stable interval is greater than an attenuation coefficient of the N fine tuning subintervals near the stable interval.
Optionally, the target display parameter curve is determined based on the display parameter automatic adjustment mode and the target historical adjustment record.
Optionally, the display parameter adjustment apparatus 600 may further include a generation unit 606;
the obtaining unit 601 is further configured to obtain a current scene parameter when the mobile terminal is in the automatic display parameter adjustment mode before the determining unit 603 determines the first display parameter corresponding to the current detection parameter according to the target display parameter curve;
the determining unit 603 is further configured to determine a target scene parameter with the highest similarity to the current scene parameter in a historical manual adjustment set and a corresponding target similarity, where the target scene parameter is a scene parameter included in a target historical adjustment record in the historical manual adjustment set;
the obtaining unit 601 is further configured to obtain a target display parameter value included in the target history adjustment record when the target similarity is greater than or equal to a first threshold;
the generating unit 606 is configured to generate the target display parameter curve according to the target scene parameter, the target display parameter value, and an automatic display parameter curve, where the automatic display parameter curve is a corresponding display parameter curve in the display parameter automatic adjustment mode.
Optionally, the determining unit 603 determines the target scene parameter with the highest similarity to the current scene parameter in the historical manual adjustment set and the corresponding target similarity, specifically: calculating the similarity between each scene parameter in the historical manual regulation set and the current scene parameter through a similarity algorithm; and determining the scene parameter with the highest similarity to the current scene parameter in the historical manual adjustment set as a target scene parameter, and determining the similarity between the current scene parameter and the target scene parameter as a target similarity.
Optionally, the detecting unit 602 is further configured to detect whether the number of historical adjustment records in the historical manual adjustment set is greater than or equal to a second threshold before the determining unit 603 determines that the scene parameter with the highest similarity to the current scene parameter in the historical manual adjustment set is the target scene parameter and determines that the similarity between the current scene parameter and the target scene parameter is the target similarity;
the determining unit 603 is further configured to determine, when the number of the historical adjustment records in the historical manual adjustment set is greater than or equal to the second threshold, a scene parameter with the highest similarity to the current scene parameter in the historical manual adjustment set as the target scene parameter, and determine that the similarity between the current scene parameter and the target scene parameter is the target similarity.
Optionally, the determining unit 603 is further configured to determine, when the target similarity is smaller than a first threshold, that the automatic display parameter curve is a target display parameter curve.
Optionally, the display parameter adjustment apparatus 600 may further include a recording unit 607;
the detecting unit 602 is further configured to detect a manual adjustment operation for the display parameter when the mobile terminal is in the automatic display parameter adjustment mode.
The acquiring unit 601 is configured to acquire a display parameter value adjusted by a manual adjustment operation, and acquire a scene parameter corresponding to the manual adjustment operation.
The recording unit 607 is configured to record the display parameter value and the scene parameter as a historical adjustment record in the historical manual adjustment set.
Optionally, the calculating unit 604 is further configured to calculate a corresponding automatic display parameter value according to an automatic display parameter curve;
the calculating unit 604 is further configured to calculate whether a difference between the display parameter value adjusted by the manual adjustment operation and the automatic display parameter value is smaller than or equal to a target difference corresponding to the scene parameter corresponding to the manual adjustment operation;
the recording unit 607 is configured to record the display parameter value and the scene parameter as a historical adjustment record in the historical manual adjustment set when the difference between the display parameter value adjusted by the manual adjustment operation and the automatic display parameter value is less than or equal to the target difference.
Optionally, the display parameter includes a backlight brightness or a backlight color temperature.
The obtaining unit 601, the detecting unit 602, the determining unit 603, the calculating unit 604, the adjusting unit 605, the generating unit 606, and the recording unit 607 in the embodiment of the present application may be processors of mobile terminals.
Implementing the display parameter adjusting device shown in fig. 6, can be through setting up including the anti-shake interval between stable interval and fine setting for the display parameter remains stable in stable interval, keeps small change in fine setting interval, thereby keeps anti-shake ability in great anti-shake interval, improves the anti-shake ability in the anti-shake interval.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. As shown in fig. 7, the mobile terminal 700 includes a processor 701 and a memory 702, where the mobile terminal 700 may further include a bus 703, the processor 701 and the memory 702 may be connected to each other through the bus 703, and the bus 703 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus. The mobile terminal 700 may further include an input/output device 704, and the input/output device 704 may include a display screen, such as a liquid crystal display screen, an LED display screen, an OLED display screen, and the like. The memory 702 is used to store one or more programs containing instructions; the processor 701 is configured to invoke instructions stored in the memory 702 to perform some or all of the method steps described above with respect to fig. 1-4.
Implementing the mobile terminal shown in fig. 7, the anti-shaking interval including the stable interval and the fine-tuning interval can be set, so that the display parameters can be kept stable in the stable interval, and can be changed slightly in the fine-tuning interval, thereby keeping the anti-shaking capability in the larger anti-shaking interval and improving the anti-shaking capability in the anti-shaking interval.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the display parameter adjustment methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the display parameter adjustment methods as set forth in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: a flash disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
The foregoing embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A display parameter adjustment method, comprising:
when the mobile terminal is in an automatic display parameter adjusting mode, acquiring current display parameters and current detection parameters;
detecting whether the current detection parameter is in an anti-shake interval or not, wherein the anti-shake interval comprises a stable interval and a fine-tuning interval;
if the current detection parameter falls into the fine adjustment interval, determining a first display parameter corresponding to the current detection parameter according to a target display parameter curve, if the first display parameter is not equal to the current display parameter, calculating a target display parameter according to the current display parameter and the first display parameter, and adjusting the display parameter of the mobile terminal from the current display parameter to a target display parameter, wherein the absolute value of the difference between the target display parameter and the current display parameter is smaller than the absolute value of the difference between the first display parameter and the current display parameter;
and if the current detection parameter falls into the stable interval, determining a stable value corresponding to the stable interval, and if the stable value is not equal to the current display parameter, adjusting the display parameter of the mobile terminal from the current display parameter to the stable value corresponding to the stable interval.
2. The method of claim 1, wherein calculating target display parameters based on the current display parameters and the first display parameters comprises:
calculating the absolute value of the difference value between the current display parameter and the first display parameter, and multiplying the absolute value of the difference value by an attenuation coefficient to obtain an attenuation difference value, wherein the attenuation coefficient is less than 1;
if the first display parameter is larger than the current display parameter, adding the attenuation difference value to the current display parameter to obtain the target display parameter;
and if the first display parameter is smaller than the current display parameter, subtracting the attenuation difference value from the current display parameter to obtain the target display parameter.
3. The method of claim 1, wherein the fine tuning interval is divided into N fine tuning subintervals, N being a positive integer; the calculating target display parameters according to the current display parameters and the first display parameters comprises:
if the current detection parameter falls into a first fine tuning subinterval, determining a first attenuation coefficient corresponding to the first fine tuning subinterval; the first vernier interval is any one of the N vernier intervals;
calculating the absolute value of the difference value between the current display parameter and the first display parameter, and multiplying the absolute value of the difference value by the first attenuation coefficient to obtain a first attenuation difference value, wherein the first attenuation coefficient is less than 1;
if the first display parameter is larger than the current display parameter, adding the first attenuation difference value to the current display parameter to obtain the target display parameter;
and if the first display parameter is smaller than the current display parameter, subtracting the first attenuation difference value from the current display parameter to obtain the target display parameter.
4. The method of claim 3, wherein the attenuation coefficient of the N fine sub-intervals further from the stable interval is greater than the attenuation coefficient of the N fine sub-intervals closer to the stable interval.
5. The method according to any one of claims 1 to 4, wherein the target display parameter curve is determined based on the display parameter automatic adjustment mode and a target historical adjustment record.
6. The method according to claim 5, wherein before determining the first display parameter corresponding to the current detection parameter according to the target display parameter curve, the method further comprises:
when the mobile terminal is in the automatic display parameter adjusting mode, acquiring current scene parameters;
determining a target scene parameter with the highest similarity to the current scene parameter in a historical manual adjustment set and a corresponding target similarity, wherein the target scene parameter is a scene parameter contained in a target historical adjustment record in the historical manual adjustment set;
if the target similarity is larger than or equal to a first threshold, acquiring a target display parameter value contained in the target historical adjustment record, and generating a target display parameter curve according to the target scene parameter, the target display parameter value and an automatic display parameter curve, wherein the automatic display parameter curve is a corresponding display parameter curve in the display parameter automatic adjustment mode.
7. The method according to any one of claims 1 to 6, wherein the display parameter comprises backlight brightness or backlight color temperature.
8. A display parameter adjustment apparatus, comprising:
the mobile terminal comprises an acquisition unit, a detection unit and a display unit, wherein the acquisition unit is used for acquiring current display parameters and current detection parameters when the mobile terminal is in an automatic display parameter adjusting mode;
the detection unit is used for detecting whether the current detection parameters are in an anti-shake interval or not, and the anti-shake interval comprises a stable interval and a fine-tuning interval;
the determining unit is used for determining a first display parameter corresponding to the current detection parameter according to a target display parameter curve under the condition that the current detection parameter falls into the fine adjustment interval;
the calculation unit is used for calculating target display parameters according to the current display parameters and the first display parameters under the condition that the first display parameters and the current display parameters are not equal;
an adjusting unit, configured to adjust a display parameter of the mobile terminal from the current display parameter to a target display parameter, where an absolute value of a difference between the target display parameter and the current display parameter is smaller than an absolute value of a difference between the first display parameter and the current display parameter;
the determining unit is further configured to determine a stable value corresponding to the stable interval when the current detection parameter falls into the stable interval;
the adjusting unit is further configured to adjust the display parameter of the mobile terminal from the current display parameter to a stable value corresponding to the stable interval when the stable value is not equal to the current display parameter.
9. A mobile terminal comprising a processor and a memory, the memory for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911360083.4A CN113035120B (en) | 2019-12-25 | 2019-12-25 | Display parameter adjusting method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911360083.4A CN113035120B (en) | 2019-12-25 | 2019-12-25 | Display parameter adjusting method and device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113035120A CN113035120A (en) | 2021-06-25 |
CN113035120B true CN113035120B (en) | 2022-02-18 |
Family
ID=76458710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911360083.4A Active CN113035120B (en) | 2019-12-25 | 2019-12-25 | Display parameter adjusting method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113035120B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092475A (en) * | 2011-10-28 | 2013-05-08 | 华移联科(沈阳)技术有限公司 | Two-dimensional anti-shake displaying method |
CN103309582A (en) * | 2012-03-08 | 2013-09-18 | 阿里巴巴集团控股有限公司 | Image stabilization display method of terminal device, and terminal device with image stabilization display function |
WO2014161306A1 (en) * | 2013-09-12 | 2014-10-09 | 中兴通讯股份有限公司 | Data display method, device, and terminal, and display control method and device |
CN104349039A (en) * | 2013-07-31 | 2015-02-11 | 展讯通信(上海)有限公司 | Video anti-jittering method and apparatus |
WO2017076042A1 (en) * | 2015-11-06 | 2017-05-11 | 乐视控股(北京)有限公司 | Method and device for image-stabilized photograph capturing and mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7567254B2 (en) * | 2005-06-30 | 2009-07-28 | Microsoft Corporation | Parallel texture synthesis having controllable jitter |
US9712818B2 (en) * | 2013-01-11 | 2017-07-18 | Sony Corporation | Method for stabilizing a first sequence of digital image frames and image stabilization unit |
US10403192B2 (en) * | 2016-09-22 | 2019-09-03 | Apple Inc. | Dithering techniques for electronic displays |
-
2019
- 2019-12-25 CN CN201911360083.4A patent/CN113035120B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092475A (en) * | 2011-10-28 | 2013-05-08 | 华移联科(沈阳)技术有限公司 | Two-dimensional anti-shake displaying method |
CN103309582A (en) * | 2012-03-08 | 2013-09-18 | 阿里巴巴集团控股有限公司 | Image stabilization display method of terminal device, and terminal device with image stabilization display function |
CN104349039A (en) * | 2013-07-31 | 2015-02-11 | 展讯通信(上海)有限公司 | Video anti-jittering method and apparatus |
WO2014161306A1 (en) * | 2013-09-12 | 2014-10-09 | 中兴通讯股份有限公司 | Data display method, device, and terminal, and display control method and device |
WO2017076042A1 (en) * | 2015-11-06 | 2017-05-11 | 乐视控股(北京)有限公司 | Method and device for image-stabilized photograph capturing and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN113035120A (en) | 2021-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110971761B (en) | Method and device for generating display parameter curve, mobile terminal and storage medium | |
KR102597680B1 (en) | Electronic device for providing customized quality image and method for controlling thereof | |
US20180090104A1 (en) | Methods and devices for adjusting screen brightness | |
CN108961157B (en) | Picture processing method, picture processing device and terminal equipment | |
JP6924901B2 (en) | Photography method and electronic equipment | |
CN110970001B (en) | Screen brightness adjusting method and device, electronic equipment and computer storage medium | |
CN111092748B (en) | Alarm rule setting method, device, equipment and storage medium for Internet of things equipment | |
CN113554658B (en) | Image processing method, device, electronic equipment and storage medium | |
CN110246110B (en) | Image evaluation method, device and storage medium | |
CN104571990A (en) | Method and system for adjusting operating state of display screen | |
US20180321730A1 (en) | Methods for adaptive battery charging and electronic device thereof | |
CN109189185B (en) | Terminal temperature adjusting method and device | |
CN109086742A (en) | scene recognition method, scene recognition device and mobile terminal | |
CN109493831B (en) | Image signal processing method and device | |
US9743009B2 (en) | Image processing method and image processing device | |
CN111026992A (en) | Multimedia resource preview method, device, terminal, server and storage medium | |
US20150325021A1 (en) | Image fusing method | |
CN114154068A (en) | Media content recommendation method and device, electronic equipment and storage medium | |
CN113177886B (en) | Image processing method, device, computer equipment and readable storage medium | |
CN113035120B (en) | Display parameter adjusting method and device, mobile terminal and storage medium | |
US9576336B2 (en) | Display method and display device | |
US20200321781A1 (en) | Method, server, program, and terminal for generating information relating to electrical output of solar generator | |
CN112509510A (en) | Brightness adjusting method and device and electronic equipment | |
US20170163852A1 (en) | Method and electronic device for dynamically adjusting gamma parameter | |
CN105244936B (en) | Charging method, device and the terminal of terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |