The content of the invention
It is a primary object of the present invention to propose a kind of flashlight brightness adjusting method and terminal, computer-readable storage mediumMatter, it is intended to which the flashlight application function that solves the problems, such as existing smart mobile phone is single, power consumption is larger.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of flashlight brightness adjusting method, the sideMethod includes step:
Touch control operation of the user to terminal display screen is received, and the touch control operation of terminal display screen is opened according to the userOpen the flashlight application of terminal;
Display brightness regulation progress bar and brightness regulation mode menu item on the display interface of flashlight application;
Receive selection operation of the user to the brightness regulation mode menu item;
According to the brightness regulation pattern of selection, the progress value of the brightness regulation progress bar is adjusted, and according to the brightnessThe progress value for adjusting progress bar adjusts the brightness value of the flashlight application.
Optionally, the touch control operation includes touch operation or every empty gesture operation.
Optionally, display brightness regulation progress bar and the brightness regulation mould on the display interface of flashlight applicationFormula menu option includes step:
Flashlight application icon is shown on the display interface of flashlight application;
User is received to operate the long-press of the flashlight application icon;
The long-press of the flashlight application icon is operated according to the user, in the display interface of flashlight applicationUpper display brightness regulation progress bar and brightness regulation mode menu item.
Optionally, the brightness regulation mode menu item includes manual adjustment mode and automatically adjusts pattern.
Optionally, if the brightness regulation pattern of selection is manual adjustment mode, the brightness of the user to display is receivedThe regulation operation of progress bar is adjusted, is operated according to regulation of the user to the brightness regulation progress bar of display, adjusts instituteState the progress value of brightness regulation progress bar;
If the brightness regulation pattern of selection obtains the illumination brightness value of terminal surrounding environment, root to automatically adjust patternAccording to the illumination brightness value of the terminal surrounding environment, the progress value of the brightness regulation progress bar is adjusted.
Optionally, if the brightness regulation pattern of selection is automatically adjusts pattern, the illumination for obtaining terminal surrounding environment is brightAngle value and color data, according to the illumination brightness value and color data of the terminal surrounding environment, adjust the brightness regulation and enterThe progress value of bar is spent, and brightness value and the face that the flashlight is applied are adjusted according to the progress value of the brightness regulation progress barColor.
Optionally, the regulation operation includes touch operation or every empty gesture operation.
Optionally, the illumination brightness value for obtaining terminal surrounding environment includes step:
Obtain multiple illumination brightness values of the terminal surrounding environment in preset time period;
The average value of multiple illumination brightness values in the preset time period is calculated, and using the average value as the endHold the illumination brightness value of surrounding environment.
In addition, to achieve the above object, second aspect of the embodiment of the present invention provides a kind of terminal, the terminal includes:DepositReservoir, processor and the flashlight brightness regulation program that is stored on the memory and can run on the processor, instituteThe flashlight brightness adjusting method described in first aspect is realized when stating flashlight brightness regulation program by the computing deviceStep.
Furthermore to achieve the above object, the third aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, instituteState and flashlight brightness regulation program is stored with computer-readable recording medium, the flashlight brightness regulation program is by processorThe step of flashlight brightness adjusting method described in first aspect is realized during execution.
A kind of flashlight brightness adjusting method and terminal, computer-readable recording medium provided in an embodiment of the present invention, lead toDisplay brightness regulation progress bar and brightness regulation mode menu item on the display interface of flashlight application are crossed, is selected according to userThe brightness regulation pattern selected, adjust the progress value of brightness regulation progress bar and the brightness value of flashlight application;Realize to torchCylinder brightness regulation, can effectively reduce electric quantity consumption in the case where not influenceing illumination zone, lift Consumer's Experience.
Embodiment
The present invention is more fully described hereinafter with reference to accompanying drawing.In various figures, identical element is using similar attachedIcon is remembered to represent.For the sake of clarity, the various pieces in accompanying drawing are not necessarily to scale.In addition, it may not show in figureGo out some known parts.
It describe hereinafter many specific details of the present invention, such as the structure of device, material, size, processing workSkill and technology, to be more clearly understood that the present invention.But just as the skilled person will understand, it can not pressThe present invention is realized according to these specific details.
First embodiment
As shown in figure 1, first embodiment of the invention provides a kind of flashlight brightness adjusting method, methods described includes stepSuddenly:
11st, touch control operation of the user to terminal display screen is received, and the touch-control of terminal display screen is grasped according to the userMake the flashlight application of unlatching terminal;
In the present embodiment, the touch control operation includes touch operation or every empty gesture operation.It is non-every empty gesture operationTouch operation, i.e., the gesture operation above terminal display screen.
12nd, display brightness regulation progress bar and the choosing of brightness regulation mode menu on the display interface of flashlight application;
In the present embodiment, display brightness regulation progress bar and the brightness on the display interface of flashlight applicationShaping modes menu option includes step (accompanying drawing is not shown):
Flashlight application icon is shown on the display interface of flashlight application;
User is received to operate the long-press of the flashlight application icon;
The long-press of the flashlight application icon is operated according to the user, in the display interface of flashlight applicationUpper display brightness regulation progress bar and brightness regulation mode menu item.
13rd, selection operation of the user to the brightness regulation mode menu item is received;
14th, according to the brightness regulation pattern of selection, the progress value of the brightness regulation progress bar is adjusted, and according to described brightThe progress value of degree regulation progress bar adjusts the brightness value of the flashlight application.
In the present embodiment, the brightness regulation mode menu item includes manual adjustment mode and automatically adjusts pattern.
If the brightness regulation pattern of selection is manual adjustment mode, the brightness regulation progress of the user to display is receivedThe regulation operation of bar, is operated according to regulation of the user to the brightness regulation progress bar of display, is adjusted the brightness and is adjustedSave the progress value of progress bar;
In the present embodiment, the regulation operation includes touch operation or every empty gesture operation.
If the brightness regulation pattern of selection obtains the illumination brightness value of terminal surrounding environment, root to automatically adjust patternAccording to the illumination brightness value of the terminal surrounding environment, the progress value of the brightness regulation progress bar is adjusted.
In the present embodiment, the illumination brightness value for obtaining terminal surrounding environment includes step:
Obtain multiple illumination brightness values of the terminal surrounding environment in preset time period;
The average value of multiple illumination brightness values in the preset time period is calculated, and using the average value as the endHold the illumination brightness value of surrounding environment.
In other embodiments, if the brightness regulation pattern of selection obtains terminal surrounding ring to automatically adjust patternThe illumination brightness value and color data in border, according to the illumination brightness value and color data of the terminal surrounding environment, described in regulationThe progress value of brightness regulation progress bar, and the bright of the flashlight application is adjusted according to the progress value of the brightness regulation progress barAngle value and color.
For a better understanding of the present invention, illustrated below by taking smart mobile phone as an example:
Refer to shown in Fig. 3,30 in Fig. 3 are smart mobile phone, 31 for smart mobile phone flashlight apply opened after,In the display interface of the flashlight application of the display screen display of smart mobile phone, 32 be flashlight application icon, and 33 be that brightness is adjustedProgress bar is saved, 34 be brightness regulation mode menu item, and with reference to shown in figure 4, brightness regulation mode menu item includes adjusting manuallySection pattern and automatically adjust two options of pattern.
After flashlight application is opened, flashlight application icon 32 is shown on the display interface 31 of flashlight application.32 long-press of flashlight application icon is after 2~3 seconds, display brightness regulation progress bar 33 and brightness regulation mode menu item34。
If selecting manual adjustment mode in brightness regulation mode menu item 34, user can drag brightness regulation progress up and downBar 33, the numerical value of progress bar are changed with the dragging up and down of user, such as:When user's dragging as depicted 50, tableShow and shown the 50% of the maximum brightness value applied according to flashlight.
It is envisioned that obtain, the numerical value of progress bar can be the percentage of the maximum brightness value of flashlight application, grade(such as less than 20%, the 2 of the maximum brightness value of 1 expression flashlight application represent the maximum brightness value of flashlights applicationMore than 20% and less than 40% ...), color change (such as black represent flashlight application maximum brightness value 20% withUnder, more than the 80% of the red maximum brightness value for representing flashlight application) etc..
If automatically adjusting pattern in the selection of brightness regulation mode menu item 34, smart mobile phone is obtained by optical sensorThe illumination brightness value of smart mobile phone surrounding environment, according to the illumination brightness value of smart mobile phone surrounding environment, automatic regulating lightness is adjustedThe progress value of progress bar is saved, and then adjusts the brightness value of flashlight application.
In order to improve the degree of accuracy of the illumination brightness value of smart mobile phone surrounding environment, smart mobile phone in 3~10 seconds can be obtainedMultiple illumination brightness values of surrounding environment;The average value of multiple illumination brightness values in 3~10 seconds is calculated, and average value is madeFor the illumination brightness value of smart mobile phone surrounding environment.
Smart mobile phone can also obtain the color data of smart mobile phone surrounding environment by color sensor, be adjusted according to brightnessSave the brightness value and color of the progress value regulation flashlight application of progress bar.
Concrete implementation process, only it can be realized by a brightness regulation progress bar, such as:When the numerical value of progress barFor percentages when, percentages represent flashlight application maximum brightness value percentage, 10%~40% percentageIt is green than the color that numerical value represents flashlight application, 40%~70% percentages represent that the color of flashlight application isBlueness, more than 80% percentages represent that the color of flashlight application is red.
It can also be realized by two regulation progress bars, a regulation progress bar expression brightness regulation progress bar, oneAdjust progress bar and represent color adaptation progress bar.
A kind of flashlight brightness adjusting method provided in an embodiment of the present invention, by the display interface applied in flashlightDisplay brightness adjusts progress bar and brightness regulation mode menu item, the brightness regulation pattern selected according to user, adjusts brightnessAdjust the progress value of progress bar and the brightness value of flashlight application;Flashlight brightness regulation is realized, can not influence to shineElectric quantity consumption is effectively reduced in the case of bright scope, lifts Consumer's Experience.
Second embodiment
Reference picture 2, Fig. 2 provide a kind of terminal for second embodiment of the invention, and the terminal 20 includes:Memory 21, placeManage device 22 and be stored in the flashlight brightness regulation program that can be run on the memory 21 and on the processor 22, it is describedThe step of flashlight brightness adjusting method is realized when flashlight brightness regulation program is by the computing device.
Specifically, the flashlight brightness regulation program is used to realize following flashlight brightness during the computing deviceThe step of adjusting method:
Touch control operation of the user to terminal display screen is received, and the touch control operation of terminal display screen is opened according to the userOpen the flashlight application of terminal;
Display brightness regulation progress bar and brightness regulation mode menu item on the display interface of flashlight application;
Receive selection operation of the user to the brightness regulation mode menu item;
According to the brightness regulation pattern of selection, the progress value of the brightness regulation progress bar is adjusted, and according to the brightnessThe progress value for adjusting progress bar adjusts the brightness value of the flashlight application.
In the present embodiment, the flashlight brightness regulation program by the computing device when be additionally operable to realize to set aboutThe step of torch brightness adjusting method:
Flashlight application icon is shown on the display interface of flashlight application;
User is received to operate the long-press of the flashlight application icon;
The long-press of the flashlight application icon is operated according to the user, in the display interface of flashlight applicationUpper display brightness regulation progress bar and brightness regulation mode menu item.
In the present embodiment, the flashlight brightness regulation program by the computing device when be additionally operable to realize to set aboutThe step of torch brightness adjusting method:
If the brightness regulation pattern of selection is manual adjustment mode, the brightness regulation progress of the user to display is receivedThe regulation operation of bar, is operated according to regulation of the user to the brightness regulation progress bar of display, is adjusted the brightness and is adjustedSave the progress value of progress bar;
If the brightness regulation pattern of selection obtains the illumination brightness value of terminal surrounding environment, root to automatically adjust patternAccording to the illumination brightness value of the terminal surrounding environment, the progress value of the brightness regulation progress bar is adjusted.
In the present embodiment, the flashlight brightness regulation program by the computing device when be additionally operable to realize to set aboutThe step of torch brightness adjusting method:
If the brightness regulation pattern of selection obtains the illumination brightness value and face of terminal surrounding environment to automatically adjust patternChromatic number evidence, according to the illumination brightness value and color data of the terminal surrounding environment, adjust entering for the brightness regulation progress barAngle value, and brightness value and the color that the flashlight is applied are adjusted according to the progress value of the brightness regulation progress bar.
In the present embodiment, the flashlight brightness regulation program by the computing device when be additionally operable to realize to set aboutThe step of torch brightness adjusting method:
Obtain multiple illumination brightness values of the terminal surrounding environment in preset time period;
The average value of multiple illumination brightness values in the preset time period is calculated, and using the average value as the endHold the illumination brightness value of surrounding environment.
For a better understanding of the present invention, illustrated below by taking smart mobile phone as an example:
Refer to shown in Fig. 3,30 in Fig. 3 are smart mobile phone, 31 for smart mobile phone flashlight apply opened after,In the display interface of the flashlight application of the display screen display of smart mobile phone, 32 be flashlight application icon, and 33 be that brightness is adjustedProgress bar is saved, 34 be brightness regulation mode menu item, and with reference to shown in figure 4, brightness regulation mode menu item includes adjusting manuallySection pattern and automatically adjust two options of pattern.
After flashlight application is opened, flashlight application icon 32 is shown on the display interface 31 of flashlight application.32 long-press of flashlight application icon is after 2~3 seconds, display brightness regulation progress bar 33 and brightness regulation mode menu item34。
If selecting manual adjustment mode in brightness regulation mode menu item 34, user can drag brightness regulation progress up and downBar 33, the numerical value of progress bar are changed with the dragging up and down of user, such as:When user's dragging as depicted 50, tableShow and shown the 50% of the maximum brightness value applied according to flashlight.
It is envisioned that obtain, the numerical value of progress bar can be the percentage of the maximum brightness value of flashlight application, grade(such as less than 20%, the 2 of the maximum brightness value of 1 expression flashlight application represent the maximum brightness value of flashlights applicationMore than 20% and less than 40% ...), color change (such as black represent flashlight application maximum brightness value 20% withUnder, more than the 80% of the red maximum brightness value for representing flashlight application) etc..
If automatically adjusting pattern in the selection of brightness regulation mode menu item 34, smart mobile phone is obtained by optical sensorThe illumination brightness value of smart mobile phone surrounding environment, according to the illumination brightness value of smart mobile phone surrounding environment, automatic regulating lightness is adjustedThe progress value of progress bar is saved, and then adjusts the brightness value of flashlight application.
In order to improve the degree of accuracy of the illumination brightness value of smart mobile phone surrounding environment, smart mobile phone in 3~10 seconds can be obtainedMultiple illumination brightness values of surrounding environment;The average value of multiple illumination brightness values in 3~10 seconds is calculated, and average value is madeFor the illumination brightness value of smart mobile phone surrounding environment.
Smart mobile phone can also obtain the color data of smart mobile phone surrounding environment by color sensor, be adjusted according to brightnessSave the brightness value and color of the progress value regulation flashlight application of progress bar.
Concrete implementation process, only it can be realized by a brightness regulation progress bar, such as:When the numerical value of progress barFor percentages when, percentages represent flashlight application maximum brightness value percentage, 10%~40% percentageIt is green than the color that numerical value represents flashlight application, 40%~70% percentages represent that the color of flashlight application isBlueness, more than 80% percentages represent that the color of flashlight application is red.
It can also be realized by two regulation progress bars, a regulation progress bar expression brightness regulation progress bar, oneAdjust progress bar and represent color adaptation progress bar.
A kind of flashlight brightness regulation terminal provided in an embodiment of the present invention, by the display interface applied in flashlightDisplay brightness adjusts progress bar and brightness regulation mode menu item, the brightness regulation pattern selected according to user, adjusts brightnessAdjust the progress value of progress bar and the brightness value of flashlight application;Flashlight brightness regulation is realized, can not influence to shineElectric quantity consumption is effectively reduced in the case of bright scope, lifts Consumer's Experience.
3rd embodiment
Third embodiment of the invention provides a kind of computer-readable recording medium, is deposited on the computer-readable recording mediumFlashlight brightness regulation program is contained, the flashlight brightness regulation program realizes flashlight brightness regulation when being executed by processorThe step of method.
Specifically, the flashlight brightness regulation program is used to realize following flashlight brightness during the computing deviceThe step of adjusting method:
Touch control operation of the user to terminal display screen is received, and the touch control operation of terminal display screen is opened according to the userOpen the flashlight application of terminal;
Display brightness regulation progress bar and brightness regulation mode menu item on the display interface of flashlight application;
Receive selection operation of the user to the brightness regulation mode menu item;
According to the brightness regulation pattern of selection, the progress value of the brightness regulation progress bar is adjusted, and according to the brightnessThe progress value for adjusting progress bar adjusts the brightness value of the flashlight application.
In the present embodiment, the flashlight brightness regulation program by the computing device when be additionally operable to realize to set aboutThe step of torch brightness adjusting method:
Flashlight application icon is shown on the display interface of flashlight application;
User is received to operate the long-press of the flashlight application icon;
The long-press of the flashlight application icon is operated according to the user, in the display interface of flashlight applicationUpper display brightness regulation progress bar and brightness regulation mode menu item.
In the present embodiment, the flashlight brightness regulation program by the computing device when be additionally operable to realize to set aboutThe step of torch brightness adjusting method:
If the brightness regulation pattern of selection is manual adjustment mode, the brightness regulation progress of the user to display is receivedThe regulation operation of bar, is operated according to regulation of the user to the brightness regulation progress bar of display, is adjusted the brightness and is adjustedSave the progress value of progress bar;
If the brightness regulation pattern of selection obtains the illumination brightness value of terminal surrounding environment, root to automatically adjust patternAccording to the illumination brightness value of the terminal surrounding environment, the progress value of the brightness regulation progress bar is adjusted.
In the present embodiment, the flashlight brightness regulation program by the computing device when be additionally operable to realize to set aboutThe step of torch brightness adjusting method:
If the brightness regulation pattern of selection obtains the illumination brightness value and face of terminal surrounding environment to automatically adjust patternChromatic number evidence, according to the illumination brightness value and color data of the terminal surrounding environment, adjust entering for the brightness regulation progress barAngle value, and brightness value and the color that the flashlight is applied are adjusted according to the progress value of the brightness regulation progress bar.
In the present embodiment, the flashlight brightness regulation program by the computing device when be additionally operable to realize to set aboutThe step of torch brightness adjusting method:
Obtain multiple illumination brightness values of the terminal surrounding environment in preset time period;
The average value of multiple illumination brightness values in the preset time period is calculated, and using the average value as the endHold the illumination brightness value of surrounding environment.
Computer-readable recording medium provided in an embodiment of the present invention, by being shown on the display interface applied in flashlightBrightness regulation progress bar and brightness regulation mode menu item, the brightness regulation pattern selected according to user, adjust brightness regulationThe brightness value of progress value and the flashlight application of progress bar;Flashlight brightness regulation is realized, can not influence to illuminate modelElectric quantity consumption is effectively reduced in the case of enclosing, lifts Consumer's Experience.
It should be noted that herein, such as first and second or the like relational terms are used merely to a realityBody or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operationIn any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended toNonexcludability includes, so that process, method, article or equipment including a series of elements not only will including thoseElement, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to includeIntrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded thatOther identical element also be present in process, method, article or equipment including the key element.
According to embodiments of the invention as described above, these embodiments do not have all details of detailed descriptionthe, not yetIt is only described specific embodiment to limit the invention.Obviously, as described above, can make many modifications and variations.This explanationBook is chosen and specifically describes these embodiments, is in order to preferably explain the principle and practical application of the present invention, so that affiliatedTechnical field technical staff can be used using modification of the invention and on the basis of the present invention well.The present invention is only by rightThe limitation of claim and its four corner and equivalent.