Key backlight correction method and device, electronic equipment and readable storage medium

By obtaining the influence coefficient of the button backlight and adjusting the brightness, the problem of high resource consumption of button backlight was solved, and the overall backlight brightness setting was achieved with a small number of LEDs, reducing the number of hardware interfaces and costs.

CN115810504BActive Publication Date: 2026-02-17GOERTEK INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211468534.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2026-02-17
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

In existing technologies, button backlighting consumes a significant amount of resources, especially when there are many buttons. The same number of LED beads are required, which increases the number of hardware interfaces, overall power consumption, and battery life, resulting in higher costs.

Method used

By obtaining the influence coefficient of the backlight fixture on each button, the target button is selected, and the backlight calibration is performed by adjusting the display brightness of the fixture according to the preset brightness and influence coefficient. This reduces the number of LED beads and uses a small number of LED beads to represent the brightness of all buttons.

Benefits of technology

This reduces the resource consumption of button backlighting, avoids the need to set the same number of LED beads when there are many buttons, and reduces the number of hardware interfaces, overall power consumption and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115810504B_ABST
    Figure CN115810504B_ABST
Patent Text Reader

Abstract

The application discloses a key backlight correction method and device, electronic equipment and a readable storage medium, which are applied to the technical field of backlight correction and a key device, and the key device comprises at least one key and a key backlight lamp, and the key backlight correction method comprises the following steps: acquiring influence coefficients of the key backlight lamp on each key, wherein the influence coefficient is used for representing the influence degree of the key backlight lamp on the display brightness of each key; selecting at least one target key from each key according to the influence coefficients; and performing backlight correction on each key by adjusting the lamp display brightness of the key backlight lamp according to the preset key display brightness of each target key and the influence coefficients. The application solves the technical problem of large resource loss of key backlight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of backlight correction technology, and in particular to a button backlight correction method, apparatus, electronic device and readable storage medium. Background Technology

[0002] The lighting fixtures used for button backlighting are usually LED beads. When there are multiple LED beads, the design fluctuations of multiple LED beads can overlap, which can easily cause the overall backlight display effect to deviate from the expected overall backlight brightness setting.

[0003] Currently, each button is backlit with its own dedicated LED to avoid the overlap of design fluctuations between multiple LEDs, ensuring that the overall backlight display effect meets the expected backlight brightness. However, when there are many buttons, the same number of LEDs are required, which increases the number of hardware interfaces corresponding to the buttons, the overall power consumption, battery life, and cost, resulting in significant resource consumption for button backlighting. Summary of the Invention

[0004] The main purpose of this application is to provide a method, apparatus, electronic device and readable storage medium for calibrating button backlight, which aims to solve the technical problem of high resource consumption of button backlight in the prior art.

[0005] To achieve the above objectives, this application provides a key backlight calibration method applied to a key device, the key device including at least one key and a key backlight fixture, the key backlight calibration method comprising:

[0006] Obtain the influence coefficient of the button backlight on each button, wherein the influence coefficient is used to characterize the degree of influence of the button backlight on the display brightness of each button;

[0007] Based on the influence coefficients described, at least one target button is selected from among the buttons.

[0008] Based on the preset key display brightness corresponding to each target key and each influence coefficient, the backlight of each key is corrected by adjusting the display brightness of the key backlight.

[0009] Optionally, the button backlight fixture includes at least one LED, and the step of obtaining the influence coefficient of the button backlight fixture on each button includes:

[0010] Obtain the control parameters corresponding to each of the LED beads, and the button display brightness of each of the buttons when a single LED bead is turned on;

[0011] Calculate the ratio between the brightness of each button and the corresponding control parameter to obtain the influence coefficient of each LED on each button.

[0012] Optionally, the button backlight fixture includes at least one LED, and the step of selecting at least one target button among the buttons according to each of the influence coefficients includes:

[0013] Obtain the number of LED beads;

[0014] Based on the number of LED beads, each button is divided into at least one button correction area, wherein the number of button correction areas is less than or equal to the number of LED beads;

[0015] Based on the respective influence coefficients, at least one target button is selected in each of the respective button correction areas.

[0016] Optionally, the step of dividing each button into at least one button calibration area according to the number of LED beads includes:

[0017] Determine the distribution of each LED bead position in each of the buttons;

[0018] Based on the distribution of the LED beads, the number of LED beads, and the influence coefficients of each LED bead, each button is divided into at least one button correction area.

[0019] Optionally, the step of selecting at least one target button in each of the button correction areas according to each of the influence coefficients includes:

[0020] Determine the number of LED beads corresponding to each button calibration area, and use the number of LED beads in each area as the number of target buttons corresponding to the target buttons in each button calibration area.

[0021] Based on the influence coefficients and the number of target buttons, target buttons are selected in each button calibration area.

[0022] Optionally, the button backlight fixture includes at least one LED, and the step of adjusting the backlight brightness of each button by adjusting the lamp display brightness of the button backlight fixture according to the preset button display brightness of each target button and each influence coefficient includes:

[0023] Obtain the superimposed display brightness of each target button when all the LEDs are turned on;

[0024] Based on the preset display brightness of each button, the superimposed display brightness of each button, and the influence coefficient, the control parameters corresponding to each LED bead are adjusted to adjust the display brightness of the button backlight and perform backlight correction on each button.

[0025] Optionally, the step of adjusting the backlight brightness of the buttons by correcting the control parameters of each lamp based on the preset button display brightness, the superimposed button display brightness, and the influence coefficients, includes:

[0026] The difference between the display brightness of each preset button and the superimposed display brightness of the corresponding button is used as the brightness offset degree of each target button.

[0027] Based on the brightness offset degree and the influence coefficient, the control parameters corresponding to each of the LED beads are adjusted to adjust the display brightness of the button backlight and to perform backlight correction on each of the buttons.

[0028] To achieve the above objectives, this application also provides a key backlight calibration device, which is applied to a key device including at least one key and a key backlight fixture. The key backlight calibration device includes:

[0029] The acquisition module is used to acquire the influence coefficient of the button backlight on each button, wherein the influence coefficient is used to characterize the degree of influence of the button backlight on the display brightness of each button;

[0030] The selection module is used to select at least one target button from the buttons according to the influence coefficients.

[0031] The calibration module is used to perform backlight calibration on each of the target buttons by adjusting the backlight brightness of the button backlight fixtures based on the preset button display brightness corresponding to each target button and the influence coefficients.

[0032] Optionally, the button backlight fixture includes at least one LED, and the acquisition module is further configured to:

[0033] Obtain the control parameters corresponding to each of the LED beads, and the button display brightness of each of the buttons when a single LED bead is turned on;

[0034] Calculate the ratio between the brightness of each button and the corresponding control parameter to obtain the influence coefficient of each LED on each button.

[0035] Optionally, the button backlight fixture includes at least one LED, and the selection module is further used for:

[0036] Obtain the number of LED beads;

[0037] Based on the number of LED beads, each button is divided into at least one button correction area, wherein the number of button correction areas is less than or equal to the number of LED beads;

[0038] Based on the respective influence coefficients, at least one target button is selected in each of the respective button correction areas.

[0039] Optionally, the selection module is further configured to:

[0040] Determine the distribution of each LED bead position in each of the buttons;

[0041] Based on the distribution of the LED beads, the number of LED beads, and the influence coefficients of each LED bead, each button is divided into at least one button correction area.

[0042] Optionally, the selection module is further configured to:

[0043] Determine the number of LED beads corresponding to each button calibration area, and use the number of LED beads in each area as the number of target buttons corresponding to the target buttons in each button calibration area.

[0044] Based on the influence coefficients and the number of target buttons, target buttons are selected in each button calibration area.

[0045] Optionally, the button backlight fixture includes at least one LED, and the calibration module is further used for:

[0046] Obtain the superimposed display brightness of each target button when all the LEDs are turned on;

[0047] Based on the preset display brightness of each button, the superimposed display brightness of each button, and the influence coefficient, the control parameters corresponding to each LED bead are adjusted to adjust the display brightness of the button backlight and perform backlight correction on each button.

[0048] Optionally, the correction module is further configured to:

[0049] The difference between the display brightness of each preset button and the superimposed display brightness of the corresponding button is used as the brightness offset degree of each target button.

[0050] Based on the brightness offset degree and the influence coefficient, the control parameters corresponding to each of the LED beads are adjusted to adjust the display brightness of the button backlight and to perform backlight correction on each of the buttons.

[0051] This application also provides an electronic device, the electronic device comprising: a memory, a processor, and a program of the key backlight calibration method stored in the memory and executable on the processor, wherein when the program of the key backlight calibration method is executed by the processor, the steps of the key backlight calibration method as described above can be implemented.

[0052] This application also provides a computer-readable storage medium storing a program for implementing a key backlight calibration method, wherein when the program for the key backlight calibration method is executed by a processor, it implements the steps of the key backlight calibration method as described above.

[0053] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the key backlight calibration method described above.

[0054] This application provides a method, apparatus, electronic device, and readable storage medium for correcting button backlighting. The method applies to a button device, which includes at least one button and a button backlight fixture. Compared to methods that use individual LEDs for backlighting each button, this application obtains an influence coefficient of the button backlight fixture on each button. This influence coefficient characterizes the degree of influence of the button backlight fixture on the display brightness of each button. Based on the influence coefficients, at least one target button is selected from the buttons. Based on the preset display brightness of each target button and the influence coefficients, the backlight fixture's display brightness is adjusted to correct the backlighting of each button. The buttons undergo backlight calibration, and the influence coefficient characterizes the effect of each button's backlight on the brightness of each button. Since a single LED in the button backlight can affect multiple buttons, the brightness of all buttons can be represented by a small number of target buttons. Therefore, the overall button backlight display can be performed based on a small number of target buttons and a small number of LEDs. Thus, even if there are a large number of buttons, the overall backlight brightness can still be set to the expected level with a small number of LEDs. This avoids the technical drawbacks of having to set the same number of LEDs when there are a large number of buttons, which would increase the number of hardware interfaces corresponding to the buttons, the power consumption of the whole machine, the battery life, and the cost. Therefore, the resource consumption of button backlight is reduced. Attached Figure Description

[0055] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0056] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 This is a flowchart illustrating the first embodiment of the button backlight correction method of this application;

[0058] Figure 2 This is a schematic diagram of the device structure of the hardware operating environment involved in the button backlight correction method in this application embodiment.

[0059] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0060] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0061] Example 1

[0062] This application provides a button backlight calibration method. In the first embodiment of the button backlight calibration method of this application, refer to... Figure 1 The method is applied to a button device, the button device including at least one button and a button backlight fixture, and the button backlight calibration method includes:

[0063] Step S10: Obtain the influence coefficient of the button backlight on each button, wherein the influence coefficient is used to characterize the degree of influence of the button backlight on the display brightness of each button;

[0064] Step S20: Select at least one target button from among the buttons according to each of the influence coefficients.

[0065] Step S30: Based on the preset key display brightness corresponding to each target key and each influence coefficient, backlight correction is performed on each key by adjusting the display brightness of the key backlight lamp.

[0066] In this embodiment, it should be noted that the button device is a terminal device with button backlight display function. The button device can be a keyboard, a remote control, a game controller, or other terminal devices with button backlight display. The button backlight lamps are lamps deployed on each of the buttons for button backlighting. The display brightness of the lamps corresponding to each button backlight lamp can be the same or different. The preset button display brightness is the expected button display brightness of each target button. The preset button display brightness can be set by the user or randomly set by the system.

[0067] For example, steps S10 to S30 include: obtaining the lamp control parameters corresponding to the button backlight lamp; obtaining the influence coefficient of the button backlight lamp on each of the buttons under the lamp control parameters; selecting at least one target button among the buttons according to the influence coefficients; obtaining the preset button display brightness corresponding to each target button; and performing backlight correction on each button by adjusting the lamp display brightness of the button backlight lamp according to the preset button display brightness and the influence coefficients.

[0068] In step S10, the button backlight fixture includes at least one LED, and the step of obtaining the influence coefficient of the button backlight fixture on each button includes:

[0069] Step S11: Obtain the control parameters corresponding to each of the LED beads, and the button display brightness of each of the buttons when a single LED bead is turned on;

[0070] Step S12: Calculate the ratio between the brightness of each button and the corresponding control parameter to obtain the influence coefficient of each LED on each button.

[0071] Understandably, the brightness setting for each button is not fixed, but the number of LEDs deployed for backlighting each button in the button backlight fixture is fixed. If the number of buttons to be calibrated is less than the number of fixtures, then when the button brightness setting is low, all fixtures can be turned on, resulting in lower brightness for each fixture. Alternatively, some fixtures can be turned on, with the brightness of the already turned-on fixtures being higher than the brightness of all fixtures being on. If the number of buttons to be calibrated equals the number of fixtures, then all fixtures need to be turned on, and the control parameters for each fixture are determined by the influence coefficient.

[0072] In this embodiment, it should be noted that the LED bead is a semiconductor device for emitting light that constitutes the button backlight fixture. The LED bead can be an LED (Light Emitting Diode), an RGB LED, or an LED bead made of other materials. The control parameter is a parameter that controls the display brightness when the LED bead emits light. The control parameter can be the duty cycle of PWM (Pulse Width Modulation). The duty cycle of the PWM can be 50%, 60%, 70%, or other values.

[0073] For example, steps S11 to S12 include: obtaining control parameters corresponding to each of the LED beads; controlling each LED bead to turn on individually under its corresponding control parameters; sensing the display brightness of each LED bead when it is turned on individually by an image sensor deployed on each of the buttons; obtaining the button display brightness when each button turns on a single LED bead; wherein the image sensor can be a CCD (Charge Coupled Device) image sensor, a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor, or something else; calculating the ratio between the display brightness of each button and the corresponding control parameter, and using the ratio as the influence coefficient of each LED bead on each button. For example, when the control parameter of LED bead 1 and LED bead 2 is 50, when LED bead 1 is turned on, the button brightness of button 1 is 40, and when LED bead 2 is turned on, the button brightness of button 1 is 0, then the influence coefficient of LED bead 1 on button 1 is 40 / 50, and the influence coefficient of LED bead 2 on button 1 is 0.

[0074] In step S30, the button backlight fixture includes at least one LED, and the step of adjusting the backlight brightness of the button backlight fixture to correct the backlight of each button based on the preset button display brightness of each target button and each influence coefficient includes:

[0075] Step S31: Obtain the superimposed display brightness of each target button when all the LEDs are turned on;

[0076] Step S32: Adjust the control parameters corresponding to each LED bead according to the preset display brightness of each button, the superimposed display brightness of each button, and the influence coefficient, so as to adjust the display brightness of the button backlight and perform backlight correction on each button.

[0077] In this embodiment, it should be noted that the superimposed brightness of the button display is the superposition of the designed brightness of each of the LED beads on each of the target buttons.

[0078] It is understandable that different LED beads are easily affected by engineering capabilities such as product size manufacturing tolerances, assembly tolerances, SMT mounting accuracy, and angle tolerances due to the structural components such as LED silicone and light guide film. This can easily lead to a deviation between the actual display brightness and the set brightness of a single LED bead. Consequently, when adjusting the brightness directly based on the set brightness of the LED bead, the adjustment accuracy is likely to be low, resulting in poor backlighting effect for the buttons.

[0079] To address the aforementioned deficiencies, steps S31 to S32, exemplarily, include: controlling each of the LED beads to turn on; sensing the display brightness of each target button when all LED beads are turned on using an image sensor deployed on each of the target buttons; obtaining the superimposed display brightness of each target button when all LED beads are turned on; wherein the image sensor can be a CCD image sensor or a CMOS image sensor; determining the parameter adjustment value corresponding to the control parameters of each LED bead based on the preset button display brightness, the superimposed display brightness of each button, and the influence coefficient; adjusting each control parameter according to the parameter adjustment value to adjust the display brightness of the button backlight; performing backlight correction on each button; and correcting the control parameters of the LED beads according to the preset button display brightness, thereby mapping the backlight brightness correction of the buttons to the adjustment of the control parameters of the LED beads. This avoids the technical defect of low adjustment accuracy when directly adjusting based on the set brightness of the LED beads, thus improving the backlight effect of the buttons.

[0080] As an example, step S32 includes: obtaining a preset correlation relationship, wherein the correlation relationship can be a mapping relationship and / or a correspondence relationship, the preset correlation relationship includes parameter adjustment values ​​of control parameters of each LED corresponding to each preset button display brightness, each button superimposed display brightness, and each influence coefficient; determining the parameter adjustment value corresponding to each lamp based on each preset button display brightness, each button superimposed display brightness, each influence coefficient, and the preset correlation relationship; adjusting each control parameter according to each parameter adjustment value to adjust the lamp display brightness of the button backlight lamp, and performing backlight correction on each button.

[0081] As an example, step S32 includes: obtaining a preset lamp parameter adjustment model; constructing lamp feature information corresponding to each of the preset buttons, the superimposed display brightness of each of the preset buttons, and the influence coefficients of each of the preset buttons; mapping the lamp feature information to parameter adjustment values ​​corresponding to each of the preset lamp parameters through the preset lamp parameter adjustment model; adjusting each of the control parameters according to each of the parameter adjustment values ​​to adjust the lamp display brightness of the button backlight lamp and perform backlight correction on each of the buttons.

[0082] In step S32, the step of adjusting the backlight brightness of the buttons by correcting the control parameters of each lamp based on the preset button display brightness, the superimposed button display brightness, and the influence coefficients includes:

[0083] Step A10: The difference between the display brightness of each preset button and the superimposed display brightness of the corresponding button is used as the brightness offset degree corresponding to each target button;

[0084] Step A20: Adjust the control parameters corresponding to each of the LED beads according to the brightness offset degree and the influence coefficient, so as to adjust the display brightness of the backlight of the button and perform backlight correction on each button.

[0085] In this embodiment, it should be noted that the brightness offset is the brightness offset between the target button and its corresponding preset button display brightness under the backlight of each of the LED beads.

[0086] For example, steps A10 to A20 include: calculating the difference between the display brightness of each preset button and the superimposed display brightness of the corresponding button, and using the difference as the brightness offset degree corresponding to each target button; constructing equations for each parameter adjustment value according to each brightness offset degree, each influence coefficient and the parameter adjustment value corresponding to each lamp, obtaining a system of simultaneous equations, and obtaining the parameter adjustment value corresponding to each lamp by solving the system of simultaneous equations; adjusting each control parameter according to each parameter adjustment value to adjust the lamp display brightness of the button backlight lamp, and performing backlight correction on each button.

[0087] Optionally, the step of constructing equations for each parameter adjustment value based on each brightness offset degree, each influence coefficient, and the parameter adjustment value corresponding to each lamp can specifically be as follows:

[0088] ΔY ij =A ij ΔX A +B ij ΔXB +...+N ij ΔX N

[0089] Where, ΔY ij A represents the brightness offset of the target button located in the i-th row and j-th column. ij Let B be the influence coefficient of LED A on the target button located in the i-th row and j-th column. ij Let N be the influence coefficient of LED bead B on the target button located in the i-th row and j-th column. ij Let N be the influence coefficient of LED beads on the target button located in the i-th row and j-th column, where N is the number of LED beads, and ΔX is the influence coefficient of LED beads on the target button located in the i-th row and j-th column. A ΔX is the parameter adjustment value corresponding to LED bead A. B The parameter adjustment value for LED bead B is ΔX. N This is the parameter adjustment value corresponding to LED bead N.

[0090] This application provides a method for correcting the backlight of buttons in a button device. The button device includes at least one button and a button backlight fixture. Compared to methods that use individual LEDs for backlighting each button, this application obtains an influence coefficient of the button backlight fixture on each button. This influence coefficient characterizes the degree of influence of the button backlight fixture on the display brightness of each button. Based on the influence coefficients, at least one target button is selected from the buttons. Based on the preset display brightness of each target button and the influence coefficients, the backlight fixture's display brightness is adjusted to correct the backlight brightness of each button. Backlight calibration is performed, and the influence coefficient is used to characterize the effect of each button backlight on the brightness of each button. Since a single LED in the button backlight can affect multiple buttons, the brightness of all buttons can be represented by a small number of target buttons. Therefore, the overall button backlight display can be performed based on a small number of target buttons and a small number of LEDs. Thus, even if there are a large number of buttons, the expected overall backlight brightness can still be achieved with a small number of LEDs. This avoids the technical drawbacks of having to set the same number of LEDs when there are a large number of buttons, which would increase the number of hardware interfaces corresponding to the buttons, the power consumption of the whole machine, the battery life, and the cost. Therefore, the resource consumption of button backlight is reduced.

[0091] Example 2

[0092] Furthermore, referring to Figure 2 Based on the first embodiment of this application, in another embodiment of this application, the same or similar content as in the first embodiment can be referred to the above description and will not be repeated hereafter. In addition, in step S20, the button backlight fixture includes at least one LED, and the step of selecting at least one target button among the buttons according to each influence coefficient includes:

[0093] Step S21: Obtain the number of LED beads;

[0094] Step S22: Based on the number of LED beads, each button is divided into at least one button correction area, wherein the number of button correction areas is less than or equal to the number of LED beads.

[0095] Step S23: Select at least one target button in each button correction area according to each of the influence coefficients.

[0096] It is understandable that when there are many buttons and fewer LEDs than buttons, there may be situations where the influence coefficient of each LED on a particular button is relatively small. If the initial lighting parameters are corrected based on the preset button display brightness corresponding to all buttons, it is easy to have a large number of simultaneous equations, a large amount of calculation, and a long time required to calculate the parameter adjustment values ​​corresponding to each initial lighting parameter. Furthermore, when the number of simultaneous equations is inconsistent with the number of LEDs, there may be situations where the parameter adjustment values ​​corresponding to some or all initial lighting parameters are unsolvable, resulting in low efficiency of button backlight correction or even failure to correct the button backlight.

[0097] In this embodiment, it should be noted that the key calibration area is a divided area for selecting target keys among all keys.

[0098] To overcome the above-mentioned defects, steps S21 to S23 include, for example: obtaining the number of LED beads; determining the number of regions to be divided into button correction areas based on the number of LED beads; dividing each button into at least one button correction area based on the number of regions; selecting at least one target button in each button correction area based on the influence coefficients; obtaining button correction areas by partitioning each button; and selecting target buttons in each button correction area. By representing all buttons with a small number of target buttons with larger influence coefficients, the number of simultaneous equations when calculating the parameter adjustment values ​​corresponding to each initial lamp parameter is reduced. Furthermore, the number of LED beads is consistent with the number of simultaneous equations, allowing a unique parameter adjustment value corresponding to each initial lamp parameter to be obtained by solving the simultaneous equations, thereby improving the correction efficiency and accuracy of the button backlight.

[0099] In step S22, the step of dividing each button into at least one button calibration area according to the number of LED beads includes:

[0100] Step B10: Determine the distribution of the LED beads at the positions of the LED beads in each of the buttons;

[0101] Step B20: Based on the distribution of the LED positions, the number of LEDs, and each of the influence coefficients, each button is divided into at least one button correction area.

[0102] In this embodiment, it should be noted that the distribution of the LED positions includes the positional distribution information of each LED under each button.

[0103] For example, steps B10 to B20 include: determining the lamp position distribution information of each of the lamp beads under each of the buttons, as the lamp bead position distribution of each of the lamp beads under each of the buttons; and dividing each of the buttons into at least one button correction area according to the lamp bead position distribution, the number of lamp beads and each of the influence coefficients.

[0104] In step S23, the step of selecting at least one target button in each of the button correction areas according to each of the influence coefficients includes:

[0105] Step C10: Determine the number of LED beads in each of the button calibration areas, and use the number of LED beads in each area as the number of target buttons corresponding to the target buttons in each of the button calibration areas.

[0106] Step C20: Select target buttons in each of the button calibration areas according to the influence coefficients and the number of target buttons.

[0107] In this embodiment, it should be noted that the number of LED beads in the area refers to the number of LED beads in the button calibration area.

[0108] For example, steps C10 to C20 include: determining the number of LED beads corresponding to each of the button calibration areas, and using the number of LED beads in each area as the number of target buttons corresponding to the target buttons in each of the button calibration areas; and selecting the target button number corresponding to each of the button calibration areas according to each of the influence coefficients. For example, when there is one LED bead in the first button calibration area and two LED beads in the second button calibration area, one target button is selected in the first button calibration area and two target buttons are selected in the second button calibration area.

[0109] As an example, the step of selecting the target number of target keys corresponding to the target key quantity in each of the key calibration regions according to the respective influence coefficients includes: selecting the target number of target keys corresponding to the largest influence coefficient in each of the key calibration regions.

[0110] As an example, the step of selecting the target number of target keys in each of the key calibration areas according to each of the influence coefficients includes: selecting reference keys in each of the key calibration areas whose influence coefficients are greater than a preset coefficient threshold, and randomly selecting the target number of target keys from each of the reference keys.

[0111] This application provides a method for correcting the backlight of buttons in a button device. The button device includes at least one button and a button backlight fixture. Compared to methods that use individual LEDs for backlighting each button, this application obtains an influence coefficient of the button backlight fixture on each button. This influence coefficient characterizes the degree of influence of the button backlight fixture on the display brightness of each button. Based on the influence coefficients, at least one target button is selected from the buttons. Based on the preset display brightness of each target button and the influence coefficients, the backlight fixture's display brightness is adjusted to correct the backlight brightness of each button. Backlight calibration is performed, and the influence coefficient is used to characterize the effect of each button backlight on the brightness of each button. Since a single LED in the button backlight can affect multiple buttons, the brightness of all buttons can be represented by a small number of target buttons. Therefore, the overall button backlight display can be performed based on a small number of target buttons and a small number of LEDs. Thus, even if there are a large number of buttons, the expected overall backlight brightness can still be achieved with a small number of LEDs. This avoids the technical drawbacks of having to set the same number of LEDs when there are a large number of buttons, which would increase the number of hardware interfaces corresponding to the buttons, the power consumption of the whole machine, the battery life, and the cost. Therefore, the resource consumption of button backlight is reduced.

[0112] Example 3

[0113] This application embodiment also provides a key backlight correction device, which is applied to a key device, the key device including at least one key and a key backlight lamp, and the key backlight correction device includes:

[0114] The acquisition module is used to acquire the influence coefficient of the button backlight on each button, wherein the influence coefficient is used to characterize the degree of influence of the button backlight on the display brightness of each button;

[0115] The selection module is used to select at least one target button from the buttons according to the influence coefficients.

[0116] The calibration module is used to perform backlight calibration on each of the target buttons by adjusting the backlight brightness of the button backlight fixtures based on the preset button display brightness corresponding to each target button and the influence coefficients.

[0117] Optionally, the button backlight fixture includes at least one LED, and the acquisition module is further configured to:

[0118] Obtain the control parameters corresponding to each of the LED beads, and the button display brightness of each of the buttons when a single LED bead is turned on;

[0119] Calculate the ratio between the brightness of each button and the corresponding control parameter to obtain the influence coefficient of each LED on each button.

[0120] Optionally, the button backlight fixture includes at least one LED, and the selection module is further used for:

[0121] Obtain the number of LED beads;

[0122] Based on the number of LED beads, each button is divided into at least one button correction area, wherein the number of button correction areas is less than or equal to the number of LED beads;

[0123] Based on the respective influence coefficients, at least one target button is selected in each of the respective button correction areas.

[0124] Optionally, the selection module is further configured to:

[0125] Determine the distribution of each LED bead position in each of the buttons;

[0126] Based on the distribution of the LED beads, the number of LED beads, and the influence coefficients of each LED bead, each button is divided into at least one button correction area.

[0127] Optionally, the selection module is further configured to:

[0128] Determine the number of LED beads corresponding to each button calibration area, and use the number of LED beads in each area as the number of target buttons corresponding to the target buttons in each button calibration area.

[0129] Based on the influence coefficients and the number of target buttons, target buttons are selected in each button calibration area.

[0130] Optionally, the button backlight fixture includes at least one LED, and the calibration module is further used for:

[0131] Obtain the superimposed display brightness of each target button when all the LEDs are turned on;

[0132] Based on the preset display brightness of each button, the superimposed display brightness of each button, and the influence coefficient, the control parameters corresponding to each LED bead are adjusted to adjust the display brightness of the button backlight and perform backlight correction on each button.

[0133] Optionally, the correction module is further configured to:

[0134] The difference between the display brightness of each preset button and the superimposed display brightness of the corresponding button is used as the brightness offset degree of each target button.

[0135] Based on the brightness offset degree and the influence coefficient, the control parameters corresponding to each of the LED beads are adjusted to adjust the display brightness of the button backlight and to perform backlight correction on each of the buttons.

[0136] The button backlight calibration device provided in this application adopts the button backlight calibration method in the above embodiments, solving the technical problem of high resource consumption of button backlight. Compared with the prior art, the beneficial effects of the button backlight calibration device provided in this application are the same as those of the button backlight calibration method provided in the above embodiments, and other technical features in this button backlight calibration device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0137] Example 4

[0138] This application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the button backlight calibration method in the above embodiment.

[0139] The following is for reference. Figure 2 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 2 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0140] like Figure 2 As shown, an electronic device may include a processing unit (such as a central processing unit, graphics processing unit, etc.) that can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) or a program loaded from a storage device into random access memory (RAM). The RAM also stores various programs and data required for the operation of the electronic device. The processing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.

[0141] Typically, the following systems can be connected to the I / O interface: input devices including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices including, for example, magnetic tapes, hard disks, etc.; and communication devices. Communication devices allow electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0142] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, it performs the functions defined above in the methods of embodiments of this disclosure.

[0143] The electronic device provided in this application uses the button backlight correction method in the above embodiments, which solves the technical problem of high resource consumption of button backlight. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the button backlight correction method provided in the above embodiments, and other technical features of the electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0144] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0145] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0146] Example 5

[0147] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, the computer-readable program instructions being used to execute the key backlight calibration method in the above embodiment.

[0148] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0149] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.

[0150] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by an electronic device, the electronic device causes the electronic device to: obtain the influence coefficient of the key backlight on each of the keys, wherein the influence coefficient is used to characterize the degree of influence of the key backlight on the display brightness of each key; select at least one target key among the keys according to the influence coefficient; and perform backlight correction on each key by adjusting the display brightness of the key backlight according to the preset key display brightness of each target key and the influence coefficient.

[0151] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0152] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0153] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0154] The computer-readable storage medium provided in this application stores computer-readable program instructions for executing the above-described button backlight calibration method, thus solving the technical problem of high resource consumption in button backlighting. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the button backlight calibration method provided in the above-described embodiments, and will not be repeated here.

[0155] Example 6

[0156] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the key backlight calibration method described above.

[0157] The computer program product provided in this application solves the technical problem of high resource consumption in button backlighting. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the button backlight calibration method provided in the above embodiments, and will not be repeated here.

[0158] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A method of key backlight correction, characterized by, The application is applied to a key device, the key device comprises at least one key and a key backlight lamp, and the key backlight correction method comprises the following steps: An influence coefficient of the key backlight lamp on each key is obtained, wherein the influence coefficient is used to represent the influence degree of the key backlight lamp on the display brightness of each key; At least one target key is selected from each key according to the influence coefficient; The backlight of each key is corrected by adjusting the lamp display brightness of the key backlight lamp according to the preset key display brightness of each target key and the influence coefficient; The key backlight lamp comprises at least one lamp bead, and the step of selecting at least one target key from each key according to the influence coefficient comprises the following steps: The number of lamp beads is obtained; Each key is divided into at least one key correction area according to the number of lamp beads, wherein the number of key correction areas is less than or equal to the number of lamp beads; At least one target key is selected from each key correction area according to the influence coefficient.

2. The method of claim 1, wherein the backlight correction is performed for each of the plurality of keys. The key backlight lamp comprises at least one lamp bead, and the step of obtaining the influence coefficient of the key backlight lamp on each key comprises the following steps: The control parameters corresponding to each lamp bead and the key display brightness of each key when a single lamp bead is turned on are obtained; The ratio between the key display brightness and the corresponding control parameter is calculated to obtain the influence coefficient of each lamp bead on each key.

3. The method of claim 1, wherein the backlight correction is performed for each of a plurality of color channels. The step of dividing each key into at least one key correction area according to the number of lamp beads comprises the following steps: The lamp bead position distribution of each lamp bead on each key is determined; Each key is divided into at least one key correction area according to the lamp bead position distribution, the number of lamp beads and the influence coefficient.

4. The method of claim 1, wherein the backlight correction is performed for each of a plurality of color channels.

5. The method of claim 1, wherein the backlight correction is performed for each of a plurality of color channels. The step of selecting at least one target key from each key correction area according to the influence coefficient comprises the following steps: The area lamp bead number corresponding to each key correction area is determined, and the area lamp bead number is used as the target key number corresponding to the target key in each key correction area; Target keys are selected in each key correction area according to the influence coefficient and the target key number.

5. The method of claim 1, wherein the backlight correction is performed for each of a plurality of color channels. The key backlight lamp comprises at least one lamp bead, and the step of correcting the backlight of each key by adjusting the lamp display brightness of the key backlight lamp according to the preset key display brightness of each target key and the influence coefficient comprises the following steps: ​ The key superimposed display brightness corresponding to each target key when each lamp bead is turned on is obtained; The control parameters corresponding to each lamp bead are adjusted to adjust the lamp display brightness of the key backlight lamp and correct the backlight of each key according to the preset key display brightness, the key superimposed display brightness and the influence coefficient.

6. The button backlight calibration method as described in claim 5, characterized in that, The step of correcting each lamp control parameter according to the preset key display brightness, the superimposed key display brightness of each key, and the influence coefficient to adjust the lamp display brightness of the key backlight lamp for backlight correction of each key comprises: The difference between the preset key display brightness and the corresponding superimposed key display brightness is taken as the brightness offset degree corresponding to each target key; According to the brightness offset degree and the influence coefficient, the control parameter corresponding to each lamp bead is adjusted to adjust the lamp display brightness of the key backlight lamp for backlight correction of each key.

7. A key backlight correction apparatus characterized by comprising: The key backlight correction device is applied to a key device, and the key device comprises at least one key and a key backlight lamp. An acquisition module is configured to acquire an influence coefficient of the key backlight lamp on each key, wherein the influence coefficient is used to represent the influence degree of the key backlight lamp on the display brightness of each key. A selection module is configured to select at least one target key from each key according to the influence coefficient, and the key backlight lamp comprises at least one lamp bead. The selection module is further configured to acquire the number of lamp beads, divide each key into at least one key correction area according to the number of lamp beads, wherein the number of key correction areas is less than or equal to the number of lamp beads, and select at least one target key from each key correction area according to the influence coefficient.

8. An electronic device, comprising: A correction module is configured to correct each key by adjusting the lamp display brightness of the key backlight lamp according to the preset key display brightness of each target key and the influence coefficient. The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein 9. A computer-readable storage medium, characterized in that, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the key backlight correction method in any one of claims 1 to 6. The computer-readable storage medium stores a program for implementing a key backlight correction method, and the program is executed by a processor to implement the steps of the key backlight correction method in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Backlight adjustment method and system and backlight keyboard for providing backlight adjustment.

    CN108933055A

  • Display screen brightness correction method and device and electronic equipment

    CN113223466A