CN104345876B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN104345876B
CN104345876B CN201310342264.0A CN201310342264A CN104345876B CN 104345876 B CN104345876 B CN 104345876B CN 201310342264 A CN201310342264 A CN 201310342264A CN 104345876 B CN104345876 B CN 104345876B
Authority
CN
China
Prior art keywords
value
parameter
sensor
electronic equipment
processing unit
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
CN201310342264.0A
Other languages
Chinese (zh)
Other versions
CN104345876A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310342264.0A priority Critical patent/CN104345876B/en
Priority to US14/286,066 priority patent/US9607571B2/en
Publication of CN104345876A publication Critical patent/CN104345876A/en
Application granted granted Critical
Publication of CN104345876B publication Critical patent/CN104345876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/04Maintaining the quality of display appearance
    • G09G2320/041Temperature compensation
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/14Detecting light within display terminals, e.g. using a single or a plurality of photosensors
    • G09G2360/144Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light being ambient light
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of information processing method, the authenticity for improving the information obtained.Methods described includes:The first value of the first parameter is gathered by the first sensor;The second value of the first parameter is gathered by the second sensor;Judge whether the difference of first value and the second value is more than or equal to first threshold, obtain the first judged result;When first judged result shows that the difference is more than or equal to first threshold, the 3rd value of first parameter is determined based on the first algorithm and first value and the second value, and the value of the 3rd value as first parameter is reported into the processing unit;When first judged result shows that the difference is less than first threshold, the 4th value of first parameter is determined based on the second algorithm and first value and the second value, and the value of the 4th value as first parameter is reported into the processing unit.The invention also discloses the electronic equipment for realizing methods described.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to computer and built-in field, more particularly to a kind of information processing method and electronic equipment.
Background technology
With the continuous development of scientific technology, electronic technology has also obtained development at full speed, and the species of electronic product is also got over Come more, people have also enjoyed the various facilities that development in science and technology is brought.Present people can be set by various types of electronics It is standby, enjoy the comfortable life brought with development in science and technology.Such as, the electronic equipment such as mobile phone have become people life in one not Can or scarce part, people's can be made a phone call, sent short messages by electronic equipments such as mobile phones etc. mode strengthens with other people it Between contact.
Current mobile device, such as mobile phone, PAD(Tablet personal computer)Deng because display screen is larger, if display screen is located always In the higher state of brightness, then more power consumption.Therefore, many mobile devices, which are all provided with, supports display screen ABC Function.
The mobile device of display screen ABC is supported at present, is mostly that to obtain environment by optical sensor bright Degree, so as to set the brightness of display screen according to ambient brightness.For example, when ambient brightness is brighter, it is bright that optical sensor is returned Angle value is larger, and mobile device can improve the brightness of display screen according to ABC algorithm;When ambient brightness is dark, light is passed The brightness value that sensor is returned is smaller, and mobile device can reduce the brightness of display screen according to ABC algorithm, so that can User's request is met, the effect of power saving can be also reached.
However, supporting the mobile device of display screen automatic brightness adjusting function all only to set a light sensing substantially at present Device.So, when user is when using mobile device, the optical sensor may have been blocked unintentionally, at this moment optical sensor can not Luminance signal around normal acquisition, then electronic equipment display screen may be set to current environment do not match that it is bright Degree.For example, surrounding environment brightness value is larger, but because the optical sensor is blocked, then the brightness value that optical sensor is returned is less than week The intrinsic brilliance value in collarette border, the brightness value that mobile device may be returned according to the optical sensor sets the brightness value of display screen That puts is smaller.
Obviously, the authenticity of acquired information is poor, causes the accuracy of adjustment result to electronic equipment relatively low.
The content of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for the letter for solving to obtain in the prior art The poor technical problem of the authenticity of breath.
A kind of information processing method, applied to electronic equipment, the electronic equipment has first sensor, second sensor And processing unit, it the described method comprises the following steps:
The first value of the first parameter is gathered by the first sensor;
The second value of the first parameter is gathered by the second sensor;
Judge whether the difference of first value and the second value is more than or equal to first threshold, obtain first and judge knot Really;
When first judged result shows that the difference is more than or equal to first threshold, based on the first algorithm and described the One value and the second value determine the 3rd value of first parameter, and using the described 3rd value as first parameter value Report the processing unit;
When first judged result shows that the difference is less than first threshold, based on the second algorithm and first value The 4th value of first parameter is determined with the second value, and the value of the 4th value as first parameter is reported To the processing unit.
Preferably, first algorithm is specially:It is described the to take value larger in first value and the second value Three values.
Preferably, second algorithm is specially:The average value for taking first value and the second value is the described 3rd Value.
Preferably, the first sensor is the first optical sensor, the second sensor is the second optical sensor;Or, The first sensor is the first temperature sensor, and the second sensor is second temperature sensor;Or, first sensing Device is the first capacitance sensor, and the second sensor is the second capacitance sensor.
Preferably, after the value of the 3rd value as first parameter is reported into the processing unit, also wrapping Include:By the processing unit using the 3rd value as first parameter standard parameter value, with can be according to the mark Quasi- parameter value adjusts the second parameter of the electronic equipment.
Preferably, after the value of the 4th value as first parameter is reported into the processing unit, also wrapping Include:By the processing unit using the 4th value as first parameter standard parameter value, with can be according to the mark Quasi- parameter value adjusts the second parameter of the electronic equipment.
A kind of electronic equipment, the electronic equipment has first sensor, second sensor and processing unit, the electronics Equipment also includes:
First acquisition module, the first value for gathering the first parameter by the first sensor;
Second acquisition module, the second value for gathering the first parameter by the second sensor;
Judge module, for judging whether the difference of first value and the second value is more than or equal to first threshold, is obtained Obtain the first judged result;
First determining module, for when first judged result show the difference be more than or equal to first threshold when, base The 3rd value of first parameter is determined in the first algorithm and first value and the second value, and the described 3rd value is made Value for first parameter reports the processing unit;
Second determining module, for when first judged result shows that the difference is less than first threshold, based on the Two algorithms and first value and the second value determine the 4th value of first parameter, and regard the described 4th value as institute The value for stating the first parameter reports the processing unit.
Preferably, first algorithm is specially:It is described the to take value larger in first value and the second value Three values.
Preferably, second algorithm is specially:The average value for taking first value and the second value is the described 3rd Value.
Preferably, the first sensor is the first optical sensor, the second sensor is the second optical sensor;Or, The first sensor is the first temperature sensor, and the second sensor is second temperature sensor;Or, first sensing Device is the first capacitance sensor, and the second sensor is the second capacitance sensor.
Preferably, the electronic equipment also includes operation module, it is used for:The described 3rd value is made by the processing unit For the standard parameter value of first parameter, join with the electronic equipment can be adjusted according to the standard parameter value second Number.
Preferably, the electronic equipment also includes operation module, it is used for:The described 4th value is made by the processing unit For the standard parameter value of first parameter, join with the electronic equipment can be adjusted according to the standard parameter value second Number.
Information processing method in the embodiment of the present invention can apply to electronic equipment, and the electronic equipment can have the One sensor, second sensor and processing unit, methods described can include:First parameter is gathered by the first sensor First value;The second value of the first parameter is gathered by the second sensor;Judge first value and the second value Whether difference is more than or equal to first threshold, obtains the first judged result;When first judged result shows that the difference is more than During equal to first threshold, the 3rd of first parameter is determined based on the first algorithm and first value and the second value Value, and the value of the 3rd value as first parameter is reported into the processing unit;When the first judged result table When the bright difference is less than first threshold, first ginseng is determined based on the second algorithm and first value and the second value The 4th several values, and the value of the 4th value as first parameter is reported into the processing unit.
In the embodiment of the present invention, there can be the sensor of two same types in the electronic equipment, two can be passed through Sensor gathers two values of same parameters respectively, so as to determine the final of the parameter after the two values are compared Value, and end value may just be closest to real value.By using the method in the embodiment of the present invention, result in more true Real parameter value, when being adjusted according to the parameter value to electronic equipment, also can just obtain accurately adjustment result.
For example, the electronic equipment can be mobile phone, the two sensors can all be optical sensor, that is, the mobile phone In can have the first optical sensor and the second optical sensor, so, though wherein have an optical sensor by the hand of user or Other objects are blocked, and such as user plays in object for appreciation, and first optical sensor may be blocked by the hand of user, but described Second optical sensor is not blocked, and now the difference of first value and the second value will be more than or equal to first threshold Value, parameter value that the electronic equipment can still be obtained by the two sensors knows surrounding enviroment monochrome information, So as to carry out normal response according to surrounding enviroment information, it is to avoid had influence on because of there is optical sensor to be blocked to true ring The collection of border monochrome information, improves adjustment accuracy, and the errored response for also further avoiding the electronic equipment from making is adopted With the method in the embodiment of the present invention, the effect of power and energy saving can be both reached, Consumer's Experience is improved again, meets user's request.
Brief description of the drawings
Fig. 1 is the broad flow diagram of information processing method in the embodiment of the present invention;
Fig. 2 is the structure chart of electronic equipment in the embodiment of the present invention.
Embodiment
Information processing method in the embodiment of the present invention can apply to electronic equipment, and the electronic equipment can have the One sensor, second sensor and processing unit, methods described can include:First parameter is gathered by the first sensor First value;The second value of the first parameter is gathered by the second sensor;Judge first value and the second value Whether difference is more than or equal to first threshold, obtains the first judged result;When first judged result shows that the difference is more than During equal to first threshold, the 3rd of first parameter is determined based on the first algorithm and first value and the second value Value, and the value of the 3rd value as first parameter is reported into the processing unit;When the first judged result table When the bright difference is less than first threshold, first ginseng is determined based on the second algorithm and first value and the second value The 4th several values, and the value of the 4th value as first parameter is reported into the processing unit.
In the embodiment of the present invention, there can be the sensor of two same types in the electronic equipment, two can be passed through Sensor gathers two values of same parameters respectively, so as to determine the final of the parameter after the two values are compared Value, and end value may just be closest to real value.By using the method in the embodiment of the present invention, result in more true Real parameter value, when being adjusted according to the parameter value to electronic equipment, also can just obtain accurately adjustment result.
For example, the electronic equipment can be mobile phone, the two sensors can all be optical sensor, that is, the mobile phone In can have the first optical sensor and the second optical sensor, so, though wherein have an optical sensor by the hand of user or Other objects are blocked, and such as user plays in object for appreciation, and first optical sensor may be blocked by the hand of user, but described Second optical sensor is not blocked, and now the difference of first value and the second value will be more than or equal to first threshold Value, parameter value that the electronic equipment can still be obtained by the two sensors knows surrounding enviroment monochrome information, So as to carry out normal response according to surrounding enviroment information, it is to avoid had influence on because of there is optical sensor to be blocked to true ring The collection of border monochrome information, improves adjustment accuracy, and the errored response for also further avoiding the electronic equipment from making is adopted With the method in the embodiment of the present invention, the effect of power and energy saving can be both reached, Consumer's Experience is improved again, meets user's request.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
In the embodiment of the present invention, the electronic equipment can be PC(Personal computer), notebook, PAD(Tablet personal computer)、 The different electronic equipment of mobile phone etc., the invention is not limited in this regard.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, represents there may be Three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, these three situations of individualism B.Separately Outside, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Embodiment one
Referring to Fig. 1, the embodiment of the present invention provides a kind of information processing method, and methods described can apply to electronic equipment, The electronic equipment can have first sensor, second sensor and processing unit.The main flow of methods described is as follows:
Step 101:The first value of the first parameter is gathered by the first sensor.
Preferably, in the embodiment of the present invention, the first sensor can be the first optical sensor, the second sensor It can be the second optical sensor;Or, the first sensor can be the first capacitance sensor, the second sensor can be Second capacitance sensor;Or, the first sensor can be the first temperature sensor, the second sensor can be second Capacitance sensor, etc..
So, if the first sensor is first optical sensor, the second sensor is second light Sensor, first parameter can be just light intensity parameter, for example, can be environmental light intensity parameter, if the first sensor For first capacitance sensor, the second sensor is second capacitance sensor, and first parameter can be just Capacitance parameter, for example, can be environmental capacitance parameter, if the first sensor is first temperature sensor, described the Two sensors are the second temperature sensor, and first parameter can be just temperature parameter, for example, can be environment temperature Parameter, etc..
Step 102:The second value of the first parameter is gathered by the second sensor.
In the embodiment of the present invention, described the first of first parameter can be gathered by the first sensor simultaneously Value, and gather by the second sensor second value of first parameter, or, described the can also be passed through first One sensor gathers first value of first parameter, then passes through the institute of second sensor collection first parameter Second value is stated, or, the second value of first parameter can also be gathered by the second sensor first, then pass through The first sensor gathers first value of first parameter.
Step 103:Judge whether the difference of first value and the second value is more than or equal to first threshold, obtain first Judged result.Wherein, when the difference is more than or equal to the first threshold, step 104 is performed, when the difference is less than described During first threshold, step 105 is performed.
In the embodiment of the present invention, obtain it is described first value and the second value after, the electronic equipment can will described in First value and the second value are handled, for example, can obtain the difference of first value and the second value.Obtaining institute After the difference for stating the first value and the second value, it can be determined that the magnitude relationship between the difference and first threshold, for example may be used To judge whether the difference is more than or equal to the first threshold, the first judged result can be obtained according to the deterministic process, that , first judged result can just represent the difference be more than or equal to the first threshold, or, it is described first judge knot Fruit can represent that the difference is less than the first threshold.
Step 104:When first judged result shows that the difference is more than or equal to first threshold, based on the first algorithm The 3rd value of first parameter is determined with first value and the second value, and regard the described 3rd value as described first The value of parameter reports the processing unit.
In the embodiment of the present invention, if first judged result shows, the difference is more than or equal to the first threshold, So, the electronic equipment can determine first ginseng according to first algorithm, first value and the second value Several the 3rd values, after the 3rd value is determined, can report the processing unit by the 3rd value.
For example, the processing unit can be the CPU of the electronic equipment(Central processing unit), or can be the electricity The MCU of sub- equipment(Microprocessor), etc..
In the embodiment of the present invention, such as described first algorithm can be take it is larger in first value and the second value Value is used as the described 3rd value.If for example, first value is more than the second value, then can just take the first value conduct 3rd value.
Preferably, in the embodiment of the present invention, it is determined that after the 3rd value, first value and described second can be deleted Smaller value in value.If for example, the second value is more than the described first value, then can just take the second value as described 3rd value, it is determined that the second value as the described 3rd be worth after, first value can be deleted, so, can be practiced every conceivable frugality The memory space of the electronic equipment.
In the embodiment of the present invention, such as described first sensor is first optical sensor, and the second sensor is Second optical sensor, then, if the difference between first value and the second value is more than or equal to described the One threshold value, it is likely that illustrate there is an optical sensor by barrier institute in first optical sensor and second optical sensor Block, then, naturally it is considered that the acquired less optical sensor of value is the optical sensor blocked by barrier, and do not have There is the value acquired in the optical sensor blocked by barrier apparently more close to actual parameter value, therefore, it can take described Larger value so can just make the parameter value of determination closer to real as the described 3rd value in one value and the second value Parameter value, can improve the accuracy of acquired parameter value.
Further, in an alternative embodiment of the invention, reported using the value of the 3rd value as first parameter After the processing unit, the electronic equipment can also regard the 3rd value as described first by the processing unit The standard parameter value of parameter.
Further, in an alternative embodiment of the invention, by the processing unit using the 3rd value as described After the standard parameter value of first parameter, the electronic equipment can adjust the electronics according to the standard parameter value Second parameter of equipment.
For example, the electronic equipment can have display unit, if first parameter is light intensity parameter, then, institute State the display parameters that the second parameter can be the display unit.By the processing unit using the 3rd value as described After the standard parameter value of first parameter, the electronic equipment can be adjusted according to the 3rd value of first parameter The value of the whole display parameters, that is to say, that the electronic equipment can be according to the environmental light intensity of collection come adjust automatically The display parameters of display unit, so that the display effect of the display unit can change according to environmental light intensity, can try one's best Reach the effect of power and energy saving.
Step 105:When first judged result shows that the difference is less than first threshold, based on the second algorithm and institute State the first value and the second value determines the 4th value of first parameter, and regard the described 4th value as first parameter Value report the processing unit.
In the embodiment of the present invention, if first judged result shows, the difference is less than the first threshold, that , the electronic equipment can determine first parameter according to second algorithm, first value and the second value It is described 4th value, after the 4th value is determined, the 4th value can be reported the processing unit.
In the embodiment of the present invention, such as described second algorithm can be the average value for taking first value and the second value As the described 4th value, wherein, when averaging, the arithmetic mean of instantaneous value of first value and the second value can be taken, or Person can also take the weighted average of first value and the second value.
Preferably, in the embodiment of the present invention, it is determined that after the 4th value, first value and described second can be deleted Value, so, the memory space for the electronic equipment that can practice every conceivable frugality.
Further, in an alternative embodiment of the invention, reported using the value of the 4th value as first parameter After the processing unit, the electronic equipment can also regard the 4th value as described first by the processing unit The standard parameter value of parameter.
In the embodiment of the present invention, such as described first sensor is first optical sensor, and the second sensor is Second optical sensor, then, if the difference between first value and the second value is less than first threshold Value, it is likely that illustrate that first optical sensor and second optical sensor do not have optical sensor to be blocked by barrier, that , it is believed that the value acquired in the two optical sensors may all be closer to actual value.
Therefore, in the embodiment of the present invention, the 4th algorithm can take appointing in first value and the second value Meaning one is used as the described 4th value.
Preferably, in the embodiment of the present invention, in order to which more accurately, the 4th algorithm can also take first value and institute The average value of second value is stated as the 4th value.In such manner, it is possible to make the parameter value of determination closer to real parameter value, more The accuracy of acquired parameter value can be improved.
Further, in an alternative embodiment of the invention, by the processing unit using the 4th value as described After the standard parameter value of first parameter, the electronic equipment can adjust the electronics according to the standard parameter value Second parameter of equipment.
For example, the electronic equipment can have display unit, if first parameter is light intensity parameter, then, institute State the display parameters that the second parameter can be the display unit.By the processing unit using the 4th value as described After the standard parameter value of first parameter, the electronic equipment can be adjusted according to the 4th value of first parameter The value of the whole display parameters, that is to say, that the electronic equipment can be according to the environmental light intensity of collection come adjust automatically The display parameters of display unit, so that the display effect of the display unit can change according to environmental light intensity, can try one's best Reach the effect of power and energy saving.
In the embodiment of the present invention, it is determined that the standard parameter value it is more accurate, be to be obtained by two optical sensors The intrinsic brilliance value of surrounding environment, therefore, the display parameters of the display unit is adjusted according to the standard parameter value, can So that the light that the display unit is sent is adapted with surrounding environment, makes the display quality of the display unit preferable, be user Good viewing light is provided.
If for example, the standard parameter value is higher, illustrating that surrounding environment brightness is stronger, the electronic equipment can phase The value of the display parameters should be set is higher, by force user will not be caused not see screen very much because surrounding environment light, And if the standard parameter value is relatively low, then illustrating that surrounding environment brightness is weaker, the electronic equipment described will accordingly can show Show that the value of parameter is set relatively low, the light that will not be sent by display screen is too strong and the eyes of impaired user.
The information processing method and the electronic equipment in the present invention are introduced below by way of several specific embodiments, below Embodiment be mainly used in introducing several possible application scenarios of methods described.It should be noted that the implementation in the present invention Example is served only for explaining the present invention, and cannot be used for the limitation present invention, and every embodiment for meeting inventive concept is in the present invention Protection domain within, those skilled in the art know naturally should how according to the present invention thought carry out modification.
Embodiment two
The electronic equipment is mobile phone, and the mobile phone has the first optical sensor, the second optical sensor and processing unit.Preferably , first optical sensor and second optical sensor are arranged in the different azimuth of the mobile phone, so, when there is one When optical sensor is blocked by barrier, it can ensure that another optical sensor will not be while be blocked as far as possible.
In the embodiment of the present invention, described the first of first parameter can be gathered by the first sensor simultaneously Value, and by the second value of second sensor collection first parameter, such as described first parameter is ambient light Strong parameter.
After first value and the second value is obtained, the electronic equipment can be by the described first value and described second Value is handled, for example, can obtain the difference of first value and the second value.Obtaining first value and described the After the difference of two-value, it can be determined that the magnitude relationship between the difference and first threshold, for example, it may determine that the difference is It is no to be more than or equal to the first threshold, obtain the first judged result.
In the embodiment of the present invention, first judged result shows that the difference is more than or equal to the first threshold, described Electronic equipment can be based on the first algorithm, and the 3rd of first parameter the is determined according to first value and the second value Value, and the value of the 3rd value as first parameter is reported into the processing unit.
In the embodiment of the present invention, the processing unit can be the CPU of the electronic equipment.
In the embodiment of the present invention, such as described first algorithm can be take it is larger in first value and the second value Value is used as the described 3rd value.
For example, in the embodiment of the present invention, first value is more than the second value, then can just take first value to make For the described 3rd value.
Preferably, in the embodiment of the present invention, it is determined that after the 3rd value, first value and described second can be deleted Smaller value in value, that is, delete the second value, so, the memory space for the electronic equipment that can practice every conceivable frugality.
The difference between first value and the second value is more than or equal to the first threshold, it is likely that illustrate institute Stating in the first optical sensor and second optical sensor has an optical sensor to be blocked by barrier, then, naturally can be with Think that the acquired less optical sensor of value is the optical sensor blocked by barrier, without what is blocked by barrier Value acquired in optical sensor therefore, it can take in first value and the second value apparently more close to actual parameter value Larger value so can just make the parameter value of determination closer to real parameter value, can improve and be obtained as the described 3rd value The accuracy of the parameter value taken.
After the value of the 3rd value as first parameter is reported into the processing unit, the electronic equipment Can also by the processing unit using the 3rd value as first parameter standard parameter value.Passing through the processing Unit is worth the described 3rd as after the standard parameter value of first parameter, and the electronic equipment can be according to described Standard parameter value adjusts the second parameter of the electronic equipment.
For example, the electronic equipment can have display unit, second parameter can be the aobvious of the display unit Show parameter.By the processing unit using the 3rd value as after the standard parameter value of first parameter, institute The value of the display parameters can be adjusted according to the 3rd value of first parameter by stating electronic equipment, that is to say, that institute State electronic equipment can according to the environmental light intensity of collection come adjust automatically display unit display parameters so that the display The display effect of unit can change according to environmental light intensity, and the effect of power and energy saving can be reached as far as possible.
Embodiment three
The electronic equipment is mobile phone, and the mobile phone has the first temperature sensor, second temperature sensor and processing unit. Preferably, first temperature sensor and the second temperature sensor are arranged in the different azimuth of the mobile phone, so, When there is a temperature sensor to be blocked by barrier, it can ensure that another temperature sensor will not be while be hidden as far as possible Gear.
In the embodiment of the present invention, described the first of first parameter can be gathered by the first sensor simultaneously Value, and by the second value of second sensor collection first parameter, such as described first parameter is environment temperature Spend parameter.
After first value and the second value is obtained, the electronic equipment can be by the described first value and described second Value is handled, for example, can obtain the difference of first value and the second value.Obtaining first value and described the After the difference of two-value, it can be determined that the magnitude relationship between the difference and first threshold, for example, it may determine that the difference is It is no to be more than or equal to the first threshold, obtain the first judged result.
In the embodiment of the present invention, first judged result shows that the difference is less than the first threshold, the electronics Equipment can be based on the second algorithm, and the 4th value of first parameter is determined according to first value and the second value, and The value of 4th value as first parameter is reported into the processing unit.
In the embodiment of the present invention, the processing unit can be the CPU of the electronic equipment.
In the embodiment of the present invention, such as described second algorithm can be the average value for taking first value and the second value It is used as the described 4th value.
In the embodiment of the present invention, the arithmetic average of first value and the second value can be taken as the described 4th Value.
Preferably, in the embodiment of the present invention, it is determined that after the 4th value, first value and described second can be deleted Value, so, the memory space for the electronic equipment that can practice every conceivable frugality.
The difference between first value and the second value is less than the first threshold, it is likely that illustrate described the One temperature sensor and the second temperature sensor do not have optical sensor to be blocked by barrier, then, it is believed that this two Value acquired in individual optical sensor may all be closer to actual value.
After the value of the 3rd value as first parameter is reported into the processing unit, the electronic equipment Can also by the processing unit using the 3rd value as first parameter standard parameter value.Passing through the processing Unit is worth the described 3rd as after the standard parameter value of first parameter, and the electronic equipment can be according to described Standard parameter value adjusts the second parameter of the electronic equipment.
For example, the electronic equipment can have heat-sink unit, second parameter can be dissipating for the heat-sink unit Thermal parameter.By the processing unit using the 3rd value as after the standard parameter value of first parameter, institute The value of the radiation parameter can be adjusted according to the 3rd value of first parameter by stating electronic equipment, that is to say, that institute State electronic equipment can according to the environment temperature of collection come adjust automatically radiation parameter value so that the heat-sink unit Radiating effect can change according to environment temperature, can protect the electronic equipment as far as possible.
Example IV
The electronic equipment is mobile phone, and the mobile phone has the first capacitance sensor, the second capacitance sensor and processing unit. Preferably, first capacitance sensor and second capacitance sensor are arranged in the different azimuth of the mobile phone, so, When there is a capacitance sensor to be blocked by barrier, it can ensure that another capacitance sensor will not be while be hidden as far as possible Gear.
In the embodiment of the present invention, described the first of first parameter can be gathered by the first sensor simultaneously Value, and by the second value of second sensor collection first parameter, such as described first parameter is ambient light Strong parameter.
After first value and the second value is obtained, the electronic equipment can be by the described first value and described second Value is handled, for example, can obtain the difference of first value and the second value.Obtaining first value and described the After the difference of two-value, it can be determined that the magnitude relationship between the difference and first threshold, for example, it may determine that the difference is It is no to be more than or equal to the first threshold, obtain the first judged result.
For example, first value is 1000, the second value is 10, and the first threshold is 100.The difference just can be with It is 990.
Obviously, in the embodiment of the present invention, first judged result shows that the difference is more than or equal to the first threshold, The electronic equipment can be based on the first algorithm, and the of first parameter is determined according to first value and the second value Three values, and the value of the 3rd value as first parameter is reported into the processing unit.
In the embodiment of the present invention, the processing unit can be the CPU of the electronic equipment.
In the embodiment of the present invention, such as described first algorithm can be take it is larger in first value and the second value Value is used as the described 3rd value.
For example, in the embodiment of the present invention, first value is more than the second value, then can just take first value to make For the described 3rd value.
Preferably, in the embodiment of the present invention, it is determined that after the 3rd value, first value and described second can be deleted Smaller value in value, that is, delete the second value, so, the memory space for the electronic equipment that can practice every conceivable frugality.
The difference between first value and the second value is more than or equal to the first threshold, it is likely that illustrate institute Stating in the first capacitance sensor and second capacitance sensor has a capacitance sensor to have damaged, or be probably by Other electronic devices are disturbed, then, naturally it is considered that the acquired less capacitance sensor of value is to have damaged or done The capacitance sensor disturbed, without the value acquired in the capacitance sensor that is damaged or is disturbed apparently more close to actual parameter Value, therefore, it can take value larger in first value and the second value as the 3rd value, so can just make determination Parameter value can improve the accuracy of acquired parameter value closer to real parameter value.
After the value of the 3rd value as first parameter is reported into the processing unit, the electronic equipment Can also by the processing unit using the 3rd value as first parameter standard parameter value.Passing through the processing Unit is worth the described 3rd as after the standard parameter value of first parameter, and the electronic equipment can be according to described Standard parameter value adjusts the second parameter of the electronic equipment.
Embodiment six
Fig. 2 is referred to, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment there can be the first sensing Device, second sensor and processing unit, the electronic equipment can also include the first acquisition module 201, the second acquisition module 202nd, judge module 203, the first determining module 204 and the second determining module 205.
Preferably, the electronic equipment can also include operation module 206.
First acquisition module 201 can be used for the first value that the first parameter is gathered by the first sensor.
Second acquisition module 201 can be used for the second value that the first parameter is gathered by the second sensor.
The judge module 201 can be used for judging whether the difference of first value and the second value is more than or equal to the One threshold value, obtains the first judged result.
First determining module 201 can be used for when first judged result shows that the difference is more than or equal to first During threshold value, the 3rd value of first parameter is determined based on the first algorithm and first value and the second value, and by institute The 3rd value is stated as the value of first parameter and reports the processing unit.
Second determining module 201 can be used for when first judged result shows that the difference is less than first threshold When, determine the 4th value of first parameter based on the second algorithm and first value and the second value, and by described Four values report the processing unit as the value of first parameter.
In the embodiment of the present invention, first algorithm is specially:Take value larger in first value and the second value For the described 3rd value.
In the embodiment of the present invention, second algorithm is specially:The average value for taking first value and the second value is 3rd value.
In the embodiment of the present invention, the first sensor is the first optical sensor, and the second sensor passes for the second light Sensor;Or, the first sensor is the first temperature sensor, the second sensor is second temperature sensor;Or, it is described First sensor is the first capacitance sensor, and the second sensor is the second capacitance sensor.
The operation module 206 can be used for regarding the 3rd value as first parameter by the processing unit Standard parameter value, so that the second parameter of the electronic equipment can be adjusted according to the standard parameter value.
The operation module 206 can be used for regarding the 4th value as first parameter by the processing unit Standard parameter value, so that the second parameter of the electronic equipment can be adjusted according to the standard parameter value.
Information processing method in the embodiment of the present invention can apply to electronic equipment, and the electronic equipment can have the One sensor, second sensor and processing unit, methods described can include:First parameter is gathered by the first sensor First value;The second value of the first parameter is gathered by the second sensor;Judge first value and the second value Whether difference is more than or equal to first threshold, obtains the first judged result;When first judged result shows that the difference is more than During equal to first threshold, the 3rd of first parameter is determined based on the first algorithm and first value and the second value Value, and the value of the 3rd value as first parameter is reported into the processing unit;When the first judged result table When the bright difference is less than first threshold, first ginseng is determined based on the second algorithm and first value and the second value The 4th several values, and the value of the 4th value as first parameter is reported into the processing unit.
In the embodiment of the present invention, there can be the sensor of two same types in the electronic equipment, two can be passed through Sensor gathers two values of same parameters respectively, so as to determine the final of the parameter after the two values are compared Value, and end value may just be closest to real value.By using the method in the embodiment of the present invention, result in more true Real parameter value, when being adjusted according to the parameter value to electronic equipment, also can just obtain accurately adjustment result.
For example, the electronic equipment can be mobile phone, the two sensors can all be optical sensor, that is, the mobile phone In can have the first optical sensor and the second optical sensor, so, though wherein have an optical sensor by the hand of user or Other objects are blocked, and such as user plays in object for appreciation, and first optical sensor may be blocked by the hand of user, but described Second optical sensor is not blocked, and now the difference of first value and the second value will be more than or equal to first threshold Value, parameter value that the electronic equipment can still be obtained by the two sensors knows surrounding enviroment monochrome information, So as to carry out normal response according to surrounding enviroment information, it is to avoid had influence on because of there is optical sensor to be blocked to true ring The collection of border monochrome information, improves adjustment accuracy, and the errored response for also further avoiding the electronic equipment from making is adopted With the method in the embodiment of the present invention, the effect of power and energy saving can be both reached, Consumer's Experience is improved again, meets user's request.
It is apparent to those skilled in the art that, for convenience and simplicity of description, only with above-mentioned each function The division progress of module is for example, in practical application, as needed can distribute above-mentioned functions by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to corresponding in preceding method embodiment Journey, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the module or The division of unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute Display or the coupling each other discussed or direct-coupling or communication connection can be by some interfaces, device or unit INDIRECT COUPLING or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, the technical scheme of the application is substantially The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment(Can be personal computer, server, or network equipment etc.)Or processor(processor)Perform the application each The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD Etc. it is various can be with the medium of store program codes.
Described above, above example is only described in detail to the technical scheme to the application, but implements above The explanation of example is only intended to the method and its core concept for helping to understand the present invention, should not be construed as limiting the invention.This Those skilled in the art the invention discloses technical scope in, the change or replacement that can be readily occurred in should all be covered Within protection scope of the present invention.

Claims (8)

1. a kind of information processing method, applied to electronic equipment, it is characterised in that the electronic equipment have first sensor, Second sensor and processing unit, the described method comprises the following steps:
The first value of the first parameter is gathered by the first sensor;
The second value of the first parameter is gathered by the second sensor;
Judge whether the difference of first value and the second value is more than or equal to first threshold, obtain the first judged result;
When first judged result shows that the difference is more than or equal to first threshold, based on the first algorithm and first value The 3rd value of first parameter is determined with the second value, and the value of the 3rd value as first parameter is reported To the processing unit;
When first judged result shows that the difference is less than first threshold, based on the second algorithm and first value and institute The 4th value that second value determines first parameter is stated, and the value of the 4th value as first parameter is reported into institute State processing unit;
Wherein, first algorithm is specially:It is the 3rd value to take value larger in first value and the second value;Institute Stating the second algorithm is specially:The average value for taking first value and the second value is the 4th value.
2. the method as described in claim 1, it is characterised in that the first sensor is the first optical sensor, described second Sensor is the second optical sensor;Or, the first sensor is the first temperature sensor, the second sensor is the second temperature Spend sensor;Or, the first sensor is the first capacitance sensor, the second sensor is the second capacitance sensor.
3. method as claimed in claim 1 or 2, it is characterised in that be worth the value as first parameter using the described 3rd After reporting the processing unit, in addition to:First parameter is regard the 3rd value as by the processing unit Standard parameter value, so that the second parameter of the electronic equipment can be adjusted according to the standard parameter value.
4. method as claimed in claim 1 or 2, it is characterised in that be worth the value as first parameter using the described 4th After reporting the processing unit, in addition to:First parameter is regard the 4th value as by the processing unit Standard parameter value, so that the second parameter of the electronic equipment can be adjusted according to the standard parameter value.
5. a kind of electronic equipment, it is characterised in that the electronic equipment has first sensor, second sensor and processing single Member, the electronic equipment also includes:
First acquisition module, the first value for gathering the first parameter by the first sensor;
Second acquisition module, the second value for gathering the first parameter by the second sensor;
Judge module, for judging whether the difference of first value and the second value is more than or equal to first threshold, obtains the One judged result;
First determining module, for when first judged result shows that the difference is more than or equal to first threshold, based on the One algorithm and first value and the second value determine the 3rd value of first parameter, and regard the described 3rd value as institute The value for stating the first parameter reports the processing unit;
Second determining module, for when first judged result shows that the difference is less than first threshold, being calculated based on second Method and first value and the second value determine the 4th value of first parameter, and regard the described 4th value as described the The value of one parameter reports the processing unit;Wherein, first algorithm is specially:Take first value and the second value In larger value be the described 3rd value;Second algorithm is specially:The average value for taking first value and the second value is 4th value.
6. electronic equipment as claimed in claim 5, it is characterised in that the first sensor is the first optical sensor, described Second sensor is the second optical sensor;Or, the first sensor is the first temperature sensor, the second sensor is the Two temperature sensors;Or, the first sensor is the first capacitance sensor, the second sensor is the second capacitance sensing Device.
7. the electronic equipment as described in claim 5 or 6, it is characterised in that the electronic equipment also includes operation module, is used In:By the processing unit using the 3rd value as first parameter standard parameter value, with can be according to the mark Quasi- parameter value adjusts the second parameter of the electronic equipment.
8. the electronic equipment as described in claim 5 or 6, it is characterised in that the electronic equipment also includes operation module, is used In:By the processing unit using the 4th value as first parameter standard parameter value, with can be according to the mark Quasi- parameter value adjusts the second parameter of the electronic equipment.
CN201310342264.0A 2013-08-07 2013-08-07 A kind of information processing method and electronic equipment Active CN104345876B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310342264.0A CN104345876B (en) 2013-08-07 2013-08-07 A kind of information processing method and electronic equipment
US14/286,066 US9607571B2 (en) 2013-08-07 2014-05-23 Information processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310342264.0A CN104345876B (en) 2013-08-07 2013-08-07 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104345876A CN104345876A (en) 2015-02-11
CN104345876B true CN104345876B (en) 2017-07-25

Family

ID=52501685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310342264.0A Active CN104345876B (en) 2013-08-07 2013-08-07 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104345876B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094616B (en) * 2015-08-12 2019-02-12 小米科技有限责任公司 Touch screen control method and device
US20160005362A1 (en) * 2015-09-08 2016-01-07 Mediatek Inc. Determination Of Optical Condition And Adjustment Of Display
CN106558295A (en) * 2015-09-25 2017-04-05 小米科技有限责任公司 Screen brightness regulation method and device
CN105425905B (en) * 2015-10-30 2019-01-15 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107396591B (en) * 2016-05-16 2020-08-07 南京中兴新软件有限责任公司 Heat dissipation method and terminal
CN107240380A (en) * 2017-07-19 2017-10-10 广州捷宝电子科技股份有限公司 Diaphragm, LCD screen and vision-control method
CN107607131B (en) * 2017-09-22 2020-09-25 联想(北京)有限公司 Electronic equipment and information processing method
CN111131612B (en) 2019-12-20 2021-05-07 惠州Tcl移动通信有限公司 Screen color temperature control method and device, storage medium and mobile terminal
CN112468656A (en) * 2020-11-17 2021-03-09 惠州Tcl移动通信有限公司 Method, device and equipment for controlling brightness of display screen and computer readable storage medium
CN113241044B (en) * 2021-05-18 2022-08-05 北京小米移动软件有限公司 Screen brightness adjusting method, device, equipment and storage medium
CN113268097A (en) * 2021-05-24 2021-08-17 大气候物联网科技(广州)有限公司 Agricultural automation linkage control system and control method thereof
CN114495862A (en) * 2022-01-24 2022-05-13 上海闻泰信息技术有限公司 Method for acquiring ambient light sensitivity value, electronic device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866774A (en) * 2012-08-22 2013-01-09 华为终端有限公司 Electronic equipment alarm clock control method and electronic equipment
CN103019384A (en) * 2012-12-21 2013-04-03 广东欧珀移动通信有限公司 Method and device for adjusting display interface on terminal
CN103218990A (en) * 2013-03-29 2013-07-24 深圳市金立通信设备有限公司 Method for adjusting screen brightness and terminal
CN103218035A (en) * 2012-01-19 2013-07-24 联想(北京)有限公司 Gesture input method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006093074A1 (en) * 2005-03-01 2006-09-08 Matsushita Electric Industrial Co., Ltd. Electronic display medium and screen display control method used for electronic display medium
US8225229B2 (en) * 2006-11-09 2012-07-17 Sony Mobile Communications Ab Adjusting display brightness and/or refresh rates based on eye tracking

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218035A (en) * 2012-01-19 2013-07-24 联想(北京)有限公司 Gesture input method and electronic equipment
CN102866774A (en) * 2012-08-22 2013-01-09 华为终端有限公司 Electronic equipment alarm clock control method and electronic equipment
CN103019384A (en) * 2012-12-21 2013-04-03 广东欧珀移动通信有限公司 Method and device for adjusting display interface on terminal
CN103218990A (en) * 2013-03-29 2013-07-24 深圳市金立通信设备有限公司 Method for adjusting screen brightness and terminal

Also Published As

Publication number Publication date
CN104345876A (en) 2015-02-11

Similar Documents

Publication Publication Date Title
CN104345876B (en) A kind of information processing method and electronic equipment
CN109191410B (en) Face image fusion method and device and storage medium
CN110472145A (en) A kind of content recommendation method and electronic equipment
CN106030665B (en) Realistic colour is created for the virtual objects in augmented reality environment
CN107835367A (en) A kind of image processing method, device and mobile terminal
CN104902088B (en) Mobile terminal adjusts the method and device of screen intensity
CN107844730A (en) A kind of graphic code scan method and mobile terminal
CN108038836A (en) A kind of image processing method, device and mobile terminal
CN111092748B (en) Alarm rule setting method, device, equipment and storage medium for Internet of things equipment
CN108989678A (en) A kind of image processing method, mobile terminal
CN107895352A (en) A kind of image processing method and mobile terminal
CN108492246A (en) A kind of image processing method, device and mobile terminal
CN109238460A (en) A kind of method and terminal device obtaining ambient light intensity
CN108427873A (en) A kind of biological feather recognition method and mobile terminal
CN110072012A (en) A kind of based reminding method and mobile terminal for screen state switching
CN109407920A (en) A kind of Status icons display methods, Status icons processing method and relevant device
CN108093306A (en) A kind of barrage display methods and mobile terminal
CN108319329A (en) A kind of display control method, flexible screen terminal and computer readable storage medium
US20210092472A1 (en) Image processing method and device therefor
CN104574452B (en) Method and device for generating window background
CN109413264A (en) A kind of background picture method of adjustment and terminal device
CN104376834A (en) Brightness adjusting method and electronic device
CN109388456A (en) A kind of head portrait selection method and mobile terminal
CN104869254B (en) Mobile terminal and its call reminding system and method
CN108174081A (en) A kind of image pickup method and mobile terminal

Legal Events

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