Mobile terminal dual camera changing method and deviceTechnical field
The present invention relates to mobile communications device, the more particularly to a kind of changing method and device of mobile terminal dual camera.
Background technology
With flourishing for mobile communication technology, number of users of mobile terminal amount is also increased rapidly, and mobile terminal is easy with itsIt is that daily life brings revolutionary change with property and portability, it is essential during people live nowadays to have becomeMeans of communication.In order to meet user for different shooting purpose requirements, current overwhelming majority mobile terminals are equipped with double shootingsHead:Front camera and rear camera.Wherein front camera and rear camera can be respectively different types of shootingHead combination, the combination of such as narrow viewing angle camera and common view angle camera, or common view angle camera and wide viewing angle camera.User as needed, the camera that can be used with free switching.
However, at present when user needs to carry out camera to be switched, generally require to open camera and take pictures the page, and at thisCamera switching key is chosen on the page, then completes to take pictures again.This just brings two problems:First, user cannot be quickCamera required for unrestricted choice, it is necessary to first open camera and take pictures the page.Secondly, when the mobile terminal screen that user is usedWhen curtain is larger, the switching of one-handed performance camera is very difficult, easily causes the shake of mobile terminal, it is impossible to which shape library etc. is askedTopic so that shooting effect is not good.
The content of the invention
A kind of defect it is a primary object of the present invention to overcome prior art, there is provided mobile terminal dual camera switching sideMethod and switching device.
To reach above-mentioned purpose, the present invention provides a kind of mobile terminal dual camera changing method, comprises the following steps:
S10:Open the camera function of mobile terminal;
S20:Whether detection user performs certain gestures to the mobile terminal, the certain gestures and display screen touch-control andEntity key pressing is unrelated;
S30:If so, then the direction according to the certain gestures starts corresponding camera.
Preferably, the certain gestures are to slide finger or palm, step along the track of specific direction in a non-contact mannerCorresponding camera is started according to the glide direction of finger or palm in rapid S30.
Preferably, the suspension inductive pick-up in step S20 by the mobile terminal display screen detects the user'sCertain gestures.
Preferably, by the particular hand of user described in the light sensors that are arranged in the camera in step S20Gesture.
Preferably, the certain gestures are to perform the shake for reaching parameter preset to the mobile terminal, are led in step S20The certain gestures of user described in the motion sensor senses of the mobile terminal are crossed, according to the inceptive direction of shake in step S30Start corresponding camera.
According to another aspect of the present invention, there is provided a kind of mobile terminal dual camera switching device, for mobile wholeFront camera and rear camera are switched when the camera function at end is opened.Described device includes:Detection module, for detectingThe gesture that user performs to the mobile terminal;Judge module, whether the gesture for judging detection is certain gestures, the spyDetermine gesture unrelated with display screen touch-control and entity key pressing;Camera handover module, for being particular hand when the gesture of detectionDirection during gesture according to the certain gestures starts corresponding camera.
Preferably, the certain gestures are to slide finger or palm, institute along the track of specific direction in a non-contact mannerState camera handover module and corresponding camera is started according to the glide direction of finger or palm.
Preferably, the detection unit is the suspension inductive pick-up of the mobile terminal display screen.
Preferably, the detection unit is the optical sensor located at the camera.
Preferably, the certain gestures are to perform the shake for reaching parameter preset, the detection mould to the mobile terminalBlock is the motion sensor of the mobile terminal, and the camera handover module starts according to the inceptive direction of shake to be taken the photograph accordinglyAs head.
Compared to prior art, mobile terminal dual camera changing method of the invention exists in which can allow user's fast freeSwitched between different cameras, and without carrying out touch operation or to entity to the display screen of mobile terminal by fingerButton carries out pressing operation, and supports user's one-handed performance.The present invention not only improves user's operating experience, and due to need notVirtual switching key, simplifies the page of taking pictures, and increased preview page area of taking pictures.
Brief description of the drawings
Fig. 1 show the mobile terminal dual camera changing method flow chart of one embodiment of the invention;
Fig. 2 show the mobile terminal dual camera switching device block diagram of one embodiment of the invention.
Specific embodiment
To make present disclosure more clear understandable, below in conjunction with Figure of description, present disclosure is made into oneStep explanation.Certainly the invention is not limited in the specific embodiment, the general replacement known to those skilled in the artCover within the scope of the present invention.
Fig. 1 show a kind of mobile terminal dual camera changing method flow chart of the invention, and Fig. 2 show of the inventionA kind of mobile terminal dual camera switching device, the switching device includes detection module 10, judge module 20, camera switching mouldBlock 30.The present invention is described in detail below with reference to Fig. 1 and Fig. 2.
By taking a preferred embodiment of the invention as an example, as shown in figure 1, mobile terminal dual camera changing method includes:
Step S10:Open mobile terminal camera function.
In this step, front camera and rearmounted shooting are configured with mobile terminal such as smart mobile phone, PAD or mobile PCHead.Front camera and rear camera can be respectively the combination of different types of camera, such as narrow viewing angle camera with it is commonVisual angle camera, or common view angle camera and wide viewing angle camera combination.When user opens taking pictures on mobile terminalDuring function, the display screen of mobile terminal shows the page of taking pictures, and automatically opens up any one in front camera and rear camera.It is mobile wholeEnd can open the camera for using when taking pictures last time, it is also possible to open the camera (such as rear camera) of default setting.Such asThe camera that fruit mobile terminal is opened is not that user wants, and user can carry out operations described below to switch out to mobile terminalOpen required camera.
S20:Whether detection user performs certain gestures, the certain gestures and display screen touch-control and entity key to mobile terminalPressing is unrelated.
In this step, while camera function is opened, mobile terminal dual camera switching device is also opened.The deviceDetection module 10 detects user to the gesture operation performed by mobile terminal.Judge module 20 judges the gesture of the user for detectingWhether operation is certain gestures.It should be noted that certain gestures do not include the touch control operation to mobile terminal display screen curtain,The pressing operation to mobile terminal physical button is not included.
In a specific embodiment of the invention, certain gestures in a non-contact manner along specific direction slide finger orPalm.Such as user's finger is streaked every sky from left to right or from right to left in front of the display screen of mobile terminal.If detectionModule 10 does not detect the contactless slip of user's finger, or it is not along from left to right to detect the slip of user's palmOr the direction turned left from the right side, then judge module 20 judges that the gesture of user does not meet certain gestures.Wherein certain gestures can be withIt is stored in advance in a memory module.In one embodiment, can be made using the suspension inductive pick-up of mobile terminal display screen curtainThe non-contact gesture of user is detected for detection module, the identification of user gesture is realized using suspension touching technique.AnotherIn one embodiment, it would however also be possible to employ optical sensor detects the non-contact gesture of user as detection module, using light sensingThe identification of user gesture is realized in the light change of device sensing.Preferably, optical sensor can be the light sensing of any one cameraDevice, user can be carried out in work in work or rear camera according to front camera in the front or the back side of mobile terminalGesture operation, the camera of work is the gesture of detectable user.In another embodiment, it would however also be possible to employ ligh-ranging is sensedDevice detects the non-contact gesture of user as detection module.Judge module 20 judges that the gesture of user meets certain gesturesWhen, camera handover module 30 starts corresponding camera according to the glide direction of user's finger or palm.For example when user's handRefer to that camera handover module 30 opens front camera from left to right when sky is slided, when user's finger is turned left every empty sliding from the right sideWhen dynamic, camera handover module 30 opens rear camera.
In another embodiment of the invention, certain gestures are to perform the shake for reaching parameter preset, example to mobile terminalSuch as hold mobile terminal and rock mobile terminal.If detection module 10 does not detect the shake gesture of user, or userShake gesture is not reaching to parameter preset, then, then judge module 20 judges that the gesture of user does not meet certain gestures.OneIn embodiment, the shake gesture of user can be detected as detection module using the motion sensor of mobile terminal itself.MotionSensor for example including gravity sensor, gyroscope etc., can sense the change from the kinematic parameter in three-dimensional, such asThe change of the kinematic parameters such as acceleration, speed, displacement, judge module 20 judges shake gesture of the user to mobile terminal with thisWhether certain gestures are met.Specifically, during user shakes, motion sensor also gathers the change of above-mentioned kinematic parameter.Judge module 20 can be judged the parameter for collecting, if having reached parameter preset, then it represents that this time shake is effectively shake,Otherwise it is invalid shake, it is believed that do not meet certain gestures.When judge module 20 judges that the shake gesture of user meets certain gestures,The inceptive direction that the user that camera handover module 30 is arrived according to detection module shakes starts corresponding camera.For example work as userWhen shaking mobile phone to the right at the beginning, camera handover module 30 opens front camera, when user's whipping mobile phone to the left at the beginningWhen, camera handover module 30 opens rear camera.
In sum, compared to prior art by way of touching virtual switching key and switching camera, the present inventionMobile terminal dual camera changing method can allow being switched between different cameras of user's fast free, and need notThe display screen of terminal is touched by finger or the physical button of mobile terminal is pressed, and supported that user is singlehandedOperation.User's operating experience is not only improved, and due to without virtual switching key, simplifying the page of taking pictures, increased batAccording to preview page area.
Although the present invention is disclosed as above with preferred embodiment, right many embodiments are illustrated only for the purposes of explanation, the present invention is not limited to, those skilled in the art can make without departing from the spirit and scope of the present inventionSome changes and retouching, the protection domain that the present invention is advocated should be to be defined described in claims.