CN106713658B - Light source adjusting method and device - Google Patents

Light source adjusting method and device Download PDF

Info

Publication number
CN106713658B
CN106713658B CN201710041444.3A CN201710041444A CN106713658B CN 106713658 B CN106713658 B CN 106713658B CN 201710041444 A CN201710041444 A CN 201710041444A CN 106713658 B CN106713658 B CN 106713658B
Authority
CN
China
Prior art keywords
key
light
brightness
detection
source
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
CN201710041444.3A
Other languages
Chinese (zh)
Other versions
CN106713658A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710041444.3A priority Critical patent/CN106713658B/en
Publication of CN106713658A publication Critical patent/CN106713658A/en
Application granted granted Critical
Publication of CN106713658B publication Critical patent/CN106713658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The disclosure is directed to light source adjusting method and devices.This method comprises: obtaining current environmental light brightness;According to the current environmental light brightness, the light-source brightness of at least two keys is adjusted to respective predetermined luminance, makes the difference of every two key at least two key displayed contrast within a predetermined range.The technical solution is due to environmental light brightness difference, it displays contrast accordingly also different, therefore, according to different environmental light brightness, the light-source brightness of adjustment key, which both to display contrast, to be not much different, and displays contrast difference in this way, reducing, user can be reduced and experience difference in brightness between key, improve user experience.

Description

Light source adjusting method and device
Technical field
This disclosure relates to field of electronic device more particularly to light source adjusting method and device.
Background technique
Currently, smart phone can operate whole mobile phone by clicking display screen, the function below screen can also be passed through Key realizes some functions of mobile phone as shown in Figure 1, such as returns to desktop, retracts a page etc., these function button energy It is enough quickly to realize some common basic operations, the operation of user is facilitated significantly.
Summary of the invention
The embodiment of the present disclosure provides light source adjusting method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of light source adjusting method is provided, comprising:
Obtain current environmental light brightness;
According to the current environmental light brightness, the light-source brightness of at least two keys is adjusted to respective predetermined luminance, Make the difference of every two key at least two key displayed contrast within a predetermined range.
The technical scheme provided by this disclosed embodiment can include the following benefits: current environmental light brightness is greater than It presets brightness expression and is in bright ring border.In bright ring border, environmental light brightness is larger, and the light-source brightness difference of light source is to entirety It is relatively small to display contrast influence, while for visuality, the light-source brightness of light source can suitably be turned up.
In one embodiment, described according to the current environmental light brightness, the light source for adjusting at least two keys is bright It spends to respective predetermined luminance and includes:
When the current environmental light brightness, which is greater than, presets brightness, increase the light-source brightness of at least two key To respective first predetermined luminance;
When the current environmental light brightness, which is less than, presets dark brightness, reduce the light-source brightness of at least two key To respective second predetermined luminance.
The technical scheme provided by this disclosed embodiment can include the following benefits: only in bright ring border and dark situation In, can all adjust corresponding predetermined luminance, in this way, avoid occurring only displaying contrast effect in one case it is good, one Bad problem is displayed contrast in the case of kind, further improves the experience of user.
In one embodiment, described according to the current ring for the first key at least two key Border brightness, light-source brightness to the respective predetermined luminance for adjusting at least two keys include:
Change the current strength for the circuit connecting with the light source of first key to the predetermined luminance of first key Corresponding current strength, wherein the current strength forward direction influences the light-source brightness of the light source.
The technical scheme provided by this disclosed embodiment can include the following benefits: the specific reality that light-source brightness changes Existing process.
In one embodiment, the method also includes:
Obtain detection environmental light brightness, the non-light source brightness of at least two key, at least two key light Source brightness, the non-light source brightness of each key are not have the brightness of the predeterminated position of light source around the key;
According to the detection environmental light brightness, the respective non-light source brightness of at least two key, described at least two The light-source brightness of key determines that the detection of at least two key displays contrast;
Calculate the difference that the detection of every two key at least two key displays contrast;
When detecting the difference displayed contrast greater than preset difference value there are j, at least two key or institute are adjusted The light-source brightness of the first key at least two keys is stated to respective predetermined luminance, first key is described j detection The corresponding key of the difference displayed contrast;The j is the integer greater than 2.
The technical scheme provided by this disclosed embodiment can include the following benefits: realize as key setting accordingly Predetermined luminance, meanwhile, only display contrast the key greater than the first preset difference value for detection and determine corresponding predetermined luminance, this Sample reduces the operating quantity of device.
In one embodiment, the light-source brightness of the adjustment at least two key is to respective predetermined luminance packet It includes:
When the difference that the detection of every two key at least two key displays contrast is both less than the preset difference value When, determine that the detection light-source brightness of each key at least two key is the predetermined luminance of the key;
The light-source brightness of at least two key is adjusted to respective predetermined luminance.
The technical scheme provided by this disclosed embodiment can include the following benefits: bright to the light source of all keys Degree is adjusted, to guarantee all to display contrast difference very little.
In one embodiment, in the adjustment at least two key light-source brightness of the first key to respective pre- If brightness includes:
When the detection of first key display contrast at least two key in addition to first key The difference displayed contrast of key when being respectively less than the preset difference value, determine the detection light-source brightness of first key for institute State the predetermined luminance of the first key;
The light-source brightness of the first key at least two key is adjusted to respective predetermined luminance.
The technical scheme provided by this disclosed embodiment can include the following benefits: only adjusting problematic first and presses Key, in this way, reducing the adjustment amount of device without whole key adjustment.
In one embodiment, the detection of the determination at least two key displays contrast, comprising:
According to preset rules, detection light-source brightness and the corresponding detection non-light source for generating at least two key are bright Degree;
It is bright according to the detection light-source brightness and corresponding detection non-light source that display contrast formula, at least two key Degree, determines that the detection of at least two key displays contrast;It is wherein, described to display contrast formula are as follows:
Wherein, the CInspectionIt is displayed contrast for the detection;The BLightFor the detection light-source brightness, the BRingIt is described Detect environmental light brightness;The BIt is non-For the detection non-light source brightness.
The technical scheme provided by this disclosed embodiment can include the following benefits: describing and how to realize display pair Than degree formula, calculated convenient for device.
In one embodiment, the acquisition detects environmental light brightness, the non-light source brightness of at least two key, institute The light-source brightness for stating at least two keys includes:
Obtain the detection environmental light brightness;
When the detection environmental light brightness is greater than first predetermined luminance, the light source of at least two key is obtained Brightness and non-light source brightness;
Or, obtaining at least two key when the detection environmental light brightness is less than second predetermined luminance Light-source brightness and non-light source brightness.
The technical scheme provided by this disclosed embodiment can include the following benefits: to different environment light, obtain Different parameters.
According to the second aspect of an embodiment of the present disclosure, a kind of light source adjustment device is provided, comprising:
First obtains module, for obtaining current environmental light brightness;
The first adjustment module, for adjusting the light-source brightness of at least two keys according to the current environmental light brightness To respective predetermined luminance, make the difference of every two key at least two key displayed contrast in preset range It is interior.
In one embodiment, the first adjustment module includes:
Increase submodule, for increasing described at least two when the current environmental light brightness is greater than and presets brightness The light-source brightness of a key is to respective first predetermined luminance;
Reduce submodule, for reducing described at least two when the current environmental light brightness is less than and presets dark brightness The light-source brightness of a key is to respective second predetermined luminance.
In one embodiment, for the first key at least two key, the first adjustment module is also wrapped It includes:
Change submodule, for changing the circuit being connect with the light source of first key current strength to described first Current strength corresponding to the predetermined luminance of key, wherein the current strength forward direction influences the light-source brightness of the light source.
In one embodiment, described device further include:
Second obtains module, for obtaining the non-light source brightness, described for detecting environmental light brightness, at least two key The light-source brightness of at least two keys, the non-light source brightness of each key are not have the bright of the predeterminated position of light source around the key Degree;
Determining module, for according to the detection environmental light brightness, the respective non-light source brightness of at least two key, The light-source brightness of at least two key determines that the detection of at least two key displays contrast;
Computing module, the difference that the detection for calculating every two key at least two key displays contrast;
Second adjustment module, for when detecting the difference displayed contrast greater than preset difference value there are j, adjustment to be described extremely Light-source brightness to the respective predetermined luminance, described first of the first key is pressed in few two keys or at least two key Key is described j and detects the corresponding key of difference displayed contrast;The j is the integer greater than 2.
In one embodiment, the second adjustment module includes:
First determines submodule, the difference for displaying contrast when the detection of every two key at least two key Both less than the preset difference value when, determine that the detection light-source brightness of each key at least two key is the key Predetermined luminance;
The first adjustment submodule, for adjusting the light-source brightness of at least two key to respective predetermined luminance.
In one embodiment, the second adjustment module includes:
Second determine submodule, for when first key detection display contrast at least two key When the difference of key in addition to first key displayed contrast is respectively less than the preset difference value, first key is determined Detection light-source brightness be first key predetermined luminance;
Second adjustment submodule, for adjusting the light-source brightness of the first key at least two key to respective pre- If brightness.
In one embodiment, the determining module includes:
Submodule is generated, for generating the detection light-source brightness and correspondence of at least two key according to preset rules Detection non-light source brightness;
Third determines submodule, for according to the detection light-source brightness for displaying contrast formula, at least two key With corresponding detection non-light source brightness, determine that the detection of at least two key displays contrast;Wherein, the display comparison Spend formula are as follows:
Wherein, the CInspectionIt is displayed contrast for the detection;The BLightFor the detection light-source brightness, the BRingIt is described Detect environmental light brightness;The BIt is non-For the detection non-light source brightness.
In one embodiment, the second acquisition module includes:
First acquisition submodule, for obtaining the detection environmental light brightness;
Second acquisition submodule, for obtaining institute when the detection environmental light brightness is greater than first predetermined luminance State light-source brightness and the non-light source brightness of at least two keys;
Third acquisition submodule, for obtaining institute when the detection environmental light brightness is less than second predetermined luminance State light-source brightness and the non-light source brightness of at least two keys.
According to the third aspect of an embodiment of the present disclosure, a kind of light source adjustment device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
At least two keys with light source;
The light barrier being arranged above the light source of at least two key;
Wherein, the processor is configured to:
Obtain current environmental light brightness;
According to the current environmental light brightness, the light-source brightness of at least two keys is adjusted to respective predetermined luminance, Make the difference of every two key at least two key displayed contrast within a predetermined range.
In one embodiment, the light source position with each key at least two key is provided on the light barrier Set corresponding loophole, wherein from the near to the distant with the distance away from the loophole, the highlighted quantity of ink of light guide plate printing is from less To more.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the schematic diagram of key shown according to an exemplary embodiment.
Fig. 2 is the flow chart of light source adjusting method shown according to an exemplary embodiment.
Fig. 3 is the schematic diagram of predeterminated position shown according to an exemplary embodiment.
Fig. 4 is the flow chart of light source adjusting method shown according to an exemplary embodiment.
Fig. 5 is the flow chart of light source adjusting method shown according to an exemplary embodiment.
Fig. 6 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Fig. 7 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Fig. 8 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Fig. 9 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Figure 10 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Figure 11 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Figure 12 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Figure 13 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Figure 14 is the block diagram of light source adjustment device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
In the related technology, even if be provided with mobile phone key be provided with as shown in Figure 1 identical key set light source light source it is bright Degree, but be different under environmental light brightness, the brightness that human eye is felt also is different, and leads to the light source degree difference of key very Greatly, brightness uniformity is influenced, to find out its cause, being because human eye is in fact more sensitive to displaying contrast.
The reason of influencing consistency is as follows: current difference of not going the same way is other, and matching value has 0.2%~2% difference, and light source degree is poor Not positive and negative 5 percent, light source placement position difference, and the distance of guide-lighting plate interface, agree with degree etc., it is now only qualitative to see It crosses, without quantitative measurment;Light guide plate consistency 80% includes clear ink, the consistency of substrate;The difference of ink consistency, The uniformity for including, the reflectivity of different location, this control are more difficult;The brightness reflected under different environment light is different, thus The each lamp formed displays contrast difference, and the difference that human eye is felt is just different.
The present embodiment solves the problems, such as it is the light-source brightness by changing key, balances displaying contrast for key, solves Consistency problem.
Embodiment one
Fig. 2 is a kind of flow chart of light source adjusting method shown according to an exemplary embodiment, as shown in Fig. 2, light source Adjusting method is in light source adjustment device, which to can be a part of the terminal with light source, and this method includes following Step S101-S102:
In step s101, current environmental light brightness is obtained.
Environmental light brightness is to reflect the brightness of current outside light.
In step s 102, according to current environmental light brightness, the light-source brightness of at least two keys is adjusted to respective Predetermined luminance makes the difference of every two key at least two keys displayed contrast within a predetermined range.
At least two keys can be integrally adjusted in the present embodiment, can also only adjust and wherein show comparison Spend the light source of the biggish several keys of deviation.Each key has predetermined luminance to be corresponding to it.
Here, when user wakes up screen, the key below screen will shine, which led to by the light source that key issues Cross what loophole on light barrier issued, it is the shape of loophole, of different sizes, display contrast accordingly also different, light source is bright Degree is the brightness of the light source of key.
In the present embodiment, due to environmental light brightness difference, also difference is displayed contrast accordingly, therefore, according to different Environmental light brightness, the light-source brightness for adjusting key both to display contrast and be not much different, and display contrast phase in this way, reducing Difference can reduce user and experience difference in brightness between key, improve user experience.
In one embodiment, predetermined luminance includes the first predetermined luminance and the second predetermined luminance, and step S102 may include:
When current environmental light brightness, which is greater than, presets brightness, increase the light-source brightness of at least two key to each From the first predetermined luminance;When current environmental light brightness, which is less than, presets dark brightness, reduce the light of at least two key Source brightness is to respective second predetermined luminance.
Here, it greater than under presetting the bright ring border of brightness, needs to increase light-source brightness, presets the dark of dark brightness being less than Under environment, need to reduce light-source brightness.
Current environmental light brightness is in bright ring border greater than brightness expression is preset.In bright ring border, environmental light brightness compared with Greatly, the light-source brightness difference of light source influences whole displaying contrast relatively small, while for visuality, can suitably adjust The light-source brightness of high light source.
Current environmental light brightness is in dark situation less than dark brightness expression is preset.In dark situation, environment light is smaller, light The light-source brightness difference in source influences whole displaying contrast relatively large, and not luminous position and environment light at this time can be with Be interpreted as all very little (for convenience, it is possible to understand that at close to 0), light source has displayed contrast decisive action, in this way, if Light source differs greatly, then difference is displayed contrast with regard to larger, so, by the light-source brightness of light source, to reduce different lamps Difference.
In simple terms, exactly at bright ring border (presetting brightness is 100lux) using brighter light-source brightness, in Crape ring When border light (preset dark brightness be 5lux), using darker light-source brightness, intermediate luminance (environmental light brightness preset brightness and Preset between dark brightness) it can remain unchanged.
In one embodiment, for the first key at least two key, step S102 may include:
The predetermined luminance institute for changing current strength to the first key of the circuit connecting with the light source of first key is right The current strength answered, wherein current strength forward direction influences the light-source brightness of the light source.
The present embodiment is to change light-source brightness by electric current.
In one embodiment, the method also includes:
Obtain detection environmental light brightness, the non-light source brightness of at least two keys, at least two keys light-source brightness, often The non-light source brightness of a key is not have the brightness of the predeterminated position of light source around the key;According to detection environmental light brightness, extremely The light-source brightness for lacking the respective non-light source brightness of two keys, at least two keys, determines that the detection of at least two keys is shown Contrast;Calculate the difference that the detection of every two key at least two keys displays contrast;When there are j detection display comparisons When the difference of degree is greater than preset difference value, the light-source brightness of the first key at least two keys or at least two keys is adjusted to each From predetermined luminance, which is the j corresponding key of difference that displays contrast of detection;J is the integer greater than 2.
Here, non-light source brightness and light-source brightness are all the brightness that the same light source generates, and light-source brightness is that the light source is logical The brightness for the light that loophole is shot out is crossed, non-light source brightness is that the light source detected from the predeterminated position on light barrier passes through gear Tabula rasa appears the brightness of the light come.Wherein, each light source has light-source brightness and the non-light source brightness of oneself, and each light source is all There is the predeterminated position of oneself, the position for the dotted line frame in light transmission hole edge pointed out as shown in Figure 3 is exactly predeterminated position.
Here, the first key includes at least one key.
In the present embodiment, predetermined luminance be it is pre-set, just set before can be factory, user is in use process In, only adjust light-source brightness.
The present embodiment can adjust bright brightness by two ways.For example, the first, unites to whole key One adjustment;Second, attention adjustment is carried out to problematic key.
For the first, in one embodiment, the light-source brightness of at least two keys of the adjustment is preset to respective Brightness includes:
When the difference that the detection of every two key at least two keys displays contrast is both less than preset difference value, determine extremely The detection light-source brightness of each key is the predetermined luminance of the key in few two keys;Adjust at least two key Light-source brightness is to respective predetermined luminance.
For second, in one embodiment, the light source of the first key is bright in adjustment at least two key It spends to respective predetermined luminance and includes:
When the detection of first key display contrast at least two key in addition to the first key by When the difference of key displayed contrast is respectively less than the preset difference value, determine that the detection light-source brightness of first key is described the The predetermined luminance of one key;The light-source brightness of the first key at least two key is adjusted to respective predetermined luminance.
In one embodiment, the detection of the determination at least two key displays contrast, comprising:
According to preset rules, the detection light-source brightness of at least two keys of generation and corresponding detection non-light source brightness;Root According to the detection light-source brightness and corresponding detection non-light source brightness for displaying contrast formula, at least two keys, at least two are determined The detection of a key displays contrast;Wherein, formula is displayed contrast are as follows:
Wherein, the CInspectionIt is displayed contrast for detection;The BLightTo detect light-source brightness, the BRingTo detect environment bright Degree;The BIt is non-To detect non-light source brightness.
From formula as can be seen that the light-source brightness of light source is if it is 0, then the consistency displayed contrast is best certainly , but it is unpractical for not shining.
In the present embodiment, preset rules may include:
When only having displaying contrast for a small number of keys excessively high, the detection light-source brightness of a small number of keys can be reduced, from And reduce detection and display contrast, vice versa, and here, detection light-source brightness is not to calculate, but according to light source Obtained from the certain multiple of brightness increases or decreases, specific multiple can be what tester debugged manually.
When displaying contrast for all keys all differs greatly, detection light-source brightness can be integrally increased, because of detection Light-source brightness is bigger, and it is smaller to detect the difference displayed contrast, in this way, equally, all keys can be according to light-source brightness Certain multiple increase or decrease to obtain detection light source, specific multiple can be debugged out manually in practice.
In one embodiment, described to obtain detection environmental light brightness, the non-light source brightness of at least two keys, at least two The light-source brightness of a key includes:
Obtain detection environmental light brightness;When detecting environmental light brightness greater than the first predetermined luminance, obtains at least two and press The light-source brightness of key and non-light source brightness;Or, obtaining at least two when detecting environmental light brightness less than the second predetermined luminance and pressing The light-source brightness of key and non-light source brightness.
In the present embodiment, if the first key not only only one key, can also use it is above-mentioned the first Mode adjusts the first key, can also adjust key one by one according to the second way.
Embodiment two
Fig. 4 is a kind of flow chart of light source adjusting method shown according to an exemplary embodiment, as shown in figure 4, light source Adjusting method is used in mobile terminal, includes the following steps S201-S203,
In step s 201, current environmental light brightness is obtained.
In step S202, when current environmental light brightness, which is greater than, presets brightness, increase the light of at least two keys Source brightness is to respective first predetermined luminance.
Here, current environmental light brightness be greater than preset brightness expression be in bright ring border, the first predetermined luminance be Under bright ring border, so that the brightness for displaying contrast the two of difference in a certain range of at least two keys.
In step S203, when current environmental light brightness, which is less than, presets dark brightness, it is reduced at least the light of two keys Source brightness is to respective second predetermined luminance.
Here, current environmental light brightness, which is less than, presets dark brightness expression and is in dark situation, the first predetermined luminance be Under dark situation, so that the brightness for displaying contrast the two of difference in a certain range of at least two keys.
The present embodiment can all adjust corresponding predetermined luminance only in bright ring border and dark situation, in this way, avoiding occurring It is good that effect is only displayed contrast in one case, displays contrast bad problem in a kind of situation, it is further to improve The experience of user.
Embodiment three
Fig. 5 is a kind of flow chart of light source adjusting method shown according to an exemplary embodiment, as shown in figure 5, light source Adjusting method is in light source adjustment device, which to can be a part of the terminal in embodiment two, can also To be a part of an individual detection device, present embodiment assumes that light source adjustment device is arranged in a detection device, This approach includes the following steps S301-S306,
In step S301, detection environmental light brightness is obtained.
In step s 302, when detecting environmental light brightness greater than brightness is preset, the detection of at least two keys is obtained Light-source brightness and detection non-light source brightness.
In step S303, according to formula is displayed contrast, determine that the detection of at least two keys displays contrast.
The detection of at least two keys displays contrast the detection contrast of each key including at least two keys.
It is here, described to display contrast formula are as follows:
Wherein, C is that detection displays contrast;BLightTo detect light-source brightness, BRingTo detect environmental light brightness;BIt is non-It is non-to detect Light-source brightness.
In step s 304, the difference that the detection of every two key at least two keys displays contrast is calculated.
In step S305, judge whether the difference that the detection of every two key displays contrast is greater than the first preset difference value. If so, thening follow the steps 306;If not, terminating this process.
In step S306, when detecting the difference that displays contrast there are j and being greater than preset difference value, according to preset rules, Generate at least two keys detection light-source brightness and corresponding detection non-light source brightness.
Here, preset rules are that detection light-source brightness and the corresponding non-light of detection can be increased or reduced according to presupposition multiple Source brightness, when primary source brightness is 20, when former non-light source brightness is 2, generating detection light-source brightness can be 30,40 etc., inspection Surveying non-light source brightness can be 3,4 etc..
In step S307, according to the detection light-source brightness and corresponding inspection for displaying contrast formula, at least two keys Non-light source brightness is surveyed, determines that the detection of at least two keys displays contrast.
It is wherein, described to display contrast formula are as follows:
Wherein, the CInspectionIt is displayed contrast for the detection;The BLightFor the detection light-source brightness, the BRingIt is described Detect environmental light brightness;The BIt is non-For the detection non-light source brightness.
In step S308, the difference that the detection of at least two keys displays contrast is calculated.
In step S309, when the difference that all detections display contrast is both less than preset difference value, each detection is determined Light-source brightness is the first predetermined luminance of corresponding key.
The process of the present embodiment, either what manpower was adjusted, it is also possible to machine automatic adjustment, in this way, dispatching from the factory Before, the first predetermined luminance is adjusted, is just adjusted in use without user, facilitates the use of user.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Embodiment five
Fig. 6 is a kind of block diagram of light source adjustment device shown according to an exemplary embodiment, which can be by soft Part, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in fig. 6, the light source adjustment device Include:
First obtains module 401, for obtaining current environmental light brightness;
The first adjustment module 402, for according to the current environmental light brightness, the light source for adjusting at least two keys to be bright Degree makes the difference of every two key at least two key displayed contrast in preset range to respective predetermined luminance It is interior.
In one embodiment, as shown in fig. 7, the first adjustment module 402 includes:
Increase submodule 4021, for when the current environmental light brightness is greater than and presets brightness, increase to be described extremely The light-source brightness of few two keys is to respective first predetermined luminance;
Reduce submodule 4022, for when the current environmental light brightness is less than and presets dark brightness, reduction to be described extremely The light-source brightness of few two keys is to respective second predetermined luminance.
In one embodiment, as shown in figure 8, for the first key at least two key, described first is adjusted Mould preparation block 402 further include:
Change submodule 4023, for changing the circuit being connect with the light source of first key current strength to described Current strength corresponding to the predetermined luminance of first key, wherein the light source that the current strength forward direction influences the light source is bright Degree.
In one embodiment, as shown in figure 9, described device further include:
Second obtain module 403, for obtains detect environmental light brightness, at least two key non-light source brightness, The light-source brightness of at least two key, the non-light source brightness of each key are not have the predeterminated position of light source around the key Brightness;
Determining module 404, for bright according to the detection environmental light brightness, the respective non-light source of at least two keys The light-source brightness of degree, at least two key, determines that the detection of at least two key displays contrast;
Computing module 405, the difference that the detection for calculating every two key at least two key displays contrast;
Second adjustment module 406, for adjusting institute when detecting the difference displayed contrast greater than preset difference value there are j The light-source brightness of the first key at least two keys or at least two key is stated to respective predetermined luminance, described One key is described j and detects the corresponding key of difference displayed contrast;The j is the integer greater than 2.
In one embodiment, as shown in Figure 10, the second adjustment module 406 includes:
First determines submodule 4061, for displaying contrast when the detection of every two key at least two key Difference when being both less than the preset difference value, determine each key at least two key detection light-source brightness be it is described by The predetermined luminance of key;
The first adjustment submodule 4062, for adjust the light-source brightness of at least two key to it is respective preset it is bright Degree.
In one embodiment, as shown in figure 11, the second adjustment module 406 includes:
Second determine submodule 4063, for when first key detection display contrast with described at least two by When the difference of key in key in addition to first key displayed contrast is respectively less than the preset difference value, described first is determined The detection light-source brightness of key is the predetermined luminance of first key;
Second adjustment submodule 4064, for adjusting the light-source brightness of the first key at least two key to respective Predetermined luminance.
In one embodiment, as shown in figure 12, the determining module 404 includes:
Generate submodule 4041, for according to preset rules, generate at least two key detection light-source brightness and Corresponding detection non-light source brightness;
Third determines submodule 4042, for according to the detection light source for displaying contrast formula, at least two key Brightness and corresponding detection non-light source brightness, determine that the detection of at least two key displays contrast;Wherein, the display Contrast formula are as follows:
Wherein, the CInspectionIt is displayed contrast for the detection;The BLightFor the detection light-source brightness, the BRingIt is described Detect environmental light brightness;The BIt is non-For the detection non-light source brightness.
In one embodiment, as shown in figure 13, the second acquisition module 403 includes:
First acquisition submodule 4031, for obtaining the detection environmental light brightness;
Second acquisition submodule 4032, for obtaining when the detection environmental light brightness is greater than first predetermined luminance Take light-source brightness and the non-light source brightness of at least two key;
Third acquisition submodule 4033, for obtaining when the detection environmental light brightness is less than second predetermined luminance Take light-source brightness and the non-light source brightness of at least two key.
Embodiment six
According to a fifth aspect of the embodiments of the present disclosure, a kind of light source adjustment device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
At least two keys with light source;
The light barrier being arranged above the light source of at least two key;
Wherein, processor is configured as:
Obtain current environmental light brightness;
According to the current environmental light brightness, the light-source brightness of at least two keys is adjusted to respective predetermined luminance, Make the difference of every two key at least two key displayed contrast within a predetermined range.
Above-mentioned processor is also configured to:
It is described according to the current environmental light brightness, adjust the light-source brightness of at least two keys to it is respective preset it is bright Degree includes:
When the current environmental light brightness, which is greater than, presets brightness, increase the light-source brightness of at least two key To respective first predetermined luminance;
When the current environmental light brightness, which is less than, presets dark brightness, reduce the light-source brightness of at least two key To respective second predetermined luminance.
It is described according to the current environmental light brightness for the first key at least two key, adjust to Light-source brightness to the respective predetermined luminance of two keys includes: less
Change the current strength for the circuit connecting with the light source of first key to the predetermined luminance of first key Corresponding current strength, wherein the current strength forward direction influences the light-source brightness of the light source.
The method also includes:
Obtain detection environmental light brightness, the non-light source brightness of at least two key, at least two key light Source brightness, the non-light source brightness of each key are not have the brightness of the predeterminated position of light source around the key;
According to the detection environmental light brightness, the respective non-light source brightness of at least two key, described at least two The light-source brightness of key determines that the detection of at least two key displays contrast;
Calculate the difference that the detection of every two key at least two key displays contrast;
When detecting the difference displayed contrast greater than preset difference value there are j, at least two key or institute are adjusted The light-source brightness of the first key at least two keys is stated to respective predetermined luminance, first key is described j detection The corresponding key of the difference displayed contrast;The j is the integer greater than 2.
Light-source brightness to the respective predetermined luminance of the adjustment at least two key includes:
When the difference that the detection of every two key at least two key displays contrast is both less than the preset difference value When, determine that the detection light-source brightness of each key at least two key is the predetermined luminance of the key;
The light-source brightness of at least two key is adjusted to respective predetermined luminance.
Light-source brightness to the respective predetermined luminance of the first key includes: in adjustment at least two key
When the detection of first key display contrast at least two key in addition to first key The difference displayed contrast of key when being respectively less than the preset difference value, determine the detection light-source brightness of first key for institute State the predetermined luminance of the first key;
The light-source brightness of the first key at least two key is adjusted to respective predetermined luminance.
The detection of determination at least two key displays contrast, comprising:
According to preset rules, detection light-source brightness and the corresponding detection non-light source for generating at least two key are bright Degree;
It is bright according to the detection light-source brightness and corresponding detection non-light source that display contrast formula, at least two key Degree, determines that the detection of at least two key displays contrast;It is wherein, described to display contrast formula are as follows:
Wherein, the CInspectionIt is displayed contrast for the detection;The BLightFor the detection light-source brightness, the BRingIt is described Detect environmental light brightness;The BIt is non-For the detection non-light source brightness.
The acquisition detects environmental light brightness, the non-light source brightness of at least two key, at least two key Light-source brightness include:
Obtain the detection environmental light brightness;
When the detection environmental light brightness is greater than first predetermined luminance, the light source of at least two key is obtained Brightness and non-light source brightness;
Or, obtaining at least two key when the detection environmental light brightness is less than second predetermined luminance Light-source brightness and non-light source brightness.
Figure 14 is a kind of block diagram for light source adjustment device shown according to an exemplary embodiment, which is suitable for Terminal device.For example, device 1700 can be mobile phone, computer, digital broadcasting terminal, messaging device, game control Platform processed, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 1700 may include following one or more components: processing component 1702, memory 1704, power supply module 1706, multimedia component 1708, audio component 1710, input/output (I/O) interface 1712, sensor module 1714, Yi Jitong Believe component 1716.
The integrated operation of the usual control device 1700 of processing component 1702, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1702 may include one or more processors 1720 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1702 may include one or more moulds Block, convenient for the interaction between processing component 1702 and other assemblies.For example, processing component 1702 may include multi-media module, To facilitate the interaction between multimedia component 1708 and processing component 1702.
Memory 1704 is configured as storing various types of data to support the operation in device 1700.These data Example includes the instruction of any application or method for operating on device 1700, contact data, telephone book data, Message, picture, video etc..Memory 1704 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1706 provides electric power for the various assemblies of device 1700.Power supply module 1706 may include power management System, one or more power supplys and other with for device 1700 generate, manage, and distribute the associated component of electric power.
Multimedia component 1708 includes the screen of one output interface of offer between described device 1700 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1708 includes a front camera and/or rear camera.When device 1700 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1710 is configured as output and/or input audio signal.For example, audio component 1710 includes a wheat Gram wind (MIC), when device 1700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1704 or via communication Component 1716 is sent.In some embodiments, audio component 1710 further includes a loudspeaker, is used for output audio signal.
I/O interface 1712 provides interface, above-mentioned peripheral interface module between processing component 1702 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1714 includes one or more sensors, and the state for providing various aspects for device 1700 is commented Estimate.For example, sensor module 1714 can detecte the state that opens/closes of device 1700, the relative positioning of component, such as institute The display and keypad that component is device 1700 are stated, sensor module 1714 can be with detection device 1700 or device 1,700 1 The position change of a component, the existence or non-existence that user contacts with device 1700,1700 orientation of device or acceleration/deceleration and dress Set 1700 temperature change.Sensor module 1714 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1714 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1716 is configured to facilitate the communication of wired or wireless way between device 1700 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1700,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1716 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1716 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1700 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1704 of instruction, above-metioned instruction can be executed by the processor 820 of device 1700 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1700 When device executes, so that device 1700 is able to carry out above-mentioned light source adjusting method, which comprises
Obtain current environmental light brightness;
According to the current environmental light brightness, the light-source brightness of at least two keys is adjusted to respective predetermined luminance, Make the difference of every two key at least two key displayed contrast within a predetermined range.
It is described according to the current environmental light brightness, adjust the light-source brightness of at least two keys to it is respective preset it is bright Degree includes:
When the current environmental light brightness, which is greater than, presets brightness, increase the light-source brightness of at least two key To respective first predetermined luminance;
When the current environmental light brightness, which is less than, presets dark brightness, reduce the light-source brightness of at least two key To respective second predetermined luminance.
It is described according to the current environmental light brightness for the first key at least two key, adjust to Light-source brightness to the respective predetermined luminance of two keys includes: less
Change the current strength for the circuit connecting with the light source of first key to the predetermined luminance of first key Corresponding current strength, wherein the current strength forward direction influences the light-source brightness of the light source.
The method also includes:
Obtain detection environmental light brightness, the non-light source brightness of at least two key, at least two key light Source brightness, the non-light source brightness of each key are not have the brightness of the predeterminated position of light source around the key;
According to the detection environmental light brightness, the respective non-light source brightness of at least two key, described at least two The light-source brightness of key determines that the detection of at least two key displays contrast;
Calculate the difference that the detection of every two key at least two key displays contrast;
When detecting the difference displayed contrast greater than preset difference value there are j, at least two key or institute are adjusted The light-source brightness of the first key at least two keys is stated to respective predetermined luminance, first key is described j detection The corresponding key of the difference displayed contrast;The j is the integer greater than 2.
Light-source brightness to the respective predetermined luminance of the adjustment at least two key includes:
When the difference that the detection of every two key at least two key displays contrast is both less than the preset difference value When, determine that the detection light-source brightness of each key at least two key is the predetermined luminance of the key;
The light-source brightness of at least two key is adjusted to respective predetermined luminance.
Light-source brightness to the respective predetermined luminance of the first key includes: in adjustment at least two key
When the detection of first key display contrast at least two key in addition to first key The difference displayed contrast of key when being respectively less than the preset difference value, determine the detection light-source brightness of first key for institute State the predetermined luminance of the first key;
The light-source brightness of the first key at least two key is adjusted to respective predetermined luminance.
The detection of determination at least two key displays contrast, comprising:
According to preset rules, detection light-source brightness and the corresponding detection non-light source for generating at least two key are bright Degree;
It is bright according to the detection light-source brightness and corresponding detection non-light source that display contrast formula, at least two key Degree, determines that the detection of at least two key displays contrast;It is wherein, described to display contrast formula are as follows:
Wherein, the CInspectionIt is displayed contrast for the detection;The BLightFor the detection light-source brightness, the BRingIt is described Detect environmental light brightness;The BIt is non-For the detection non-light source brightness.
The acquisition detects environmental light brightness, the non-light source brightness of at least two key, at least two key Light-source brightness include:
Obtain the detection environmental light brightness;
When the detection environmental light brightness is greater than first predetermined luminance, the light source of at least two key is obtained Brightness and non-light source brightness;
Or, obtaining at least two key when the detection environmental light brightness is less than second predetermined luminance Light-source brightness and non-light source brightness.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (15)

1. a kind of light source adjusting method characterized by comprising
Obtain current environmental light brightness;
According to the current environmental light brightness, the light-source brightness of at least two keys is adjusted to respective predetermined luminance, makes institute State the difference of every two key at least two keys displayed contrast within a predetermined range;
It is described according to the current environmental light brightness, adjust the light-source brightness of at least two keys to respective predetermined luminance packet It includes:
When the current environmental light brightness, which is greater than, presets brightness, increase the light-source brightness of at least two key to each From the first predetermined luminance;
When the current environmental light brightness, which is less than, presets dark brightness, reduce the light-source brightness of at least two key to each From the second predetermined luminance;
The method also includes:
Acquisition detection environmental light brightness, the non-light source brightness of at least two key, the light source of at least two key are bright Degree, the non-light source brightness of each key are not have the brightness of the predeterminated position of light source around the key;
According to the detection environmental light brightness, the respective non-light source brightness of at least two key, at least two key Light-source brightness, determine that the detection of at least two key displays contrast;
Calculate the difference that the detection of every two key at least two key displays contrast;
When detecting the difference that displays contrast there are j and being greater than preset difference value, adjust at least two key or it is described extremely For the light-source brightness of the first key to respective predetermined luminance, first key is j detection display in few two keys The corresponding key of the difference of contrast;The j is the integer greater than 2.
2. the method according to claim 1, wherein for the first key at least two key, institute It states according to the current environmental light brightness, light-source brightness to the respective predetermined luminance for adjusting at least two keys includes:
The predetermined luminance institute for changing current strength to first key of the circuit connecting with the light source of first key is right The current strength answered, wherein the current strength forward direction influences the light-source brightness of the light source.
3. the method according to claim 1, wherein the light-source brightness of adjustment at least two key is extremely Respective predetermined luminance includes:
When the difference that the detection of every two key at least two key displays contrast is both less than the preset difference value, really The detection light-source brightness of each key is the predetermined luminance of the key in fixed at least two key;
The light-source brightness of at least two key is adjusted to respective predetermined luminance.
4. the method according to claim 1, wherein the first key in adjustment at least two key Light-source brightness to respective predetermined luminance includes:
When the detection of first key display contrast at least two key in addition to first key by When the difference of key displayed contrast is respectively less than the preset difference value, determine that the detection light-source brightness of first key is described the The predetermined luminance of one key;
The light-source brightness of the first key at least two key is adjusted to respective predetermined luminance.
5. the method according to claim 1, wherein the detection of the determination at least two key is shown pair Degree of ratio, comprising:
According to preset rules, the detection light-source brightness of generation at least two key and corresponding detection non-light source brightness;
According to the detection light-source brightness and corresponding detection non-light source brightness for displaying contrast formula, at least two key, Determine that the detection of at least two key displays contrast;It is wherein, described to display contrast formula are as follows:
Wherein, the CInspectionIt is displayed contrast for the detection;The BLightFor the detection light-source brightness, the BRingFor the detection Environmental light brightness;The BIt is non-For the detection non-light source brightness.
6. the method according to claim 1, wherein the acquisition detects environmental light brightness, described at least two The non-light source brightness of key, at least two key light-source brightness include:
Obtain the detection environmental light brightness;
When the detection environmental light brightness is greater than first predetermined luminance, the light-source brightness of at least two key is obtained With non-light source brightness;
Or, obtaining the light source of at least two key when the detection environmental light brightness is less than second predetermined luminance Brightness and non-light source brightness.
7. a kind of light source adjustment device characterized by comprising
First obtains module, for obtaining current environmental light brightness;
The first adjustment module, for according to the current environmental light brightness, adjusting the light-source brightness of at least two keys to each From predetermined luminance, make the difference of every two key at least two key displayed contrast within a predetermined range;
The first adjustment module includes:
Increase submodule, for increasing described at least two and pressing when the current environmental light brightness is greater than and presets brightness The light-source brightness of key is to respective first predetermined luminance;
Reduce submodule, for reducing described at least two and pressing when the current environmental light brightness is less than and presets dark brightness The light-source brightness of key is to respective second predetermined luminance;
Described device further include:
Second obtain module, for obtains detect environmental light brightness, at least two key non-light source brightness, it is described at least The light-source brightness of two keys, the non-light source brightness of each key are not have the brightness of the predeterminated position of light source around the key;
Determining module, for according to the detection environmental light brightness, the respective non-light source brightness of at least two key, described The light-source brightness of at least two keys determines that the detection of at least two key displays contrast;
Computing module, the difference that the detection for calculating every two key at least two key displays contrast;
Second adjustment module, for adjusting described at least two when detecting the difference displayed contrast greater than preset difference value there are j The light-source brightness of the first key to respective predetermined luminance, first key is in a key or at least two key Described j is detected the corresponding key of difference displayed contrast;The j is the integer greater than 2.
8. device according to claim 7, which is characterized in that for the first key at least two key, institute State the first adjustment module further include:
Change submodule, for changing the circuit being connect with the light source of first key current strength to first key Predetermined luminance corresponding to current strength, wherein the current strength forward direction influences the light-source brightness of the light source.
9. device according to claim 7, which is characterized in that the second adjustment module includes:
First determines submodule, and the difference for displaying contrast when the detection of every two key at least two key is all small When the preset difference value, determine that the detection light-source brightness of each key at least two key is the default of the key Brightness;
The first adjustment submodule, for adjusting the light-source brightness of at least two key to respective predetermined luminance.
10. device according to claim 7, which is characterized in that the second adjustment module includes:
Second determines submodule, displays contrast for the detection when first key and removes institute at least two key When stating the difference displayed contrast of the key except the first key and being respectively less than the preset difference value, the inspection of first key is determined Survey the predetermined luminance that light-source brightness is first key;
Second adjustment submodule, for adjust the light-source brightness of the first key at least two key to it is respective preset it is bright Degree.
11. device according to claim 7, which is characterized in that the determining module includes:
Submodule is generated, for according to preset rules, the detection light-source brightness of generation at least two key and corresponding inspection Survey non-light source brightness;
Third determines submodule, for according to displaying contrast formula, the detection light-source brightness of at least two key and right The detection non-light source brightness answered determines that the detection of at least two key displays contrast;Wherein, described to display contrast public affairs Formula are as follows:
Wherein, the CInspectionIt is displayed contrast for the detection;The BLightFor the detection light-source brightness, the BRingFor the detection Environmental light brightness;The BIt is non-For the detection non-light source brightness.
12. device according to claim 7, which is characterized in that described second, which obtains module, includes:
First acquisition submodule, for obtaining the detection environmental light brightness;
Second acquisition submodule, for when the detection environmental light brightness is greater than first predetermined luminance, acquisition to be described extremely The light-source brightness of few two keys and non-light source brightness;
Third acquisition submodule, for when the detection environmental light brightness is less than second predetermined luminance, acquisition to be described extremely The light-source brightness of few two keys and non-light source brightness.
13. a kind of terminal device characterized by comprising
Processor;
Memory for storage processor executable instruction;
At least two keys with light source;
The light barrier being arranged above the light source of at least two key;
Wherein, the processor is configured to:
Obtain current environmental light brightness;
According to the current environmental light brightness, the light-source brightness of at least two keys is adjusted to respective predetermined luminance, makes institute State the difference of every two key at least two keys displayed contrast within a predetermined range;
It is described according to the current environmental light brightness, adjust the light-source brightness of at least two keys to respective predetermined luminance packet It includes:
When the current environmental light brightness, which is greater than, presets brightness, increase the light-source brightness of at least two key to each From the first predetermined luminance;
When the current environmental light brightness, which is less than, presets dark brightness, reduce the light-source brightness of at least two key to each From the second predetermined luminance;
The processor is also configured to
Acquisition detection environmental light brightness, the non-light source brightness of at least two key, the light source of at least two key are bright Degree, the non-light source brightness of each key are not have the brightness of the predeterminated position of light source around the key;
According to the detection environmental light brightness, the respective non-light source brightness of at least two key, at least two key Light-source brightness, determine that the detection of at least two key displays contrast;
Calculate the difference that the detection of every two key at least two key displays contrast;
When detecting the difference that displays contrast there are j and being greater than preset difference value, adjust at least two key or it is described extremely For the light-source brightness of the first key to respective predetermined luminance, first key is j detection display in few two keys The corresponding key of the difference of contrast;The j is the integer greater than 2.
14. terminal device according to claim 13, which is characterized in that be provided on the light barrier and described at least two The corresponding loophole of the light source position of each key in a key, wherein from the near to the distant with the distance away from the loophole, lead The highlighted quantity of ink of tabula rasa printing is from less to more.
15. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of any one of claims 1 to 6 the method is realized when execution.
CN201710041444.3A 2017-01-20 2017-01-20 Light source adjusting method and device Active CN106713658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710041444.3A CN106713658B (en) 2017-01-20 2017-01-20 Light source adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710041444.3A CN106713658B (en) 2017-01-20 2017-01-20 Light source adjusting method and device

Publications (2)

Publication Number Publication Date
CN106713658A CN106713658A (en) 2017-05-24
CN106713658B true CN106713658B (en) 2019-10-11

Family

ID=58908784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710041444.3A Active CN106713658B (en) 2017-01-20 2017-01-20 Light source adjusting method and device

Country Status (1)

Country Link
CN (1) CN106713658B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6239782B1 (en) * 1999-01-19 2001-05-29 Tektronix, Inc. Single knob intensity control for use in digital test and measurement equipment
CN1661663A (en) * 2004-02-23 2005-08-31 鸿富锦精密工业(深圳)有限公司 Set and method for adjusting brightness and contrast
CN101086829A (en) * 2006-06-07 2007-12-12 明基电通股份有限公司 Method and system for adjusting display contrast
CN101483111A (en) * 2008-01-08 2009-07-15 邱亮 Back light source type illuminating keyboard
CN101719944A (en) * 2009-12-09 2010-06-02 中兴通讯股份有限公司 Terminal for sensing light and method for adjusting human-computer interface by sensing light
CN106331346A (en) * 2016-08-24 2017-01-11 珠海格力电器股份有限公司 Contrast adjusting method and device, display screen with device and portable equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6239782B1 (en) * 1999-01-19 2001-05-29 Tektronix, Inc. Single knob intensity control for use in digital test and measurement equipment
CN1661663A (en) * 2004-02-23 2005-08-31 鸿富锦精密工业(深圳)有限公司 Set and method for adjusting brightness and contrast
CN101086829A (en) * 2006-06-07 2007-12-12 明基电通股份有限公司 Method and system for adjusting display contrast
CN101483111A (en) * 2008-01-08 2009-07-15 邱亮 Back light source type illuminating keyboard
CN101719944A (en) * 2009-12-09 2010-06-02 中兴通讯股份有限公司 Terminal for sensing light and method for adjusting human-computer interface by sensing light
CN106331346A (en) * 2016-08-24 2017-01-11 珠海格力电器股份有限公司 Contrast adjusting method and device, display screen with device and portable equipment

Also Published As

Publication number Publication date
CN106713658A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN105261346B (en) Method of adjustment, device and the terminal device of backlight illumination
CN106303266B (en) Control method, device and the terminal of flash lamp
CN104488258B (en) Method and apparatus for double camera shutter
CN104700816A (en) Method and device for setting screen brightness
CN106257581A (en) User terminal apparatus and the method being used for adjusting brightness thereof
WO2021098609A1 (en) Method and device for image detection, and electronic device
CN105957037B (en) Image enchancing method and device
KR20170067674A (en) Liquid crystal display method and device
CN105208284B (en) Shoot based reminding method and device
CN104464674B (en) Liquid crystal display method of adjustment and device
CN111880888B (en) Preview cover generation method and device, electronic equipment and storage medium
CN106332415B (en) Key brightness correcting method and device
CN105516824A (en) Method and device for adjusting brightness of television screen
KR20160127606A (en) Mobile terminal and the control method thereof
CN111858382A (en) Application program testing method, device, server, system and storage medium
CN109215578A (en) Screen display method and device
CN104517271A (en) Image processing method and device
CN108040204A (en) A kind of image capturing method based on multi-cam, device and storage medium
EP3872804A1 (en) Brightness adjustment method and device, mobile terminal and storage medium
CN108132733A (en) Touch panel, electronic equipment
CN105139808A (en) Method and device for adjusting backlight display region
CN109660876B (en) Method and device for displaying list
CN108154865A (en) Adjust the method and device of screen color temp
CN104299582A (en) Backlight adjusting method and device
CN114201738B (en) Unlocking method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant