CN115148161B - Automatic backlight adjustment method, device, equipment and storage medium - Google Patents

Automatic backlight adjustment method, device, equipment and storage medium Download PDF

Info

Publication number
CN115148161B
CN115148161B CN202210861931.5A CN202210861931A CN115148161B CN 115148161 B CN115148161 B CN 115148161B CN 202210861931 A CN202210861931 A CN 202210861931A CN 115148161 B CN115148161 B CN 115148161B
Authority
CN
China
Prior art keywords
backlight
value
pwm
target
current
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
CN202210861931.5A
Other languages
Chinese (zh)
Other versions
CN115148161A (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.)
Yuanfeng Technology Co Ltd
Original Assignee
Yuanfeng Technology Co 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 Yuanfeng Technology Co Ltd filed Critical Yuanfeng Technology Co Ltd
Priority to CN202210861931.5A priority Critical patent/CN115148161B/en
Publication of CN115148161A publication Critical patent/CN115148161A/en
Application granted granted Critical
Publication of CN115148161B publication Critical patent/CN115148161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/3406Control of illumination source
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Liquid Crystal (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses an automatic backlight adjusting method, an automatic backlight adjusting device, automatic backlight adjusting equipment and a storage medium. The automatic backlight adjusting method comprises the following steps: acquiring a current backlight PWM value; acquiring a backlight target PWM value; determining a PWM difference value of the current backlight PWM value and the backlight target PWM value; determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value; and adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation step value. By adopting the scheme, the problems that backlight flickers during low brightness adjustment caused by adopting fixed stepping brightness adjustment and adjustment is slow when the PWM target span is overlarge are solved.

Description

Automatic backlight adjustment method, device, equipment and storage medium
Technical Field
The present invention relates to the technical field of backlight adjustment of rearview mirrors, and in particular, to an automatic backlight adjustment method, apparatus, device, and storage medium.
Background
The streaming media rearview mirror has the function of automatic backlight adjustment, and the streaming media rearview mirror can adjust the corresponding backlight brightness according to the current ambient light brightness under different ambient light brightness.
In the current adjustment of the backlight brightness of the streaming media rearview mirror, fixed steps are adopted, or fixed change rate adjustment is adopted, for example, the adjustment to different target PWM values is carried out under different current PWM values, and the adjustment is carried out by adopting the fixed steps, so that the situation that the backlight adjustment is in flickering under a low brightness environment or the adjustment is too slow when the adjusted PWM value is too large can occur.
Disclosure of Invention
The invention provides an automatic backlight adjusting method, an automatic backlight adjusting device, automatic backlight adjusting equipment and a storage medium, which are used for solving the problems that backlight flicker occurs during low-brightness adjustment caused by adopting fixed stepping brightness adjustment and adjustment is slow when the PWM target span is overlarge.
According to an aspect of the present invention, there is provided an automatic backlight adjustment method including:
acquiring a current backlight PWM value;
acquiring a backlight target PWM value;
determining a PWM difference value of the current backlight PWM value and the backlight target PWM value;
determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value;
and adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation step value.
In an alternative embodiment of the present invention, the determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value includes:
determining an adjustment coefficient based on the current backlight PWM value, the backlight target PWM value and a preset backlight threshold;
determining a PWM variation step value based on the backlight target PWM value, the PWM difference value, and the adjustment coefficient by:
PWM change step value=a (d-the backlight target PWM value) +b+c, where a, b, c are the adjustment coefficients and d is a constant.
In an alternative embodiment of the present invention, the determining the adjustment coefficient based on the current backlight PWM value, the backlight target PWM value, and a preset backlight threshold value includes:
comparing the current backlight PWM value and the backlight target PWM value with a preset backlight threshold;
when the current backlight PWM value and the backlight target PWM value are both larger than the preset backlight threshold value, setting an adjusting coefficient as a first adjusting coefficient;
when the current backlight PWM value and the backlight target PWM value are not greater than the preset backlight threshold value, setting the adjustment coefficient as a second adjustment coefficient; wherein the first adjustment factor is greater than the second adjustment factor.
In an optional embodiment of the present invention, after comparing the current backlight PWM value with the backlight target PWM value and the preset backlight threshold value, the method further includes:
when the current backlight PWM value is larger than the preset backlight threshold value and the backlight target PWM value is smaller than the preset backlight threshold value, determining a first PWM variation stepping value and a second PWM variation stepping value, wherein the first PWM variation stepping value is larger than the second PWM variation stepping value;
correspondingly, the adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation step value includes:
adjusting the current backlight PWM value to the preset backlight threshold based on the first PWM variation step value;
and adjusting the current backlight PWM value from the preset backlight threshold value to the backlight target PWM value based on the second PWM variation stepping value.
In an optional embodiment of the present invention, after comparing the current backlight PWM value with the backlight target PWM value and the preset backlight threshold value, the method further includes:
and setting an adjustment coefficient as a first adjustment coefficient when the current backlight PWM value is smaller than the preset threshold value and the backlight target PWM value is larger than the preset backlight threshold value.
In an alternative embodiment of the present invention, the preset backlight threshold is 14 PWM values-16 PWM values.
In an alternative embodiment of the present invention, d is 100.
According to another aspect of the present invention, there is provided an automatic backlight adjustment apparatus including:
the current backlight acquisition module is used for acquiring a current backlight PWM value;
the target backlight acquisition module is used for acquiring a backlight target PWM value;
the difference value determining module is used for determining a PWM difference value between the current backlight PWM value and the backlight target PWM value;
the step determining module is used for determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value and the PWM difference value;
and the adjusting module is used for adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation stepping value.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the automatic backlight adjustment method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the automatic backlight adjustment method according to any one of the embodiments of the present invention.
According to the technical scheme, the current backlight PWM value is obtained; acquiring a backlight target PWM value; determining a PWM difference value of the current backlight PWM value and the backlight target PWM value; determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value; and adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation step value. Since the PWM change step value is determined according to the current backlight PWM value, the backlight target PWM value, and the PWM difference value, the adjustment may be performed according to actual conditions, instead of using a fixed value. The device solves the problem that the backlight adjustment is flickering or the adjustment is too slow when the PWM difference value is too large under the low-brightness environment due to the adoption of fixed stepping or fixed change rate adjustment. Different algorithms are adopted under the conditions of different current backlight PWM values and different backlight target PWM values, different PWM change stepping values under different brightness are calculated, the adjustment speed and the adjustment stepping are comprehensively considered, and the problem of too slow adjustment or backlight flickering in a dark environment is avoided.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an automatic backlight adjustment method according to a first embodiment of the present invention;
fig. 2 is a flowchart of an automatic backlight adjustment method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of the step of FIG. 2 of determining an adjustment factor based on the current backlight PWM value, the backlight target PWM value, and a preset backlight threshold;
fig. 4 is a schematic structural diagram of an automatic backlight adjusting device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing an automatic backlight adjustment method according to an embodiment of the present invention.
Wherein: 61. a current backlight acquisition module; 62. a target backlight acquisition module; 63. a difference value determining module; 64. a step determination module; 65. and an adjusting module.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of an automatic backlight adjustment method according to an embodiment of the present invention, where the method may be applied to the case of backlight adjustment of a streaming media rearview mirror, and the method may be performed by an automatic backlight adjustment device, and the automatic backlight adjustment device may be implemented in a form of hardware and/or software, and the automatic backlight adjustment device may be configured inside the streaming media rearview mirror. As shown in fig. 1, the automatic backlight adjustment method includes:
s110, acquiring a current backlight PWM value.
The brightness of the screen backlight can be adjusted by adjusting the PWM value output by the corresponding controller of the screen. The duty ratio of the PWM value represents an average voltage, and after the duty ratio is changed, the average voltage across the LED corresponding to the backlight is changed, so that the current flowing through the LED corresponding to the backlight is changed, and thus the brightness of the backlight is changed. In a specific embodiment, the controller used by the screen is an MCU.
The current backlight PWM value refers to the PWM value corresponding to the current backlight brightness.
S120, acquiring a backlight target PWM value.
The backlight target PWM value refers to a PWM value corresponding to a target luminance of the backlight.
In addition, the order of acquiring the current backlight PWM value and the backlight target PWM value is not particularly limited, and the current backlight PWM value and the backlight target PWM value may be acquired simultaneously, or the current backlight PWM value may be acquired first and then the backlight target PWM value may be acquired, or the backlight target PWM value may be acquired first and then the current backlight PWM value may be acquired.
S130, determining a PWM difference value between the current backlight PWM value and the backlight target PWM value.
The PWM difference reflects the difference between the current backlight PWM value and the backlight target PWM value, for example, when the backlight target PWM value is greater than the current backlight PWM value, the PWM difference may be obtained by subtracting the current backlight PWM value from the backlight target PWM value, or may be obtained by subtracting the current backlight PWM value from the backlight target PWM value and taking the absolute value.
S140, determining a PWM variation stepping value based on the current backlight PWM value, the backlight target PWM value and the PWM difference value.
The PWM change step value refers to the change amount of each PWM adjustment, for example, when PWM is changed from 1 to 2, the controller may flexibly set whether each PWM adjustment is changed from 1 to 2 directly, from 1 to 1.1, from 1.1 to 1.2 … …, or further subdivided. Wherein, since the PWM change step value is determined according to the current backlight PWM value, the backlight target PWM value, and the PWM difference value, the adjustment may be performed according to actual conditions, instead of using a fixed value.
S150, adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation stepping value.
The PWM change step value is a single adjustment amount, and the current backlight PWM value is adjusted to the backlight target PWM value based on the PWM change step value, namely the current backlight PWM value is changed by the PWM change step value once until the current backlight PWM value reaches the backlight target PWM value. For example, when PWM is changed from 1 to 2, the controller changes the PWM change step value to 1 if each adjustment is changed from 1 directly to 2, and to 0.1 if it is changed from 1 to 1.1 and then from 1.1 to 1.2 … ….
According to the scheme, the current backlight PWM value is obtained; acquiring a backlight target PWM value; determining a PWM difference value of the current backlight PWM value and the backlight target PWM value; determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value; and adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation step value. Since the PWM change step value is determined according to the current backlight PWM value, the backlight target PWM value, and the PWM difference value, the adjustment may be performed according to actual conditions, instead of using a fixed value. The device solves the problem that the backlight adjustment is flickering or the adjustment is too slow when the PWM difference value is too large under the low-brightness environment due to the adoption of fixed stepping or fixed change rate adjustment. Different algorithms are adopted under the conditions of different current backlight PWM values and different backlight target PWM values, different PWM change stepping values under different brightness are calculated, the adjustment speed and the adjustment stepping are comprehensively considered, and the problem of too slow adjustment or backlight flickering in a dark environment is avoided.
Example two
Fig. 2 is a flowchart of an automatic backlight adjustment method according to a second embodiment of the present invention, and the relationship between the present embodiment and the above embodiment is to refine the step of determining the PWM change step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value. As shown in fig. 2, the method includes:
s210, acquiring a current backlight PWM value.
S220, acquiring a backlight target PWM value.
S230, determining a PWM difference value between the current backlight PWM value and the backlight target PWM value.
S240, determining an adjusting coefficient based on the current backlight PWM value, the backlight target PWM value and a preset backlight threshold value.
S250, determining a PWM variation stepping value based on the backlight target PWM value, the PWM difference value and the adjustment coefficient by the following formula: PWM change step value=a (d-the backlight target PWM value) +b+c, where a, b, c are the adjustment coefficients and d is a constant.
When the adjustment coefficients are different, the PWM change step values obtained by the formula are also different, so that the adjustment coefficients are determined by the current backlight PWM value, the backlight target PWM value and the preset backlight threshold value, and the PWM change step values can be conveniently determined according to the determined adjustment coefficients. Meanwhile, when the PWM difference value is larger, the PWM change stepping value is larger, so that the adjusting speed is faster. The backlight adjusting effect and speed under various scenes are dynamically compatible, and the problems of backlight adjusting flicker and too slow adjustment when PWM changes are too large under dark environments are solved.
In addition, d is a constant, and the value of d may be different according to different requirements, for example, any one of numbers 95 to 100, or any one of numbers 90 to 100, so long as a maximum value greater than the target PWM value of the backlight can be ensured, and the specific limitation is not provided herein. In a specific embodiment, d is 100, and the PWM duty ratio is 100% at maximum, so that when the brightness is adjusted to be the brightest, the PWM value corresponds to 100%, and by making d 100, it can be ensured that d is greater than the backlight target PWM value no matter what backlight is used.
And S260, adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation stepping value.
In an alternative embodiment of the present invention, the determining the adjustment coefficient based on the current backlight PWM value, the backlight target PWM value, and a preset backlight threshold value, as shown in fig. 3, includes:
s241, comparing the current backlight PWM value and the backlight target PWM value with a preset backlight threshold.
S242, when the current backlight PWM value and the backlight target PWM value are both larger than the preset backlight threshold, setting the adjustment coefficient as a first adjustment coefficient.
S243, setting the adjustment coefficient as a second adjustment coefficient when the current backlight PWM value and the backlight target PWM value are not greater than the preset backlight threshold; wherein the first adjustment factor is greater than the second adjustment factor.
The above formula can obtain that the larger the adjustment coefficient is, the larger the PWM change step value is. Therefore, when the first adjustment coefficient is greater than the second adjustment coefficient, the PWM variation step value corresponding to the first adjustment coefficient is greater than the PWM variation step value corresponding to the second adjustment coefficient. The specific sizes of the first adjustment coefficient and the second adjustment coefficient are not specifically limited, and can be specifically set according to the actual brightness interval range and the actual use requirement of the corresponding display screen.
The preset backlight threshold is a threshold for distinguishing a dark environment from a bright environment, and if the brightness is adjusted to be low in the dark environment, the human eye can obviously feel the change of the backlight if the brightness adjustment speed of the backlight is too high at the moment, and the human eye possibly senses the backlight to flicker, so that the speed of backlight adjustment needs to be reduced in the dark environment, and when the backlight is in the bright environment, the adjustment time needs to be considered, and quick adjustment is needed. When the current backlight PWM value and the backlight target PWM value are both larger than the preset backlight threshold value, the situation that the backlight is in a bright environment at the moment is indicated, quick adjustment is needed, a larger first adjustment coefficient is adopted to calculate a PWM change stepping value at the moment, and backlight can be quickly adjusted. When the current backlight PWM value and the backlight target PWM value are not larger than the preset backlight threshold value, the dark environment is indicated, the PWM change step value is calculated by adopting a smaller second adjusting coefficient, the backlight can be slowly adjusted, and the situation that human eyes feel that the backlight flickers is effectively reduced. Therefore, the backlight adjusting effect and the speed under various scenes can be dynamically compatible, and the problems of backlight adjusting flicker and too slow adjustment when the PWM changes too much under dark environment are solved.
In an optional embodiment of the present invention, after comparing the current backlight PWM value with the backlight target PWM value and the preset backlight threshold value, the method further includes:
and when the current backlight PWM value is larger than the preset backlight threshold value and the backlight target PWM value is smaller than the preset backlight threshold value, determining a first PWM variation stepping value and a second PWM variation stepping value, wherein the first PWM variation stepping value is larger than the second PWM variation stepping value.
Correspondingly, the adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation step value includes:
and adjusting the current backlight PWM value to the preset backlight threshold value based on the first PWM variation stepping value.
And adjusting the current backlight PWM value from the preset backlight threshold value to the backlight target PWM value based on the second PWM variation stepping value.
The first PWM variation step-by-step value and the second PWM variation step-by-step value are determined by adjusting the adjustment coefficient. The first PWM variation step value can be made larger than the second PWM variation step value by only making the adjustment coefficient calculated for the first PWM variation step value larger than the adjustment coefficient calculated for the second PWM variation step value.
When the current backlight PWM value is larger than the preset backlight threshold value and the backlight target PWM value is smaller than the preset backlight threshold value, the condition that the backlight needs to be adjusted from a bright environment to a dark environment at the moment is indicated, adjustment and decomposition are carried out at the moment, the current backlight PWM value is adjusted to the preset backlight threshold value firstly based on the first PWM change step value, and the current backlight PWM value which is in the bright environment can be quickly adjusted to the preset backlight threshold value at the moment because the first PWM change step value is larger than the second PWM change step value, so that the adjustment time is shortened. And then adjusting the current backlight PWM value from the preset backlight threshold value to the backlight target PWM value based on the second PWM variation stepping value. At the moment, the current backlight PWM value can be adjusted from the preset backlight threshold value to the backlight target PWM value at a slower speed, and the adverse condition that backlight flickers due to too fast dark environment adjustment is prevented.
For example, when the preset backlight threshold is 15, the current backlight PWM value is 50, and the backlight target PWM value is 10, the adjustment is decomposed into: and A phase: 50- >15, this part is rapidly regulated, B-stage: 15- >10 with slow adjustment.
According to the scheme, different algorithms are adopted under the conditions of different current backlight PWM values and different backlight target PWM values, different PWM change step values under different brightness are calculated, and the problems of too slow adjustment or backlight flickering in a dark environment are avoided by comprehensively considering the adjustment speed and the adjustment steps through sectional adjustment.
In an optional embodiment of the present invention, after comparing the current backlight PWM value with the backlight target PWM value and the preset backlight threshold value, the method further includes:
and setting an adjustment coefficient as a first adjustment coefficient when the current backlight PWM value is smaller than the preset threshold value and the backlight target PWM value is larger than the preset backlight threshold value.
The first adjustment coefficient corresponds to a mode with higher adjustment speed, and because human eyes are less sensitive to environment brightening and change of bright environment, when the current backlight PWM value is smaller than the preset threshold value and the backlight target PWM value is larger than the preset backlight threshold value, the mode of quick adjustment is not decomposed, and the waiting time of a user is reduced.
In an alternative embodiment of the present invention, the preset backlight threshold is 12 PWM values-18 PWM values, which may be, for example, 14 PWM values-16 PWM values, and in a specific embodiment, 15 PWM values. According to practical test experience, the preset backlight threshold value may be different under different backlight conditions, and for most cases, backlight adjustment is easier to flicker under the condition that the target PWM value of the backlight is smaller than 14 PWM values, and under the condition that the target PWM value of the backlight is larger than 16 PWM values, the flicker of the backlight is difficult to find by human eyes, so that the problem that the backlight is excessively slow to adjust or the backlight in a dark environment can be better avoided by taking 14 PWM values-16 PWM values as threshold values in software design.
Example III
Fig. 4 is a schematic structural diagram of an automatic backlight adjusting device according to a third embodiment of the present invention.
As shown in fig. 4, the apparatus includes:
the current backlight acquiring module 61 is configured to acquire a current backlight PWM value.
The target backlight acquisition module 62 is configured to acquire a backlight target PWM value.
The difference determining module 63 is configured to determine a PWM difference between the current backlight PWM value and the backlight target PWM value.
A step determination module 64 for determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value.
An adjustment module 65, configured to adjust the current backlight PWM value to the backlight target PWM value based on the PWM variation step value.
Alternatively, the step determination module 64 includes a coefficient determination sub-module and a step determination sub-module.
And the coefficient determination submodule is used for determining an adjusting coefficient based on the current backlight PWM value, the backlight target PWM value and a preset backlight threshold value.
The step determining submodule is used for determining a PWM variation step value based on the backlight target PWM value, the PWM difference value and the adjustment coefficient by the following formula:
PWM change step value=a (d-the backlight target PWM value) +b+c, where a, b, c are the adjustment coefficients and d is a constant. Preferably, d is 100.
Optionally, the coefficient determination submodule includes a comparing unit, a first coefficient determination unit and a second coefficient determination unit.
And the comparison unit is used for comparing the current backlight PWM value and the backlight target PWM value with a preset backlight threshold value.
And the first coefficient determining unit is used for setting the adjusting coefficient as a first adjusting coefficient when the current backlight PWM value and the backlight target PWM value are both larger than the preset backlight threshold value.
A second coefficient determining unit, configured to set the adjustment coefficient to a second adjustment coefficient when both the current backlight PWM value and the backlight target PWM value are not greater than the preset backlight threshold value; wherein the first adjustment factor is greater than the second adjustment factor.
Optionally, the coefficient determination submodule further includes a step determination unit.
And the step determining unit is used for determining a first PWM variation step value and a second PWM variation step value when the current backlight PWM value is larger than the preset backlight threshold value and the backlight target PWM value is smaller than the preset backlight threshold value, wherein the first PWM variation step value is larger than the second PWM variation step value.
Accordingly, the adjustment module 65 includes a first adjustment sub-module and a second adjustment sub-module.
And the first adjusting sub-module is used for adjusting the current backlight PWM value to the preset backlight threshold value based on the first PWM variation stepping value.
And the second adjusting sub-module is used for adjusting the current backlight PWM value from the preset backlight threshold value to the backlight target PWM value based on the second PWM variation stepping value.
Optionally, the coefficient determination submodule further includes a third coefficient determination unit.
And the third coefficient determining unit is used for setting the adjusting coefficient to be the first adjusting coefficient when the current backlight PWM value is smaller than the preset threshold value and the backlight target PWM value is larger than the preset backlight threshold value.
Optionally, the preset backlight threshold is 14 PWM values-16 PWM values. Preferably, the preset backlight threshold is 15 PWM values.
The automatic backlight adjusting device provided by the embodiment of the invention can execute the automatic backlight adjusting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as an automatic backlight adjustment method.
In some embodiments, the automatic backlight adjustment method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more steps of the automatic backlight adjustment method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the automatic backlight adjustment method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (9)

1. An automatic backlight adjustment method, characterized in that the automatic backlight adjustment method comprises:
acquiring a current backlight PWM value;
acquiring a backlight target PWM value;
determining a PWM difference value of the current backlight PWM value and the backlight target PWM value;
determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value;
the determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value, and the PWM difference value comprises:
determining an adjustment coefficient based on the current backlight PWM value, the backlight target PWM value and a preset backlight threshold;
determining a PWM variation step value based on the backlight target PWM value, the PWM difference value, and the adjustment coefficient by:
PWM change step value = a (d-the backlight target PWM value) +b the PWM difference value + c, wherein a, b, c are the adjustment coefficients and d is a constant;
and adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation step value.
2. The automatic backlight adjustment method according to claim 1, wherein the determining an adjustment coefficient based on the current backlight PWM value, the backlight target PWM value, and a preset backlight threshold value comprises:
comparing the current backlight PWM value and the backlight target PWM value with a preset backlight threshold;
when the current backlight PWM value and the backlight target PWM value are both larger than the preset backlight threshold value, setting an adjusting coefficient as a first adjusting coefficient;
when the current backlight PWM value and the backlight target PWM value are not greater than the preset backlight threshold value, setting the adjustment coefficient as a second adjustment coefficient; wherein the first adjustment factor is greater than the second adjustment factor.
3. The automatic backlight adjustment method according to claim 2, wherein after comparing the current backlight PWM value and the backlight target PWM value with a preset backlight threshold value, further comprising:
when the current backlight PWM value is larger than the preset backlight threshold value and the backlight target PWM value is smaller than the preset backlight threshold value, determining a first PWM variation stepping value and a second PWM variation stepping value, wherein the first PWM variation stepping value is larger than the second PWM variation stepping value;
correspondingly, the adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation step value includes:
adjusting the current backlight PWM value to the preset backlight threshold based on the first PWM variation step value;
and adjusting the current backlight PWM value from the preset backlight threshold value to the backlight target PWM value based on the second PWM variation stepping value.
4. The automatic backlight adjustment method according to claim 2, wherein after comparing the current backlight PWM value and the backlight target PWM value with a preset backlight threshold value, further comprising:
and setting an adjustment coefficient as a first adjustment coefficient when the current backlight PWM value is smaller than the preset threshold value and the backlight target PWM value is larger than the preset backlight threshold value.
5. The automatic backlight adjustment method according to any one of claims 2 to 4, wherein the preset backlight threshold value is 14 PWM values-16 PWM values.
6. The automatic backlight adjustment method according to any one of claims 2 to 4, wherein d is 100.
7. An automatic backlight adjustment device, comprising:
the current backlight acquisition module is used for acquiring a current backlight PWM value;
the target backlight acquisition module is used for acquiring a backlight target PWM value;
the difference value determining module is used for determining a PWM difference value between the current backlight PWM value and the backlight target PWM value;
the step determining module is used for determining a PWM variation step value based on the current backlight PWM value, the backlight target PWM value and the PWM difference value;
the step determination module includes a coefficient determination sub-module and a step determination sub-module:
the coefficient determination submodule is used for determining an adjusting coefficient based on the current backlight PWM value, the backlight target PWM value and a preset backlight threshold value;
the step determining submodule is used for determining a PWM variation step value based on the backlight target PWM value, the PWM difference value and the adjustment coefficient by the following formula:
PWM change step value = a (d-the backlight target PWM value) +b the PWM difference value + c, wherein a, b, c are the adjustment coefficients and d is a constant;
and the adjusting module is used for adjusting the current backlight PWM value to the backlight target PWM value based on the PWM variation stepping value.
8. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the automatic backlight adjustment method of any one of claims 1-6.
9. A computer readable storage medium storing computer instructions for causing a processor to perform the automatic backlight adjustment method of any one of claims 1-6.
CN202210861931.5A 2022-07-21 2022-07-21 Automatic backlight adjustment method, device, equipment and storage medium Active CN115148161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210861931.5A CN115148161B (en) 2022-07-21 2022-07-21 Automatic backlight adjustment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210861931.5A CN115148161B (en) 2022-07-21 2022-07-21 Automatic backlight adjustment method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115148161A CN115148161A (en) 2022-10-04
CN115148161B true CN115148161B (en) 2023-07-18

Family

ID=83413383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210861931.5A Active CN115148161B (en) 2022-07-21 2022-07-21 Automatic backlight adjustment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115148161B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06289780A (en) * 1993-03-31 1994-10-18 Maspro Denkoh Corp Vehicular map display device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003345304A (en) * 2002-05-24 2003-12-03 Samsung Sdi Co Ltd Method and device for automatic power control of plasma display panel, plasma display panel apparatus having the device, and medium with stored command for instructing the method to computer
JP2004279503A (en) * 2003-03-13 2004-10-07 Toshiba Corp Information processor and display luminance control method
CN101546537B (en) * 2008-03-28 2011-02-16 北京京东方光电科技有限公司 Drive method, compensation processor and drive device of liquid crystal display device
US20100309213A1 (en) * 2009-06-08 2010-12-09 Himax Media Solutions, Inc. Adaptive Stepping-Control System and Method for Dynamic Backlight Control
TWI428891B (en) * 2009-12-04 2014-03-01 Htc Corp Electronic apparatus and backlight brightness control method thereof
CN102097056B (en) * 2009-12-11 2014-12-10 宏达国际电子股份有限公司 Electronic device and method for controlling backlight brightness
CN104240678B (en) * 2013-06-17 2017-12-29 华为终端(东莞)有限公司 Adjust the method and apparatus and terminal of screen backlight brightness
CN107111992B (en) * 2015-12-31 2019-12-06 华为技术有限公司 method and terminal for adjusting backlight brightness
CN105575366B (en) * 2016-02-26 2017-10-24 广东欧珀移动通信有限公司 Switch the method and system of backlight governing speed
CN109473067A (en) * 2018-12-13 2019-03-15 青岛海信电器股份有限公司 A kind of back light brightness regulating method, device and display equipment
CN209374038U (en) * 2019-03-07 2019-09-10 西安索格亚航空科技有限公司 A kind of circuit of control brightness of display screen variation
JP6861769B2 (en) * 2019-08-09 2021-04-21 本田技研工業株式会社 Display control device, display control method, and program
CN110890071B (en) * 2019-11-20 2021-03-23 东风电驱动系统有限公司 Instrument backlight adjusting method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06289780A (en) * 1993-03-31 1994-10-18 Maspro Denkoh Corp Vehicular map display device

Also Published As

Publication number Publication date
CN115148161A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN107111992B (en) method and terminal for adjusting backlight brightness
US10242628B2 (en) Light Emitting Diode (LED) backlight control for reproduction of High Dynamic Range (HDR) content using Standard Dynamic Range (SDR) Liquid Crystal Display (LCD) panels
US20170199563A1 (en) Image Display Method and Display System
CN109243383B (en) Backlight brightness adjusting method of display screen and display screen device
CN113947571A (en) Training method of vehicle damage detection model and vehicle damage identification method
US8837829B2 (en) Image processing apparatus, storage medium storing image processing program, and image processing method
CN115148161B (en) Automatic backlight adjustment method, device, equipment and storage medium
CN112863424A (en) Display screen brightness adjusting method and device and electronic equipment
CN116668843A (en) Shooting state switching method and device, electronic equipment and storage medium
CN114727029B (en) Video processing method and device, electronic equipment and storage medium
CN115035849A (en) Gamma debugging method, device, equipment and storage medium of display panel
CN115237240A (en) Method and device for managing power of multi-partition platform
CN113450700B (en) Display control method and device, display equipment and electronic equipment
CN115171606A (en) Image adjusting method and device, electronic equipment and storage medium
WO2021232900A1 (en) Method and system for adjusting display brightness of an electronic device
CN115376447A (en) LED display screen driving method and system
CN114863701B (en) Traffic signal lamp control method, device, electronic equipment and medium
CN113160377B (en) Method, apparatus, device and storage medium for processing image
CN116052617B (en) Screen brightness control system, method, device, equipment and storage medium
CN117022106A (en) Method, device, equipment and medium for adjusting backlight lamp of vehicle
CN115855455B (en) Method and device for determining screen temperature of display and storage medium
CN113612931B (en) Method, device and equipment for controlling flash lamp based on cloud mobile phone and storage medium
CN117218958A (en) Method and device for determining display screen loading scheme, electronic equipment and storage medium
CN114115657B (en) Display mode switching method, device, equipment and medium of cloud mobile phone
CN117589288A (en) Ambient light detection method and device, electronic equipment and storage medium

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