A kind of method and smart machine for controlling smart machine brightnessTechnical field
The invention belongs to information processing and the technical field of mobile terminal, and in particular to a kind of control smart machine brightnessMethod and smart machine.
Background technology
Existing smart machine the control technology of screen and flash lamp is used primarily in the daytime smart machine operation interface andShooting uses.
User is in the case of night gauge without light source, when the screen or camera flash that need opening smart machine provideWhen illumination or adjustment brightness, it is necessary first to smart machine is found in night and opens screen of intelligent device, then operation intelligenceDevice software system interface realizes brightness adjustment and either on or off camera flash, comparatively laborious.Particularly slept at nightDuring dormancy, user needs to get up and find smart machine in the dark, very inconvenient.And eyes look at intelligent set after getting up in the night to urinateStandby screen light operational comfort is poor.
The content of the invention
In order to solve above mentioned problem existing for prior art, the invention provides one kind control screen of intelligent device and shootingThe bright method of head flash lamp and smart machine.
The technical solution adopted in the present invention is:
A kind of method for controlling smart machine brightness, comprises the following steps:
S11, detection data are obtained by the microphone of smart machine or the sensor of smart machine;
S12, it is predefined to judge whether the detection data match more than default threshold value or the detection dataRecognition mode;
If not matched less than or equal to default threshold value and with predefined recognition mode, S11 is returned;
If being matched more than default threshold value or with predefined recognition mode, sent out to the luminaire of smart machineSend regulation luminance instructions;
S13, the luminaire are adjusted according to the regulation luminance instructions.
Preferably, the luminaire is display screen and/or flash lamp.
Preferably, in S11, the detection data obtained by the microphone of smart machine are voice data;When the soundData are more than default threshold value or matched with predefined recognition mode, then send regulation to the luminaire of smart machineLuminance instructions.
Preferably, in S11, the sensor includes range sensor, holding power transducer, gravity accelerometer and topOne or more in spiral shell instrument.
Preferably, when the sensor is range sensor, then the detection data obtained are range data;When the distanceData are more than default threshold value or matched with predefined recognition mode, then send regulation to the luminaire of smart machineLuminance instructions.
Preferably, when the sensor is holding power transducer, then the detection data obtained are grip data;When the gripData are more than default threshold value or matched with predefined recognition mode, then send regulation to the luminaire of smart machineLuminance instructions.
Preferably, when the sensor is gravity accelerometer or gyroscope, then the detection data obtained are intelligenceDevice location converts data;When the smart machine evolution data be more than default threshold value or with predefined recognition modeMatched, then send regulation luminance instructions to the luminaire of smart machine.
Preferably, the smart machine is smart mobile phone.
A kind of smart machine, the luminaire of the smart machine are realized bright using the method for above-mentioned control smart machine brightnessThe regulation of degree.
Preferably, the luminaire is display screen and/or flash lamp.
Beneficial effects of the present invention are:
Present invention is mainly applied to night using smart machine illumination usage scenario, using a variety of more easily controlling partiesMethod, optimize and improve the illumination of night smart machine.
By the present invention, user can not have to get up during night's rest can be (such as to be hit by sound at a distanceApplause sound or phonetic order) either on or off screen of intelligent device and flash lamp be bright, look at intelligence straight without eyes in the darkEnergy device screen, (such as palm is close to smart machine) is answered only by simple smart machine distance perspective, grip sensing (such as withPower holds smart machine) or smart machine physics position chanP (such as shaking smart machine) can intelligently be set with either on or offFor screen light and flash light and adjust brightness.Substantially increase ease for use that night illuminated using smart machine and comfortableDegree.
Brief description of the drawings
Fig. 1 is the overall flow schematic diagram of the present invention;
Fig. 2 is the schematic flow sheet that the present invention realizes brightness regulation using mobile phone as smart machine.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with accompanying drawing, the present invention is enteredRow is further described.It should be appreciated that embodiment described herein is not used to only to explain the present inventionLimit the present invention.
The present invention is different from controlling screen and flash of light lamp switch and brightness mode and application purpose traditional daytime.Night adoptsWith sound, distance perspective is answered, and these are more simple with smart machine postural change and do not have to the mode for watching screen attentively for grip sensingControl, it is larger to improve intelligent, ease for use and comfortableness.Smart machine uses smart mobile phone in the present embodiment, defaultThe scope of threshold value be positive integer to the arbitrary value between negative integer, can be adjusted according to specific detection type;In this implementationIn example, all regulation luminance instructions include the light and shade of adjustment luminaire brightness and carry out on/off to luminaire.Due to the title call disunity of the flash lamp for terminal and light compensating lamp in the prior art, so described in the present embodimentFlash lamp can use light compensating lamp to replace.
A kind of method of control smart machine brightness as shown in Figure 1-2, comprises the following steps:
S11, detection data are obtained by the microphone of smart machine or the sensor of smart machine;
S12, judge detect whether data are more than default threshold value or whether detection data match predefined recognition mode;
If not matched less than or equal to default threshold value and with predefined recognition mode, S11 is returned;
If being matched more than default threshold value or with predefined recognition mode, sent out to the luminaire of smart machineSend regulation luminance instructions;
S13, luminaire are adjusted according to regulation luminance instructions.
Luminaire is display screen and/or flash lamp.
In S11, the detection data obtained by the microphone of smart machine are voice data;When voice data is more than in advanceIf threshold value or matched with predefined recognition mode, then to smart machine luminaire send regulation luminance instructions,The brightness of opening/closing screen of intelligent device or camera flash are beaten by adjusting luminance instructions and adjusts brightness.
In S11, sensor is included in range sensor, holding power transducer, gravity accelerometer and gyroscopeIt is one or more.
When sensor is range sensor, then the detection data obtained are range data;When range data is more than defaultThreshold value is matched with predefined recognition mode, then sends regulation luminance instructions to the luminaire of smart machine, pass throughRegulation luminance instructions beat the brightness of opening/closing screen of intelligent device or camera flash and adjust brightness.
When sensor is holding power transducer, then the detection data obtained are grip data;When grip data are more than defaultThreshold value is matched with predefined recognition mode, then sends regulation luminance instructions to the luminaire of smart machine, pass throughRegulation luminance instructions beat the brightness of opening/closing screen of intelligent device or camera flash and adjust brightness.
When sensor is gravity accelerometer or gyroscope, then the detection data obtained are smart machine evolutionData;When smart machine evolution data are more than default threshold value or are matched with predefined recognition mode, then to intelligenceCan equipment luminaire send regulation luminance instructions, by adjust luminance instructions beat the brightness of opening/closing screen of intelligent device orPerson's camera flash and adjust brightness.
A kind of smart machine, the luminaire of the smart machine are realized bright using the method for above-mentioned control smart machine brightnessThe regulation of degree, luminaire are display screen and/or flash lamp.
Can not have to get up by user of the present invention can be so that by sound, (such as clap the hands sound or voice are ordered at a distanceMaking) either on or off screen of intelligent device and flash lamp be bright, look at screen of intelligent device, Jin Jintong straight without eyes in the darkCross simple smart machine distance perspective and answer (such as palm is close to smart machine), grip sensing (such as firmly hold smart machine) orPerson's smart machine physics position chanP (such as shaking smart machine) can be with either on or off screen of intelligent device light and flash lampLight and adjust brightness.Substantially increase ease for use and comfort level of the night using smart machine illumination.
The present invention is not limited to above-mentioned preferred forms, and anyone can show that other are various under the enlightenment of the present inventionThe product of form, however, make any change in its shape or structure, it is every that there is skill identical or similar to the present applicationArt scheme, is within the scope of the present invention.