A kind of energy-conservation and guard method and device of mobile device cameraTechnical field
The present invention relates to energy-conservation and guard method and the device of a kind of mobile terminal technology, particularly a kind of mobile device camera.
Background technology
The people of the world today are advocating energy-conservation importance, thereby increasing electronic product all attempts incorporating energy-conservation theory in design.For example Chinese publication CN103294171A has proposed a kind of electricity saving method and electricity saver of mobile terminal, although it has mentioned a kind of whether operating application program and functional module in Preset Time, with this, determine whether maloperation, if maloperation is closed.Although the method power saving, but sometimes user is in operating function and because of temporarily not operation of something, if the words of being closed or exiting, can make user's obliterated data and cause damage, for example,, when user is when waiting for that the best opportunity takes pictures, while screen not being carried out to any operation because waiting for the of long duration of best opportunity, and be judged as maloperation bolt down procedure, cause user to restart the program of taking pictures and cause unnecessary trouble.And it is well-known, camera is that mobile device kwh loss is the fastest when live preview data, and due to the use of camera for a long time, can cause the temperature of camera to raise, the working temperature of general camera is between-10 degrees Celsius to 50 degrees Celsius, and surpass after this scope, likely cause camera fault or temporarily malfunctioning.
Summary of the invention
The present invention, for addressing the above problem, provides a kind of energy-conservation and guard method and device of mobile device camera, and it is intended to reduce the meaningless loss of mobile device electric weight, extends the cruising time of mobile device, protection camera.
One of object of the present invention is to provide a kind of energy-conservation and guard method of mobile device camera, it is characterized in that, comprises the following steps:
10. start camera;
20. start data preview and start timing;
Whether 30. detect touch screen, if touch screen, further whether detection clicks ESC Escape or take pictures key or video recording key, if it is finish, otherwise timing is made zero and restarted timing; If touch screen not, cumulative time perform step 40;
Whether 40. cumulative times of judgement exceeded power saving time range, if surpass the power saving time, entered battery saving mode and made screen dimmed and close camera, and perform step 50; Otherwise return to step 30;
Whether 50. detect touch screen, if touch screen is not waited for certain hour and continued and carry out this step, otherwise performs step 60;
60. screens brighten and restart camera, and return to step 20.
Preferably, the cumulative time in described step 30 is mainly the mistiming of calculating from last touch screen to current time.
Preferably, the power saving time in described step 40 can preset as required or adjust.
Two of object of the present invention is to provide a kind of energy-conservation and protective device of mobile device camera, it is characterized in that, it comprises:
Screen touch detection module, the touch screen for detection of whether;
Timing module, for calculating last touch screen to the mistiming of current time;
Power saving module, exceeds power saving for the mistiming of calculating at timing module and during the time, enters battery saving mode and make screen dimmed and close camera;
Described timing module starts timing when starting camera and starting data preview, if screen touch detection module detects the operation of touch screen in timing course, timing is made zero and restarted timing; If described screen detection module detects touch screen and makes screen brighten and restart camera under battery saving mode, to restart data preview.
Preferably, if described screen detection module detects touch screen and clicks ESC Escape or take pictures key or video recording key, carry out corresponding exiting or taking pictures or recording function.
Preferably, the power saving time of described power saving module can preset as required or adjust.
The invention has the beneficial effects as follows:
Energy-conservation and guard method and the device of a kind of mobile device camera of the present invention; whether it by detecting touch screen and carrying out timing; if the cumulative time exceeds the power saving time and enters battery saving mode and make screen dimmed to reduce power consumption; and close camera with protection camera; until touch screen detected, just exit battery saving mode and screen is brightened and restart camera to enter data preview; without restarting the program of taking pictures, more convenient operation.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the general flow chart of the energy-conservation and guard method of a kind of mobile device camera of the present invention.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearer, clear, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, the energy-conservation and guard method of a kind of mobile device camera of the present invention, comprises the following steps:
10. start camera;
20. start data preview and start timing;
Whether 30. detect touch screen, if touch screen, further whether detection clicks ESC Escape or take pictures key or video recording key, if it is finish, otherwise timing is made zero and restarted timing; If touch screen not, cumulative time perform step 40; This cumulative time is mainly the mistiming of calculating from last touch screen to current time;
Whether 40. cumulative times of judgement exceeded power saving time range, the power saving time can preset as required or adjust, can be from 1 minute to the longer time, in order to reach the method for power saving and protection camera, the present invention is preferably 2 minutes, if surpass 2 minutes power saving time, enter battery saving mode and make screen dimmed and close camera, and perform step 50; Otherwise return to step 30;
Whether 50. detect touch screen, if touch screen is not waited for certain hour and continued and carry out this step, otherwise performs step 60;
60. screens brighten and restart camera, and return to step 20.
Above-mentioned steps of the present invention needs only once starting when camera carries out data preview and starts, and only user, quits a program, clicks to take pictures or start video recording and just close.
In addition, the present invention also provides a kind of energy-conservation and protective device of mobile device camera, and it comprises:
Screen touch detection module, the touch screen for detection of whether;
Timing module, for calculating last touch screen to the mistiming of current time;
Power saving module, exceeds power saving for the mistiming of calculating at timing module and during the time, enters battery saving mode and make screen dimmed and close camera; This power saving time can preset as required or adjust;
Described timing module starts timing when starting camera and starting data preview, if screen touch detection module detects the operation of touch screen in timing course, timing is made zero and restarted timing; If described screen detection module detects touch screen and makes screen brighten and restart camera under battery saving mode, to restart data preview.
Wherein, if described screen detection module detects touch screen and clicks ESC Escape or take pictures key or video recording key, carry out corresponding exiting or taking pictures or recording function.
Whether the present invention by detecting touch screen and carrying out timing; if the cumulative time exceeds the power saving time and enters battery saving mode and make screen dimmed to reduce power consumption; and close camera with protection camera; until touch screen detected, just exit battery saving mode and screen is brightened and restart camera to enter data preview; without restarting the program of taking pictures, more convenient operation.
Above-mentioned explanation illustrates and has described the preferred embodiments of the present invention, as front, be to be understood that the present invention is not limited to disclosed form herein, should not regard the eliminating to other embodiment as, and can be used for various other combinations, modification and environment, and can, in invention contemplated scope herein, by technology or the knowledge of above-mentioned instruction or association area, change.And the change that those skilled in the art carry out and variation do not depart from the spirit and scope of the present invention, all should be in the protection domain of claims of the present invention.