CN113035144B - Method and device for adjusting display parameters, mobile terminal and storage medium - Google Patents

Method and device for adjusting display parameters, mobile terminal and storage medium Download PDF

Info

Publication number
CN113035144B
CN113035144B CN201911357470.2A CN201911357470A CN113035144B CN 113035144 B CN113035144 B CN 113035144B CN 201911357470 A CN201911357470 A CN 201911357470A CN 113035144 B CN113035144 B CN 113035144B
Authority
CN
China
Prior art keywords
detection parameter
detection
parameter
parameters
sequence
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
Application number
CN201911357470.2A
Other languages
Chinese (zh)
Other versions
CN113035144A (en
Inventor
陆天洋
帅朝春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911357470.2A priority Critical patent/CN113035144B/en
Publication of CN113035144A publication Critical patent/CN113035144A/en
Application granted granted Critical
Publication of CN113035144B publication Critical patent/CN113035144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control 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/34Control 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/36Control 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control 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/22Control 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/30Control 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/32Control 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]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control 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/22Control 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/30Control 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/32Control 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/3208Control 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]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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)

Abstract

The embodiment of the application discloses a method, a device, a mobile terminal and a storage medium for adjusting display parameters, wherein the method comprises the following steps: when the mobile terminal is in the automatic display parameter adjusting mode, if the number of detection parameters maintained by the detection parameter sequence reaches N, selecting a target detection parameter from the detection parameter sequence; n is an integer greater than or equal to 2; determining a target detection parameter as a current stable detection parameter of the detection parameter sequence; and calculating target display parameters corresponding to the current stable detection parameters according to the target display parameter curve, adjusting the current display parameters of the mobile terminal to the target display parameters, and determining the target display parameter curve based on the display parameter automatic adjustment mode. The embodiment of the application can improve the display effect.

Description

Method and device for adjusting display parameters, mobile terminal and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a method and a device for adjusting display parameters, 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). The detection result of the detection parameters inevitably has errors, the traditional method collects the detection parameters within a period of time, then takes an average value or carries out weighting processing to obtain recalculated detection parameters, and finally adjusts the display parameters of the mobile terminal according to the recalculated detection parameters and the recalculated display parameters. However, the method of averaging or weighting is difficult to approach the real detection parameters, resulting in deviation in adjustment of the display parameters, which further affects the display effect.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting display parameters, a mobile terminal and a storage medium, which can improve the display effect.
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, if the number of detection parameters maintained by a detection parameter sequence reaches N, selecting a target detection parameter from the detection parameter sequence; n is an integer greater than or equal to 2;
determining the target detection parameter as a current stable detection parameter of the detection parameter sequence;
and calculating target display parameters corresponding to the current stable detection parameters according to a target display parameter curve, and adjusting the current display parameters of the mobile terminal to the target display parameters, wherein the target display parameter curve is determined based on the display parameter automatic adjustment mode.
A second aspect of the embodiments of the present application provides an apparatus for adjusting display parameters, including:
the mobile terminal comprises a selecting unit, a processing unit and a judging unit, wherein the selecting unit is used for selecting a target detection parameter from a detection parameter sequence under the condition that the mobile terminal is in a display parameter automatic adjusting mode and the number of detection parameters maintained by the detection parameter sequence reaches N; n is an integer greater than or equal to 2;
a determining unit, configured to determine the target detection parameter as a current stable detection parameter of the detection parameter sequence;
the calculation unit is used for calculating target display parameters corresponding to the current stable detection parameters according to a target display parameter curve;
and the adjusting unit is used for adjusting the current display parameters of the mobile terminal to the target display parameters, and the target display parameter curve is determined based on the display parameter automatic adjusting mode.
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 an automatic display parameter adjusting mode, if the number of detection parameters maintained by the detection parameter sequence reaches N, selecting a target detection parameter from the detection parameter sequence; n is an integer greater than or equal to 2; determining the target detection parameter as a current stable detection parameter of the detection parameter sequence; and calculating target display parameters corresponding to the current stable detection parameters according to a target display parameter curve, and adjusting the current display parameters of the mobile terminal to the target display parameters, wherein the target display parameter curve is determined based on the display parameter automatic adjustment mode. The current stable detection parameter selected in the embodiment of the application is one of N detection parameters in a detection parameter sequence, the N detection parameters are obtained by real detection, and averaging or weighting processing is not performed, so that the current stable detection parameter is closer to the detection parameters in an actual environment, a target display parameter obtained by calculation according to the current stable detection parameter is more matched with the actual environment, and the display effect is improved.
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 flow chart diagram illustrating a method for adjusting display parameters according to an embodiment of the present disclosure;
FIG. 2a is a schematic diagram of an automatic parameter curve display disclosed in an embodiment of the present application;
FIG. 2b is a schematic diagram of a manual display parameter curve disclosed in an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating another method for adjusting display parameters according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart illustrating another method for adjusting display parameters disclosed in embodiments of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for adjusting display parameters according to an embodiment of the present disclosure;
fig. 6 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 but may alternatively include other steps or elements not expressly 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 flowchart illustrating a method for adjusting display parameters according to an embodiment of the present disclosure, and as shown in fig. 1, the method for adjusting display parameters includes the following steps.
101, when the mobile terminal is in an automatic display parameter adjusting mode, if the number of detection parameters maintained by a detection parameter sequence reaches N, the mobile terminal selects a target detection parameter from the detection parameter sequence; n is an integer greater than or equal to 2.
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 detection parameter may comprise a light sensitivity value or a color temperature value.
The mobile terminal can monitor the light sensing value through the light sensor and can monitor the 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 adjustment mode, the mobile terminal can determine the backlight brightness of the mobile terminal according to the target backlight brightness curve; in the backlight color temperature automatic adjustment mode, the mobile terminal may determine the backlight color temperature of the mobile terminal according to the target backlight color temperature curve. The target backlight luminance profile may be an automatic backlight luminance profile or a backlight luminance profile determined based on a manual adjustment recording on the basis of the automatic backlight luminance profile. The target color temperature luminance curve may be an automatic color temperature luminance curve, or may be a color temperature luminance curve determined based on a manual adjustment record on the basis of the automatic color temperature luminance 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.
The size of N may be fixedly set, for example, N is set to a fixed value, for example, the fixed value may be 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, and the like. The size of N can also be flexibly set. For example, the magnitude of N may be set according to a historically determined trend of the steady detection parameter. For example, the historically determined stable detection parameters are a1, a2, A3 in order, and the current stable detection parameter is a 4. If A1 < A2 < A3 < A4, then N may be set equal to 8; if A1 > A2 > A3 > A4, then N may be set equal to 12. A relatively small value of N may be set if the trend of change of the historically determined stable detection parameter is increasing, and a relatively large value of N may be set if the trend of change of the historically determined stable detection parameter is decreasing.
The sensed parameter sequence is a set of sensed parameters sensed by the sensed parameter sensor over a period of time. The sequence of detection parameters may be in the form of a queue. The head of the queue is the detection parameter of the first entering queue, and the tail of the queue is the detection parameter of the latest entering queue. The length of the queue may be set to N, that is, the number of the most allowed elements (i.e., detection parameters) of the queue is N, and the embodiments of the present application relate to the selection of elements in the queue and do not relate to the dequeuing of the queue.
The detection parameter sensor may include a light sensor or a color temperature sensor. The detection parameter sensor may periodically detect a detection parameter of the mobile terminal, and periodically report the detected detection parameter to the mobile terminal (e.g., a processor of the mobile terminal or a device for adjusting a display parameter). The detection period of the detection parameter sensor is 10-1000 ms. For example, the time period may be any one of 100ms, 200ms, 300ms, 400ms, 500ms, 600ms, 700ms, 800ms, 900ms, and 1000ms, and the embodiment of the present application is not limited thereto. The mobile terminal can screen the detection parameters reported by the detection parameter sensor according to preset conditions, and add the detection parameters meeting the preset conditions into the detection parameter sequence. When the number of the detection parameters in the detection parameter sequence reaches N, the mobile terminal performs the step of selecting the target detection parameter from the detection parameter sequence in step 101, and after performing step 101, the detection parameter sequence may be cleared. After emptying the detection parameter sequence, the mobile terminal may still continue to screen the detection parameters reported by the detection parameter sensor, add the detection parameters meeting the preset conditions into the detection parameter sequence, and execute the step of selecting the target detection parameter from the detection parameter sequence in step 101 until the number of the detection parameters in the detection parameter sequence reaches N. The above steps are repeated.
Optionally, the mobile terminal selects the target detection parameter from the detection parameter sequence, which may specifically include the following steps:
the mobile terminal selects the detection parameter with the largest value from the detection parameter sequence as a target detection parameter; alternatively, the first and second electrodes may be,
the mobile terminal selects a detection parameter with the minimum absolute value of the difference value with the last stable detection parameter from the detection parameter sequence as a target detection parameter, and the last stable detection parameter is the stable detection parameter determined last time; alternatively, the first and second liquid crystal display panels may be,
the mobile terminal selects a detection parameter with the second largest value from the detection parameter sequence as a target detection parameter; alternatively, the first and second liquid crystal display panels may be,
and the mobile terminal selects the detection parameter with the second smallest absolute value of the difference value with the last stable detection parameter from the detection parameter sequence as the target detection parameter.
The last stable detection parameter may be a stable detection parameter determined when the number of detection parameters maintained at one time in the detection parameter sequence reaches N.
The mobile terminal may select a target detection parameter from the detection parameter sequence according to a preset policy, where the preset policy may be one of a maximum policy, a second maximum policy, a closest policy, and a second near policy. Wherein, the maximum value strategy is as follows: and selecting the detection parameter with the largest value from the detection parameter sequence as a target detection parameter. The second major strategy is: and selecting the detection parameter with the second largest value from the detection parameter sequence as the target detection parameter. Recent strategies: and selecting the detection parameter with the minimum absolute value of the difference value with the last stable detection parameter from the detection parameter sequence as the target detection parameter. The second near strategy is as follows: and selecting the detection parameter with the second smallest absolute value of the difference value with the last stable detection parameter from the detection parameter sequence as the target detection parameter. And the last stable detection parameter is the stable detection parameter determined when the number of the detection parameters maintained at one time on the detection parameter sequence reaches N.
For example, if N equals 8, the last stable detection parameter is 560. The currently maintained 8 detection parameters of the detection parameter sequence are respectively: 576. 570, 587, 593, 585, 574, 566, 579. The target detection parameter is 593 if the maximum strategy is employed, 587 if the second largest strategy is employed, 566 if the most recent strategy is employed, and 570 if the second closest strategy is employed.
And 102, the mobile terminal determines the target detection parameter as the current stable detection parameter of the detection parameter sequence.
In the embodiment of the present application, when the number of the detection parameters maintained by the detection parameter sequence reaches N, a target detection parameter is selected from the number of the detection parameters to serve as a current stable detection parameter of the detection parameter sequence. After determining the current stable detection parameters of the detection parameter sequence, the mobile terminal will empty the detection parameter sequence, and count the detection parameters maintained by the parameter sequence again until the number of the detection parameters maintained by the parameter sequence reaches N, from which the next stable detection parameters are determined. And after determining the next stable detection parameter, emptying the detection parameter sequence, and counting the detection parameters maintained by the parameter sequence again. The above steps are repeated.
And 103, the mobile terminal calculates target display parameters corresponding to the current stable detection parameters according to a target display parameter curve, the current display parameters of the mobile terminal are adjusted to the target display parameters, and the target display parameter curve is determined based on the display parameter automatic adjustment mode.
In the embodiment of the present application, the target display parameter curve may be an automatic display parameter curve, or may be a manual display parameter curve determined based on a manual adjustment record on the basis of an automatic display parameter curve.
Referring to fig. 2a, fig. 2a is a schematic diagram illustrating an automatic parameter curve display according to an embodiment of the present disclosure; as shown in fig. 2a, the abscissa of the automatic display parameter curve is the detection parameter detected by the detection parameter sensor, and the ordinate is the display parameter. If the mobile terminal starts the automatic display parameter adjusting mode, the display parameters of the mobile terminal can be adjusted according to the automatic display parameter curve.
As can be seen from fig. 2a, if the current stable detection parameter is a1, and the target display parameter corresponding to the automatic display parameter curve of a1 is b1, the current display parameter of the mobile terminal may be adjusted to be the target display parameter b 1. If the current stable detection parameter is a2, and the target display parameter corresponding to the a2 on the automatic display parameter curve is b2, the current display parameter of the mobile terminal may be adjusted to the target display parameter b 2.
Furthermore, in order to avoid the influence of repeated changes of display parameters on user experience, an anti-shaking interval is generally set, and the display parameters are kept stable in the anti-shaking interval. For example, in the anti-shake section shown in fig. 2a, when the detected parameter falls into the anti-shake section, the display parameter is fixed to b 1.
If the display parameter is the backlight brightness, the detection parameter is the light sensing value, the detection parameter sensor is the light sensor, and the automatic display parameter curve is the automatic backlight brightness curve. The backlight brightness can be expressed in a proportional value of the maximum backlight brightness that can be provided by the backlight source of the mobile terminal. For example, if the backlight brightness is 100%, it represents that the backlight brightness is 100% of the maximum backlight brightness that can be provided by the backlight source of the mobile terminal; if the backlight brightness is 60%, it means that the backlight brightness is 60% of the maximum backlight brightness that the backlight source of the mobile terminal can provide. For example, if the light sensation value is in the anti-shake interval (e.g., 100-500 lux), the corresponding backlight brightness is 40%.
If the display parameter is the backlight color temperature, the detection parameter is the color temperature value, the detection parameter sensor is the color temperature sensor, and the automatic display parameter curve is the automatic backlight color temperature curve. For example, if the color temperature value is in the anti-shake range (e.g., 2000-3000K), the corresponding backlight color temperature is 2500K.
The anti-shake interval may be set as needed, or may be set as one or more intervals, which is not limited in the embodiments of the present application.
Referring to fig. 2b, fig. 2b is a schematic diagram of a manual parameter curve display disclosed in the embodiment of the present application; as shown in fig. 2b, the top left diagram is an automatic display parameter graph, and the bottom left diagram, the top right diagram, and the bottom right diagram are manual display parameter graphs generated based on three different historical manual adjustment records, respectively. In the figure, the abscissa is a detection parameter, the ordinate is a display parameter, the curve with thinner lines is an automatic display parameter curve, and the curve with thicker lines is a manual display parameter curve. Black points in the automatic display parameter curve graph and the manual display parameter curve graph are historical manual adjustment records, each black point represents one historical manual adjustment record, the abscissa of each black point represents the detection parameter corresponding to the time point of the historical manual adjustment record, and the ordinate of each black point represents the display parameter of user adjustment recorded in the historical manual adjustment record. P1, P2, and P3 in fig. 5 represent three historical manual adjustment records, respectively (P1 is the historical manual adjustment record when the detection parameter is a1, P2 is the historical manual adjustment record when the detection parameter is a2, and P3 is the historical manual adjustment record when the detection parameter is a 3). The top right graph represents the manual display parameter graph generated based on P1, the bottom left graph represents the manual display parameter graph generated based on P2, and the bottom right graph represents the manual display parameter graph generated based on P3.
When a manual display parameter curve is adopted, a historical manual adjustment record closest to the current detection parameter can be selected from historical manual adjustment records, and the manual display parameter curve is generated based on the historical manual adjustment record closest to the current detection parameter and the automatic display parameter curve.
In one embodiment, the display parameter is a backlight brightness, the detection parameter is a light sensitivity value, the detection parameter sensor is a light sensor, and the automatic display parameter curve is an automatic backlight brightness curve.
In another embodiment, the display parameter is a backlight color temperature, the detection parameter is a color temperature value, the detection parameter sensor is a color temperature sensor, and the automatic display parameter curve is an automatic backlight color temperature curve.
It should be noted that, in the diagram at the upper left corner of fig. 2b, 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.
In the embodiment of the application, the selected current stable detection parameter is one of N detection parameters in the detection parameter sequence, the N detection parameters are obtained by real detection, and averaging or weighting processing is not performed, so that the detection parameters are closer to the detection parameters in the actual environment, the target display parameters obtained by calculation according to the current stable detection parameters are better matched with the actual environment, and the display effect is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of another method for adjusting display parameters according to an embodiment of the present disclosure, and fig. 3 is obtained by further optimizing on the basis of fig. 1. As shown in fig. 3, the method for adjusting the display parameter includes the following steps.
301, when the mobile terminal is in the display parameter automatic adjustment mode, the mobile terminal determines whether the number of the detection parameters maintained by the detection parameter sequence reaches N. If yes, go to step 302; if not, go to step 304. Wherein N is an integer greater than or equal to 2.
302, the mobile terminal selects target detection parameters from the detection parameter sequence.
The specific implementation of steps 301 to 302 may refer to the specific description of step 101 in fig. 1, and is not described herein again.
303, the mobile terminal clears the detection parameter sequence.
304, the mobile terminal receives the new detection parameters reported by the detection parameter sensor, and detects whether the new detection parameters meet the preset conditions; if yes, go to step 305; if not, go to step 303.
The mobile terminal places the new detection parameters into the detection parameter sequence 305.
Wherein step 301 may be continued after step 305 is performed.
Optionally, in step 304, the mobile terminal detects whether the new detection parameter meets a preset condition, which may specifically include the following steps:
(11) the mobile terminal compares whether the absolute value of the difference value between the new detection parameter and the last stable detection parameter is larger than a second threshold value;
(12) if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is less than or equal to a second threshold value, the mobile terminal determines that the new detection parameter does not meet the preset condition;
(13) if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than a second threshold value, the number of the current detection parameters of the detection parameter sequence is greater than or equal to 1, the new detection parameter is greater than the last stable detection parameter, the current detection parameters of the detection parameter sequence are all less than the last stable detection parameter, and the mobile terminal determines that the new detection parameter does not meet the preset condition;
(14) if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is larger than a second threshold value, the number of the current detection parameters of the detection parameter sequence is larger than or equal to 1, the new detection parameter is smaller than the last stable detection parameter, the current detection parameters of the detection parameter sequence are all larger than the last stable detection parameter, and the mobile terminal determines that the new detection parameters do not meet the preset conditions;
(15) if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than a second threshold value, the number of the current existing detection parameters of the detection parameter sequence is 0, and the mobile terminal determines that the new detection parameter meets the preset condition;
(16) if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the current detection parameters of the detection parameter sequence is greater than or equal to 1, the current detection parameters of the new detection parameter and the detection parameter sequence are both greater than the last stable detection parameter, or the current detection parameters of the new detection parameter and the detection parameter sequence are both less than the last stable detection parameter, and the mobile terminal determines that the new detection parameters meet the preset conditions.
In the embodiment of the present application, the second threshold may be set to be a fixed percentage of the last stable detection parameter, for example, the second threshold may be set to be between 0% and 10% of the last stable detection parameter. For example, the second threshold may be set to any one of 0%, 1%, 2%, 3%, 4%, 5%, 6%, 7%, 8%, 9%, 10% of the last stable detection parameter. The embodiments of the present application are not limited. The larger the second threshold is set, the larger the adjustment amplitude of the display parameters is, the fewer the adjustment times in unit time are, and the stronger the anti-shake capability is; the smaller the second threshold value is set, the smaller the amplitude of the adjustment of the display parameter, the softer the adjustment of the display parameter, and the more times the adjustment is made per unit time.
Next, the above primary stability parameter is 500, and the second threshold is 3% (500 × 3% ═ 15) of the last stability detection parameter. If the new detection parameter is between 485 and 515, determining that the new detection parameter does not meet the preset condition, discarding the new detection parameter, and continuously acquiring the reported new detection parameter; if the new detection parameter is less than 485 or more than 515, the number of the current existing detection parameters of the detection parameter sequence is 0, and the new detection parameter is determined to meet the preset condition; if the new detection parameter is less than 485, the number of the detection parameters currently existing in the detection parameter sequence is equal to 2, and the detection parameters currently existing in the detection parameter sequence (for example, 525 and 533 respectively) are both greater than 515, and it is determined that the new detection parameter does not meet the preset condition; if the new detection parameter is less than 485, the number of the detection parameters currently existing in the detection parameter sequence is equal to 2, and the detection parameters currently existing in the detection parameter sequence (for example, 480 and 477 respectively) are both less than 485, and the new detection parameter is determined to meet the preset condition; if the new detection parameter is greater than 515, the number of the detection parameters currently existing in the detection parameter sequence is equal to 2, and the detection parameters currently existing in the detection parameter sequence (for example, 525 and 533 respectively) are both greater than 515, and it is determined that the new detection parameter meets the preset condition; if the new detection parameter is greater than 515, the number of the detection parameters currently existing in the detection parameter sequence is equal to 2, and the detection parameters currently existing in the detection parameter sequence (for example, 480 and 477 respectively) are both less than 485, it is determined that the new detection parameter does not satisfy the preset condition.
In the embodiment of the application, if the reported detection parameters meet the preset conditions, adding a detection parameter sequence, if the reported detection parameters do not meet the preset conditions, emptying the detection parameter sequence, selecting target detection parameters from the detection parameter sequence as current stable detection parameters under the condition that N continuously reported detection parameters all meet the preset conditions, calculating target display parameters according to the current stable detection parameters and a target display parameter curve, and adjusting the current display parameters of the mobile terminal to the target display parameters. Therefore, the stable detection parameters are not periodically output, but are output under the condition that the detection parameters change in a certain range, so that frequent adjustment of the display parameters when the detection parameters change in a small range is avoided, small-range jitter is prevented, and the display effect is improved.
Optionally, in step 304, the mobile terminal detects whether the new detection parameter meets a preset condition, which may specifically include the following steps:
(21) if the number of the existing detection parameters of the detection parameter sequence is 0, the mobile terminal determines that the new detection parameters meet the preset conditions;
(22) if the number of the current existing detection parameters of the detection parameter sequence is more than or equal to 1, the new detection parameters and the current existing detection parameters of the detection parameter sequence are monotonically increased or monotonically decreased according to the time sequence, and the mobile terminal determines that the new detection parameters meet the preset conditions;
(23) if the number of the current detection parameters of the detection parameter sequence is greater than or equal to 1, the new detection parameters and the current detection parameters of the detection parameter sequence are not monotonically increased or monotonically decreased according to the time sequence, and the mobile terminal determines that the new detection parameters do not meet the preset condition.
The above primary stability parameter is described below as 500. If the number of the existing detection parameters of the detection parameter sequence is 0, determining that the new detection parameters meet the preset conditions; if the number of the currently existing detection parameters of the detection parameter sequence is 2, the detection parameters are 515 and 523 according to the time sequence, and the new detection parameter is 525, the new detection parameters and the currently existing detection parameters of the detection parameter sequence are monotonically increased according to the time sequence, and the new detection parameters are determined to meet the preset condition; if the number of the existing detection parameters of the detection parameter sequence is 2, the existing detection parameters are 515 and 523 according to the time sequence, and the new detection parameter is 506, the new detection parameter and the existing detection parameters of the detection parameter sequence are not monotonically increased or monotonically decreased according to the time sequence, and the new detection parameter is determined not to meet the preset condition; if the number of the currently existing detection parameters of the detection parameter sequence is 2, the detection parameters are 535 and 528 according to the time sequence, and the new detection parameter is 525, the new detection parameter and the currently existing detection parameters of the detection parameter sequence are monotonically decreased according to the time sequence, and the new detection parameter is determined to meet the preset condition; if the number of the currently existing detection parameters of the detection parameter sequence is 2, the detection parameters are 535 and 528 according to the time sequence, and the new detection parameter is 547, the new detection parameter and the currently existing detection parameters of the detection parameter sequence are not monotonically increased or monotonically decreased according to the time sequence, and then the new detection parameter is determined not to meet the preset condition.
In the embodiment of the application, if the reported detection parameters meet the preset conditions, the detection parameter sequence is added, if the reported detection parameters do not meet the monotone increasing or monotone decreasing, the detection parameter sequence is emptied, until the N continuously reported detection parameters meet the monotone increasing or monotone decreasing condition, the target detection parameters are selected from the detection parameter sequence as the current stable detection parameters, the target display parameters are calculated according to the current stable detection parameters and the target display parameter curve, and the current display parameters of the mobile terminal are adjusted to the target display parameters. Because N detection parameters satisfy the monotone increasing or monotone decreasing, only if the N detection parameters satisfy the monotone increasing or monotone decreasing, the stable detection parameters are output. The embodiment of the application can be used in a scene with repeatedly changed detection parameters, and can not output stable detection parameters under the condition that the detection parameters repeatedly change, so that the stability of the display parameters is ensured, and the problem of severe fluctuation of the display parameters under the condition that the detection parameters repeatedly change is avoided. The anti-shake effect is improved, and therefore the display effect is improved.
And 306, the mobile terminal determines the target detection parameter as the current stable detection parameter of the detection parameter sequence.
307, the mobile terminal calculates a target display parameter corresponding to the current stable detection parameter according to the target display parameter curve, and adjusts the current display parameter of the mobile terminal to the target display parameter, wherein the target display parameter curve is determined based on the display parameter automatic adjustment mode.
The specific implementation of step 306 to step 307 can refer to the specific description of step 102 to step 103 in fig. 1, and is not described herein again.
In the embodiment of the application, the selected current stable detection parameter is one of N detection parameters in a detection parameter sequence, the N detection parameters are obtained by real detection, and averaging or weighting processing is not performed, so that the current stable detection parameter is closer to the detection parameters in the actual environment, and the target display parameter calculated according to the current stable detection parameter is more matched with the actual environment. The embodiment of the application does not output the stable detection parameters periodically, but outputs the stable detection parameters under the condition that the detection parameters change in a certain range, thereby avoiding frequent adjustment of the display parameters when the detection parameters change in a small range and preventing small-range jitter. The embodiment of the application can also be used in a scene with repeatedly changed detection parameters, and stable detection parameters can not be output under the condition that the detection parameters are repeatedly changed, so that the stability of the display parameters is ensured, and the problem of severe fluctuation of the display parameters under the condition that the detection parameters are repeatedly changed is avoided. The anti-shake effect is improved, and therefore the display effect is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another method for adjusting display parameters according to an embodiment of the present disclosure, and fig. 4 is obtained by further optimizing on the basis of fig. 1. As shown in fig. 4, the method for adjusting the display parameters includes the following steps.
401, when the mobile terminal is in the display parameter automatic adjustment mode, the mobile terminal determines whether the number of the detection parameters maintained by the detection parameter sequence reaches N. If yes, go to step 402; if not, go to step 404. Wherein N is an integer greater than or equal to 2.
402, the mobile terminal selects target detection parameters from the detection parameter sequence.
The specific implementation of steps 401 to 402 may refer to the specific description of step 101 in fig. 1, and is not described herein again.
403, the mobile terminal clears the detection parameter sequence.
404, the mobile terminal receives a new detection parameter reported by the detection parameter sensor, and detects whether the new detection parameter meets a preset condition; if yes, go to step 405; if not, go to step 406.
For detecting whether the new detection parameter satisfies the preset condition, refer to steps (11) to (16) shown in fig. 3, or refer to steps (21) to (23) shown in fig. 3, which is not described herein again.
The mobile terminal puts the new detection parameters into the detection parameter sequence 405.
Wherein step 401 may continue after step 405 is performed.
For specific implementation of steps 403 to 405, refer to specific descriptions of steps 303 to 305 in fig. 3, which are not described herein again.
The mobile terminal puts the new detection parameters as noise data into a noise sequence corresponding to the detection parameter sequence 406.
407, the mobile terminal determines whether the number of the noise data in the noise sequence reaches a first threshold, if yes, execute step 403; if not, go to step 404.
The mobile terminal judges that the quantity of the noise data in the noise sequence reaches a first threshold value, and can clear the noise sequence. The noise sequence is corresponding to the detection parameter sequence, and when the detection parameter sequence is cleared, the noise sequence is also cleared.
The first threshold may be preset and stored in a memory (e.g., a non-volatile memory) of the mobile terminal. The first threshold will typically be less than N, and may be set, for example, to equal N/2.
In the embodiment of the application, if the new detection parameter meets the preset condition, the new detection parameter is put into the detection parameter sequence, if the new detection parameter does not meet the preset condition, the new detection parameter is determined to be noise and is put into the noise sequence, and if the number of the noise data in the noise sequence reaches the first threshold value, the detection parameter sequence is emptied. The embodiment of the application can be applied to the condition that the detection parameters reported by the detection parameter sensor are not accurate. For example, for the detection parameter sensor being an optical sensor, if the optical sensor is an off-screen optical sensor, the light sensation value reported by the optical sensor may have some noise, and in order to avoid the influence of the noise, some obvious noise light sensation values may be filtered out, so as to solve the problem that the noise light sensation value may cause the backlight brightness to appear too bright or too dark.
408, the mobile terminal determines the target detection parameter as the current stable detection parameter of the detection parameter sequence.
409, the mobile terminal calculates target display parameters corresponding to the current stable detection parameters according to the target display parameter curve, adjusts the current display parameters of the mobile terminal to the target display parameters, and the target display parameter curve is determined based on the display parameter automatic adjustment mode.
The specific implementation of step 409 to step 409 may refer to the specific description of step 102 to step 103 in fig. 1, and is not described herein again.
In the embodiment of the application, the selected current stable detection parameter is one of N detection parameters in a detection parameter sequence, the N detection parameters are obtained by real detection, and averaging or weighting processing is not performed, so that the current stable detection parameter is closer to the detection parameters in the actual environment, and the target display parameter calculated according to the current stable detection parameter is more matched with the actual environment.
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. 5, fig. 5 is a schematic structural diagram of an apparatus for adjusting display parameters according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus 500 for adjusting display parameters includes a selecting unit 501, a determining unit 502, a calculating unit 503, and an adjusting unit 504, wherein:
a selecting unit 501, configured to select a target detection parameter from a detection parameter sequence when the mobile terminal is in an automatic display parameter adjustment mode and the number of detection parameters maintained by the detection parameter sequence reaches N; n is an integer greater than or equal to 2;
a determining unit 502, configured to determine the target detection parameter as a current stable detection parameter of the detection parameter sequence;
a calculating unit 503, configured to calculate a target display parameter corresponding to the current stable detection parameter according to a target display parameter curve;
an adjusting unit 504, configured to adjust the current display parameter of the mobile terminal to the target display parameter, where the target display parameter curve is determined based on the display parameter automatic adjustment mode.
Optionally, the selecting unit 501 selects a target detection parameter from the detection parameter sequence, which specifically includes: selecting the detection parameter with the largest value from the detection parameter sequence as a target detection parameter; or selecting the detection parameter with the minimum absolute value of the difference value with the last stable detection parameter from the detection parameter sequence as a target detection parameter, wherein the last stable detection parameter is the stable detection parameter determined last time; or selecting the detection parameter with the second largest value from the detection parameter sequence as a target detection parameter; or selecting the detection parameter with the second smallest absolute value of the difference value with the last stable detection parameter from the detection parameter sequence as the target detection parameter.
Optionally, the apparatus 500 for adjusting display parameters may further include an emptying unit 505;
the emptying unit 505 is configured to empty the detection parameter sequence after the selecting unit 501 selects the target detection parameter from the detection parameter sequence.
Optionally, the apparatus 500 for adjusting display parameters may further include a receiving unit 506, a detecting unit 507, and a processing unit 508;
the receiving unit 506 is configured to receive a new detection parameter reported by the detection parameter sensor;
the detecting unit 507 is configured to detect whether the new detection parameter meets a preset condition;
the processing unit 508 is configured to, in a case that the detecting unit 507 detects that the new detection parameter meets the preset condition, put the new detection parameter into the detection parameter sequence;
the emptying unit 505 is further configured to empty the detection parameter sequence when the detecting unit 507 detects that the new detection parameter does not satisfy the preset condition.
Optionally, the processing unit 508 is further configured to, when the detecting unit 507 detects that the new detection parameter does not satisfy the preset condition, place the new detection parameter as noise data in a noise sequence corresponding to the detection parameter sequence.
Optionally, the emptying unit 505 is further configured to empty the detection parameter sequence when the number of noise data in the noise sequence reaches a first threshold.
Optionally, the receiving unit 506 is further configured to receive a new detection parameter reported by the detection parameter sensor when the number of the detection parameter data maintained by the detection parameter sequence does not reach N.
Optionally, the detecting unit 507 detects whether the new detection parameter meets a preset condition, specifically: comparing whether the absolute value of the difference value of the new detection parameter and the last stable detection parameter is larger than a second threshold value; determining that the new detection parameter does not meet the preset condition under the condition that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is smaller than or equal to the second threshold;
determining that the new detection parameter does not satisfy the preset condition under the condition that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the detection parameters of the detection parameter sequence which currently exist is greater than or equal to 1, the new detection parameter is greater than the last stable detection parameter, and the detection parameters of the detection parameter sequence which currently exist are all less than the last stable detection parameter;
determining that the new detection parameter does not satisfy the preset condition under the condition that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the detection parameters of the detection parameter sequence which currently exist is greater than or equal to 1, the new detection parameter is smaller than the last stable detection parameter, and the detection parameters of the detection parameter sequence which currently exist are all greater than the last stable detection parameter;
determining that the new detection parameter meets the preset condition under the condition that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold value and the number of the detection parameters of the detection parameter sequence currently existing is 0;
and determining that the new detection parameter meets the preset condition under the condition that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the detection parameters existing in the detection parameter sequence at present is greater than or equal to 1, and the new detection parameter and the detection parameters existing in the detection parameter sequence at present are both greater than the last stable detection parameter.
And determining that the new detection parameter meets the preset condition under the conditions that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the detection parameters existing in the detection parameter sequence at present is greater than or equal to 1, and the new detection parameter and the detection parameters existing in the detection parameter sequence at present are both smaller than the last stable detection parameter.
Optionally, the detecting unit 507 detects whether the new detection parameter meets a preset condition, specifically:
determining that the new detection parameters meet the preset conditions under the condition that the number of the current existing detection parameters of the detection parameter sequence is 0;
determining that the new detection parameters meet the preset condition under the condition that the number of the detection parameters currently existing in the detection parameter sequence is greater than or equal to 1, and the new detection parameters and the detection parameters currently existing in the detection parameter sequence are monotonically increased or monotonically decreased according to the time sequence;
and if the number of the detection parameters currently existing in the detection parameter sequence is greater than or equal to 1, and the new detection parameters and the detection parameters currently existing in the detection parameter sequence are not monotonically increased or monotonically decreased according to the time sequence, determining that the new detection parameters do not satisfy the preset condition.
Optionally, the display parameter includes a backlight brightness or a backlight color temperature.
The selecting unit 501, the determining unit 502, the calculating unit 503, the adjusting unit 504, the emptying unit 505, the receiving unit 506, the detecting unit 507 and the processing unit 508 in the embodiment of the present application may be processors of mobile terminals.
With the implementation of the device for adjusting display parameters shown in fig. 5, the selected current stable detection parameter is one of N detection parameters in the detection parameter sequence, and the N detection parameters are all obtained by real detection, and are not averaged or weighted, so that the selected current stable detection parameter is closer to the detection parameters in the actual environment, and the target display parameter calculated according to the current stable detection parameter is more matched with the actual environment.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal disclosed in the embodiment of the present application. As shown in fig. 6, the mobile terminal 600 includes a processor 601 and a memory 602, wherein the mobile terminal 600 may further include a bus 603, the processor 601 and the memory 602 may be connected to each other through the bus 603, and the bus 603 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 603 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but that does not indicate only one bus or one type of bus. The mobile terminal 600 may further include an input/output device 604, and the input/output device 604 may include a display screen, such as a liquid crystal display screen, an LED display screen, an OLED display screen, or the like. The memory 602 is used to store one or more programs containing instructions; processor 601 is configured to invoke instructions stored in memory 602 to perform some or all of the method steps described above in fig. 1-4.
The mobile terminal shown in fig. 6 is implemented, the selected current stable detection parameter is one of N detection parameters in the detection parameter sequence, and the N detection parameters are all obtained by real detection, and are not subjected to averaging or weighting processing, so that the current stable detection parameter is closer to the detection parameters in the actual environment, and the target display parameter calculated according to the current stable detection parameter is more matched with the actual environment.
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 methods for adjusting display parameters as described in the above method embodiments.
Embodiments of the present application further 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 methods of adjusting display parameters 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 may be implemented in the form of hardware, or may also be implemented in the 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, or a network device) 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 method of adjusting display parameters, comprising:
when the mobile terminal is in an automatic display parameter adjusting mode, if the number of detection parameters maintained by a detection parameter sequence reaches N, selecting a target detection parameter from the detection parameter sequence; n is an integer greater than or equal to 2;
emptying the detection parameter sequence;
receiving new detection parameters reported by a detection parameter sensor, and detecting whether the new detection parameters meet preset conditions;
if yes, putting the new detection parameters into the detection parameter sequence;
if not, executing the step of clearing the detection parameter sequence, or putting the new detection parameter as noise data into a noise sequence corresponding to the detection parameter sequence;
determining the target detection parameter as a current stable detection parameter of the detection parameter sequence;
calculating target display parameters corresponding to the current stable detection parameters according to a target display parameter curve, and adjusting the current display parameters of the mobile terminal to the target display parameters, wherein the target display parameter curve is determined based on the display parameter automatic adjustment mode;
the detecting whether the new detection parameter meets a preset condition includes:
comparing whether the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than a second threshold value, wherein the last stable detection parameter is the stable detection parameter determined last time;
if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is smaller than or equal to the second threshold, determining that the new detection parameter does not meet the preset condition;
if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the current detection parameters of the detection parameter sequence is greater than or equal to 1, the new detection parameters are greater than the last stable detection parameters, the current detection parameters of the detection parameter sequence are all less than the last stable detection parameters, and the new detection parameters are determined not to meet the preset conditions;
if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the current detection parameters of the detection parameter sequence is greater than or equal to 1, the new detection parameters are smaller than the last stable detection parameters, the current detection parameters of the detection parameter sequence are all greater than the last stable detection parameters, and the new detection parameters are determined not to meet the preset conditions;
if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold value, the number of the current existing detection parameters of the detection parameter sequence is 0, and the new detection parameter is determined to meet the preset condition;
if the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the current detection parameters of the detection parameter sequence is greater than or equal to 1, the current detection parameters of the new detection parameter and the detection parameter sequence are both greater than the last stable detection parameter, or the current detection parameters of the new detection parameter and the detection parameter sequence are both less than the last stable detection parameter, and the new detection parameter is determined to meet the preset condition.
2. The method of claim 1, wherein the selecting target detection parameters from the sequence of detection parameters comprises:
selecting the detection parameter with the largest value from the detection parameter sequence as a target detection parameter; alternatively, the first and second electrodes may be,
selecting the detection parameter with the minimum absolute value of the difference value with the last stable detection parameter from the detection parameter sequence as a target detection parameter; alternatively, the first and second electrodes may be,
selecting the detection parameter with the second largest value from the detection parameter sequence as a target detection parameter; alternatively, the first and second electrodes may be,
and selecting the detection parameter with the second smallest absolute value of the difference value with the last stable detection parameter from the detection parameter sequence as the target detection parameter.
3. The method of claim 1, further comprising:
and if the quantity of the noise data in the noise sequence reaches a first threshold value, executing the step of clearing the detection parameter sequence.
4. The method of claim 1, further comprising:
and if the number of the detection parameter data maintained by the detection parameter sequence does not reach N, executing a step of receiving a new detection parameter reported by the detection parameter sensor.
5. The method according to any one of claims 1 to 4, wherein the detecting whether the new detection parameter satisfies a preset condition comprises:
if the number of the current existing detection parameters of the detection parameter sequence is 0, determining that the new detection parameters meet the preset condition;
if the number of the current existing detection parameters of the detection parameter sequence is greater than or equal to 1, and the new detection parameters and the current existing detection parameters of the detection parameter sequence are monotonically increased or monotonically decreased according to the time sequence, determining that the new detection parameters meet the preset condition;
and if the number of the current detection parameters of the detection parameter sequence is greater than or equal to 1, and the new detection parameters and the current detection parameters of the detection parameter sequence are not monotonically increased or monotonically decreased according to the time sequence, determining that the new detection parameters do not satisfy the preset condition.
6. The method according to any one of claims 1 to 4, wherein the display parameter comprises backlight brightness or backlight color temperature.
7. The method of claim 5, wherein the display parameter comprises a backlight brightness or a backlight color temperature.
8. An apparatus for adjusting display parameters, comprising:
the mobile terminal comprises a selecting unit, a processing unit and a judging unit, wherein the selecting unit is used for selecting a target detection parameter from a detection parameter sequence under the condition that the mobile terminal is in a display parameter automatic adjusting mode and the number of detection parameters maintained by the detection parameter sequence reaches N; n is an integer greater than or equal to 2;
a determining unit, configured to determine the target detection parameter as a current stable detection parameter of the detection parameter sequence;
the calculation unit is used for calculating target display parameters corresponding to the current stable detection parameters according to a target display parameter curve;
the adjusting unit is used for adjusting the current display parameters of the mobile terminal to the target display parameters, and the target display parameter curve is determined based on the display parameter automatic adjusting mode;
the device for adjusting the display parameters further comprises an emptying unit;
the emptying unit is used for emptying the detection parameter sequence after the selecting unit selects the target detection parameters from the detection parameter sequence;
the device for adjusting the display parameters further comprises a receiving unit, a detecting unit and a processing unit;
the receiving unit is used for receiving new detection parameters reported by the detection parameter sensor;
the detection unit is used for detecting whether the new detection parameters meet preset conditions or not;
the processing unit is used for putting the new detection parameters into the detection parameter sequence under the condition that the detection unit detects that the new detection parameters meet the preset conditions;
the emptying unit is further configured to empty the detection parameter sequence when the detection unit detects that the new detection parameter does not satisfy the preset condition;
the detection unit detects whether the new detection parameter meets a preset condition, specifically: comparing whether the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than a second threshold value, wherein the last stable detection parameter is the stable detection parameter determined last time; determining that the new detection parameter does not satisfy the preset condition under the condition that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is less than or equal to the second threshold;
determining that the new detection parameter does not satisfy the preset condition under the condition that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the detection parameters of the detection parameter sequence which currently exist is greater than or equal to 1, the new detection parameter is greater than the last stable detection parameter, and the detection parameters of the detection parameter sequence which currently exist are all less than the last stable detection parameter;
determining that the new detection parameter does not satisfy the preset condition under the conditions that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is larger than the second threshold, the number of the detection parameters of the detection parameter sequence which currently exist is larger than or equal to 1, the new detection parameter is smaller than the last stable detection parameter, and the detection parameters of the detection parameter sequence which currently exist are all larger than the last stable detection parameter;
determining that the new detection parameter meets the preset condition under the conditions that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is larger than the second threshold value and the number of the current existing detection parameters of the detection parameter sequence is 0;
determining that the new detection parameter meets the preset condition under the condition that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the detection parameters currently existing in the detection parameter sequence is greater than or equal to 1, and the new detection parameter and the detection parameters currently existing in the detection parameter sequence are both greater than the last stable detection parameter;
and determining that the new detection parameter meets the preset condition under the conditions that the absolute value of the difference value between the new detection parameter and the last stable detection parameter is greater than the second threshold, the number of the detection parameters existing in the detection parameter sequence at present is greater than or equal to 1, and the new detection parameter and the detection parameters existing in the detection parameter sequence at present are both smaller than the last stable detection 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 storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 7.
CN201911357470.2A 2019-12-25 2019-12-25 Method and device for adjusting display parameters, mobile terminal and storage medium Active CN113035144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911357470.2A CN113035144B (en) 2019-12-25 2019-12-25 Method and device for adjusting display parameters, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911357470.2A CN113035144B (en) 2019-12-25 2019-12-25 Method and device for adjusting display parameters, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113035144A CN113035144A (en) 2021-06-25
CN113035144B true CN113035144B (en) 2022-07-08

Family

ID=76458409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911357470.2A Active CN113035144B (en) 2019-12-25 2019-12-25 Method and device for adjusting display parameters, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113035144B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114038443B (en) * 2021-11-23 2023-02-14 杭州逗酷软件科技有限公司 Brightness adjusting method and related device

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079238A (en) * 2006-05-22 2007-11-28 明基电通股份有限公司 Hand-held electronic device for automatically regulating backlight brightness and backlight brightness regulation method
CN101105912A (en) * 2006-07-12 2008-01-16 温建荣 Display quality automatic regulation device and method based on environment induction
CN102968979B (en) * 2012-11-12 2015-06-17 广东欧珀移动通信有限公司 Screen brightness scheduling method based on curve fitting
CN102938247B (en) * 2012-11-29 2015-03-04 广东欧珀移动通信有限公司 Brightness adjusting method and device
CN105244006B (en) * 2014-07-31 2018-02-23 维沃移动通信有限公司 The backlight adjusting method and its display device of a kind of display device
CN105280159B (en) * 2014-07-31 2017-11-28 维沃移动通信有限公司 The backlight adjusting method and its display device of a kind of display device
CN104240660A (en) * 2014-09-01 2014-12-24 京东方科技集团股份有限公司 Liquid crystal display panel driving parameter adjusting method and device and liquid crystal display panel
CN105810152B (en) * 2014-12-29 2018-06-19 Tcl海外电子(惠州)有限公司 Method for controlling backlight thereof and device, the television set of display terminal
CN105185301B (en) * 2015-08-12 2017-11-17 西安诺瓦电子科技有限公司 Brightness of display screen adjusting method
CN105869603A (en) * 2015-09-22 2016-08-17 乐视致新电子科技(天津)有限公司 Screen brightness regulation method and device
CN109427317A (en) * 2017-08-31 2019-03-05 中兴通讯股份有限公司 Screen brightness control method, device, terminal and computer readable storage medium
CN107507602A (en) * 2017-09-22 2017-12-22 深圳天珑无线科技有限公司 Screen intensity Automatic adjustment method, terminal and storage medium
CN107665697B (en) * 2017-10-20 2019-07-26 维沃移动通信有限公司 A kind of adjusting method and mobile terminal of screen intensity
CN108040360B (en) * 2017-12-05 2020-12-11 北京小米移动软件有限公司 Method and device for controlling screen display
CN107835324B (en) * 2017-12-13 2021-05-25 维沃移动通信有限公司 Backlight brightness adjusting method and mobile terminal
CN109951594A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Intelligent adjusting method, device, storage medium and the mobile terminal of screen intensity
CN108364604A (en) * 2018-04-16 2018-08-03 南方科技大学 A kind of Micro-LED display systems
CN108877741A (en) * 2018-07-27 2018-11-23 维沃移动通信有限公司 A kind of screen luminance adjustment method and terminal device
CN109147719A (en) * 2018-09-30 2019-01-04 北京奇虎科技有限公司 Mobile terminal and the method, apparatus and storage medium for adjusting its brightness of display screen
CN110517648A (en) * 2019-09-05 2019-11-29 四川长虹电器股份有限公司 The light-dimming method and system of display device

Also Published As

Publication number Publication date
CN113035144A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN106128416B (en) Control method, control device and electronic device
US20200394982A1 (en) Display Luminance Adjustment Method and Electronic Device
CN104063846B (en) Method and apparatus for handling image based on the information detected
CN111754946B (en) Image quality optimization method, display device and computer readable storage medium
CN104715736B (en) The backlight Automatic adjustment method and device of a kind of electronic equipment
EP2189971A1 (en) Display control apparatus and display control method
US20080069478A1 (en) Apparatus, method, and computer program product for displaying image
KR101647970B1 (en) Image display apparatus and control method thereof
CN107016978B (en) A kind of showing interface technology and terminal device
CN107452348B (en) Method and system for reducing noise of display picture, computer device and readable storage medium
US11030971B2 (en) Display device and image processing method for color correction based on image type
TWI390483B (en) Apparatus and method for contrast control
CN113035144B (en) Method and device for adjusting display parameters, mobile terminal and storage medium
CN104603863B (en) The control method of image display device, image display device
US9823829B2 (en) Image display apparatus and method for controlling the same
EP2654036A1 (en) Information processing apparatus and display control method
CN109308874B (en) Display screen brightness adjusting method and device
CN104915166B (en) Information processing method and electronic equipment
US11488554B2 (en) Systems and methods for generating an overdrive look-up table (LUT) for response time compensation of a display device
CN113096592B (en) Method and device for eliminating ghost shadow of display screen and display device
CN107111991A (en) Image display device and the method for being dimmed to light source
CN114333711B (en) Color temperature detection method and device, color temperature adjusting method and display equipment
KR100758981B1 (en) Back-light unit having a plurality of luminous element and control method thereof
JP2017106991A (en) Backlight control device, image display device, and backlight control method
CN109036311A (en) Display driving method, display drive apparatus and the device with store function

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