Summary of the invention
Embodiments provide a kind of method and device switching photographic head, facilitate user and the multiple photographic head in mobile device are switched over.
Embodiments providing a kind of method switching photographic head, the method is in the mobile device including multiple photographic head, and the method includes:
Obtain the rotation process information of mobile device;
According to acquired rotation process information, obtain the anglec of rotation and exceed the number of revolutions of predetermined angle;
The detection anglec of rotation exceedes whether the number of revolutions of predetermined angle exceedes default number of revolutions;
If detection obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle and exceed default number of revolutions, then switch to another photographic head from current photographic head.
The embodiment of the present invention additionally provides a kind of device switching photographic head, and this device is in the mobile device including multiple photographic head, and this device includes:
First acquisition module, is suitable to obtain the rotation process information of mobile device;
Second acquisition module, is suitable to the rotation process information obtained according to the first acquisition module, obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle;
Detection module, is adapted to detect for the anglec of rotation and exceedes the number of revolutions of predetermined angle and whether exceed default number of revolutions;
Handover module, obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle if being suitable to detection module detection and exceed default number of revolutions, then switch to another photographic head from current photographic head.
The technical scheme provided according to embodiments of the present invention, this technical scheme is be applicable to the mobile device including multiple photographic head, specifically, obtain the rotation process information of mobile device, then according to acquired rotation process information, obtain the anglec of rotation and exceed the number of revolutions of predetermined angle, then the detection anglec of rotation exceedes the number of revolutions of predetermined angle and whether exceedes default number of revolutions, if detection obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle and exceed default number of revolutions, then switch to another photographic head from current photographic head.The technical scheme provided according to embodiments of the present invention, user is without switching over the multiple photographic head in mobile device by the way of triggering virtual key or physical button, equipment in rotary moving is only needed easily the multiple photographic head in mobile device to be switched over, optimize the switching mode of photographic head, improve the convenience of switching photographic head.Utilize the technical scheme that the present invention provides, user's one hand just can conveniently realize the handover operation to photographic head.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the present invention below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the present invention, it being understood, however, that may be realized in various forms the present invention and should not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the present invention, and complete for the scope of the present invention can be conveyed to those skilled in the art.
Embodiments providing a kind of method switching photographic head, the method is in the mobile device including multiple photographic head, and the method includes: obtain the rotation process information of mobile device;According to acquired rotation process information, obtain the anglec of rotation and exceed the number of revolutions of predetermined angle;The detection anglec of rotation exceedes whether the number of revolutions of predetermined angle exceedes default number of revolutions;If detection obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle and exceed default number of revolutions, then switch to another photographic head from current photographic head.Illustrate below by specific embodiment.
Fig. 1 shows the flow chart of the embodiment of the method for the switching photographic head that the present invention provides, as it is shown in figure 1, the method is in the mobile device including multiple photographic head, wherein, mobile device can be the mobile device such as smart mobile phone, PAD.The method of the present embodiment specifically includes following steps:
Step S101, it is judged that whether the arbitrary photographic head in multiple photographic head is in opening;The most then perform step S102;If it is not, then the method terminates.
Generally, the arbitrary photographic head only opened user in multiple photographic head of the shoot function of mobile device, i.e. mobile device is under opening, and user is only possible to the switching needing to carry out photographic head.Therefore, in step S101, need whether the arbitrary photographic head in multiple photographic head is in opening and judge.If it is determined that the arbitrary photographic head obtained in multiple photographic head is in opening, the most then perform to obtain the step of the rotation process information of mobile device.Wherein, the step of the rotation process information obtaining mobile device in the present embodiment specifically can be realized by step S102 and step S103.If it is determined that the arbitrary photographic head obtained in multiple photographic head is all not in opening, then the method terminates.
Wherein, multiple photographic head can include front-facing camera and post-positioned pick-up head.It addition, multiple photographic head may also include the photographic head arranged by other means, such as a left side puts photographic head and to put shooting first-class on the right side, it is not particularly limited herein.
Step S102, by angular-rate sensor and angular transducer, obtains angular velocity information and the angle information presetting measuring point.
When judging that the arbitrary photographic head obtained in multiple photographic head is in opening through step S101, perform step S102, by angular-rate sensor and angular transducer, obtain angular velocity information and the angle information presetting measuring point.Specifically, when user's equipment in rotary moving, the change of angular velocity can be listened to by the angular-rate sensor in mobile device, the change of angle can be listened to by the angular transducer in mobile device, thus obtain angular velocity information and the angle information presetting measuring point.
Step S103, according to angular velocity information and angle information, obtains the rotation process information of mobile device.
In step s 103, according to the angular velocity information acquired in step S102 and angle information, the rotation process information of mobile device is obtained.Wherein, the rotation process information of mobile device can include number of revolutions and the anglec of rotation etc. corresponding with rotation every time.
Step S104, according to acquired rotation process information, obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle.
Wherein, predetermined angle can be configured according to being specifically actually needed.Assume that predetermined angle is 45 degree, if according to acquired rotation process information, the anglec of rotation be the number of revolutions of 30 degree be 1 time, the anglec of rotation be the number of revolutions of 46 degree be 1 time, the anglec of rotation be the number of revolutions of 50 degree be 1 time, then the anglec of rotation the got number of revolutions more than 45 degree is 2 times.
Step S105, the detection anglec of rotation exceedes whether the number of revolutions of predetermined angle exceedes default number of revolutions;The most then perform step S106;If it is not, then perform step S102.
Wherein, default number of revolutions can be configured according to being specifically actually needed, and such as, default number of revolutions can be 1 time.It is assumed that predetermined angle is 45 degree, in step S105, whether the detection anglec of rotation number of revolutions more than 45 degree is more than 1 time.If in step S104, according to acquired rotation process information, obtaining the anglec of rotation number of revolutions more than 45 degree is 1 time, it is not above 1 time, photographic head is not switched over, then perform step S102, by angular-rate sensor and angular transducer, obtain angular velocity information and the angle information presetting measuring point.If in step S104, according to acquired rotation process information, obtaining the anglec of rotation number of revolutions more than 45 degree is 2 times, has exceeded 1 time, has then performed step S106, switch to another photographic head from current photographic head.
Step S106, switches to another photographic head from current photographic head.
When mobile device includes two photographic head, such as, this mobile device is smart mobile phone, this smart mobile phone includes that front-facing camera and post-positioned pick-up head have two photographic head altogether, assume that the photographic head being currently at opening is front-facing camera, if obtaining the anglec of rotation of this smart mobile phone through the detection of step S105 to exceed the number of revolutions of predetermined angle and exceeded default number of revolutions, then perform step S106, switch to another photographic head from current photographic head, i.e. switch to post-positioned pick-up head from front-facing camera.
When mobile device includes plural photographic head, in step s 106, another photographic head will be switched to according to default transfer sequence from current photographic head.Such as, this mobile device includes that the first photographic head, second camera, the 3rd photographic head and the 4th photographic head have four photographic head altogether, presets transfer sequence for switching to second camera from the first photographic head, switch to the 3rd photographic head from second camera, switch to the 4th photographic head from the 3rd photographic head and switch to the first photographic head from the 4th photographic head.Specifically, assume that the photographic head being currently at opening is second camera, if obtaining the anglec of rotation of this mobile device through the detection of step S105 to exceed the number of revolutions of predetermined angle and exceeded default number of revolutions, then perform step S106, switch to another photographic head from current photographic head, i.e. switch to the 3rd photographic head from second camera.Wherein, above-mentioned default transfer sequence is only used as example, and default transfer sequence can the most specifically arrange, not limit.
Step S107, it is judged that whether the time interval of current time distance switching photographic head exceedes prefixed time interval;The most then perform step S102.
In order to prevent the number of revolutions of mobile device from too much causing the situation of switching photographic head continuously to occur, this method also includes step S107, judge whether the time interval of current time distance switching photographic head exceedes prefixed time interval, wherein, prefixed time interval can be configured according to being specifically actually needed, such as, prefixed time interval can be 3 seconds.If it is determined that the time interval obtaining current time distance switching photographic head has exceeded prefixed time interval, then perform step S102, consequently facilitating continue to obtain the rotation process information of mobile device, and according to rotation process information, detect whether to also need to switch photographic head.
nullMethod according to the switching photographic head that the present embodiment provides,Be applicable to the mobile device including multiple photographic head,Specifically,First determine whether whether the arbitrary photographic head in multiple photographic head is in opening,When judging that the arbitrary photographic head obtained in multiple photographic head is in opening,By angular-rate sensor and angular transducer,Obtain angular velocity information and the angle information presetting measuring point,Then according to angular velocity information and angle information,Obtain the rotation process information of mobile device,According to acquired rotation process information,Obtain the anglec of rotation and exceed the number of revolutions of predetermined angle,Then the detection anglec of rotation exceedes the number of revolutions of predetermined angle and whether exceedes default number of revolutions,If detection obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle and exceed default number of revolutions,Then switch to another photographic head from current photographic head,Additionally,In order to prevent the number of revolutions of mobile device from too much causing the situation of switching photographic head continuously to occur,This method has also judged whether the time interval of current time distance switching photographic head exceedes prefixed time interval,If it is determined that the time interval obtaining current time distance switching photographic head has exceeded prefixed time interval,Then by angular-rate sensor and angular transducer,Obtain angular velocity information and the angle information presetting measuring point.
The method of the switching photographic head provided according to embodiments of the present invention, user is without switching over the multiple photographic head in mobile device by the way of triggering virtual key or physical button, equipment in rotary moving is only needed easily the multiple photographic head in mobile device to be switched over, optimize the switching mode of photographic head, improve the convenience of switching photographic head.Utilize the technical scheme that the embodiment of the present invention provides, user's one hand just can conveniently realize the handover operation to photographic head.
Fig. 2 shows the functional block diagram of the device embodiment of the switching photographic head that the present invention provides, as in figure 2 it is shown, this device is in the mobile device including multiple photographic head, wherein, mobile device can be the mobile device such as smart mobile phone, PAD.The device of this switching photographic head includes: first acquisition module the 210, second acquisition module 220, detection module 230 and handover module 240.
First acquisition module 210 is suitable to: obtain the rotation process information of mobile device.
First acquisition module 210 is further adapted for: by angular-rate sensor and angular transducer, obtain angular velocity information and the angle information presetting measuring point;According to angular velocity information and angle information, obtain the rotation process information of mobile device.
Specifically, when user's equipment in rotary moving, first acquisition module 210 can listen to the change of angular velocity by the angular-rate sensor in mobile device, the change of angle can be listened to by the angular transducer in mobile device, thus obtain angular velocity information and the angle information presetting measuring point, then according to angular velocity information and angle information, the rotation process information of mobile device is obtained.Wherein, the rotation process information of mobile device can include number of revolutions and the anglec of rotation etc. corresponding with rotation every time.
Second acquisition module 220 is suitable to: the rotation process information obtained according to the first acquisition module 210, obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle.
Wherein, predetermined angle can be configured according to being specifically actually needed.Assume that predetermined angle is 45 degree, if the rotation process information that the second acquisition module 220 obtains according to the first acquisition module 210, the anglec of rotation be the number of revolutions of 30 degree be 1 time, the anglec of rotation be the number of revolutions of 46 degree be 1 time, the anglec of rotation be the number of revolutions of 50 degree be 1 time, then the anglec of rotation that the second acquisition module 220 the gets number of revolutions more than 45 degree is 2 times.
Detection module 230 is suitable to: the detection anglec of rotation exceedes whether the number of revolutions of predetermined angle exceedes default number of revolutions.
Wherein, default number of revolutions can be configured according to being specifically actually needed.
Handover module 240 is suitable to: if detection module 230 detection obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle and exceed default number of revolutions, then switch to another photographic head from current photographic head.
When mobile device includes two photographic head, such as, this mobile device is smart mobile phone, this smart mobile phone includes that front-facing camera and post-positioned pick-up head have two photographic head altogether, assume that the photographic head being currently at opening is front-facing camera, if module 230 detection obtains the anglec of rotation of this smart mobile phone and exceedes the number of revolutions of predetermined angle and exceeded default number of revolutions after testing, then handover module 240 switches to another photographic head from current photographic head, i.e. switches to post-positioned pick-up head from front-facing camera.
When mobile device includes plural photographic head, handover module 240 will switch to another photographic head according to default transfer sequence from current photographic head.Such as, this mobile device includes that the first photographic head, second camera, the 3rd photographic head and the 4th photographic head have four photographic head altogether, presets transfer sequence for switching to second camera from the first photographic head, switch to the 3rd photographic head from second camera, switch to the 4th photographic head from the 3rd photographic head and switch to the first photographic head from the 4th photographic head.Specifically, assume that the photographic head being currently at opening is second camera, if module 230 detection obtains the anglec of rotation of this mobile device and exceedes the number of revolutions of predetermined angle and exceeded default number of revolutions after testing, then handover module 240 switches to another photographic head from current photographic head, i.e. switches to the 3rd photographic head from second camera.Wherein, above-mentioned default transfer sequence is only used as example, and default transfer sequence can the most specifically arrange, not limit.
Due to generally, the shoot function of mobile device is only opened user, i.e. arbitrary photographic head in multiple photographic head of mobile device is under opening, and user is only possible to the switching needing to carry out photographic head, and therefore the device of this switching photographic head may also include that the first judge module 200.
First judge module 200 is suitable to: judge whether the arbitrary photographic head in multiple photographic head is in opening.
Wherein, multiple photographic head can include front-facing camera and post-positioned pick-up head.It addition, multiple photographic head may also include the photographic head arranged by other means, such as a left side puts photographic head and to put shooting first-class on the right side, it is not particularly limited herein.
In the case of the device of this switching photographic head includes the first judge module 200, first acquisition module 210 is further adapted for: if the first judge module 200 judges that the arbitrary photographic head obtained in multiple photographic head is in opening, then obtain the rotation process information of mobile device.
It addition, in order to prevent the number of revolutions of mobile device from too much causing the situation of switching photographic head continuously to occur, the device of this switching photographic head may also include that the second judge module 250.
Second judge module 250 is suitable to: judge whether the time interval of current time distance switching photographic head exceedes prefixed time interval.Wherein, prefixed time interval can be configured according to being specifically actually needed, and such as, prefixed time interval can be 3 seconds.
If the second judge module 250 judges that the time interval obtaining current time distance switching photographic head exceedes prefixed time interval, then trigger the first acquisition module 210, in order to continue to obtain the rotation process information of mobile device.
Device according to the switching photographic head that the present embodiment provides, be applicable to the mobile device including multiple photographic head, specifically, whether the arbitrary photographic head judged in multiple photographic head by the first judge module is in opening, when the first judge module judges that the arbitrary photographic head obtained in multiple photographic head is in opening, the rotation process information of mobile device is obtained by the first acquisition module, then pass through the second acquisition module according to the rotation process information obtained, obtain the anglec of rotation and exceed the number of revolutions of predetermined angle, then the detection module detection anglec of rotation exceedes the number of revolutions of predetermined angle and whether exceedes default number of revolutions, if detection module detection obtains the anglec of rotation and exceedes the number of revolutions of predetermined angle and exceed default number of revolutions, then handover module switches to another photographic head from current photographic head.Additionally, in order to prevent the number of revolutions of mobile device from too much causing the situation of switching photographic head continuously to occur, also by the second judge module, this device judges whether the time interval of current time distance switching photographic head exceedes prefixed time interval, if it is determined that the time interval obtaining current time distance switching photographic head has exceeded prefixed time interval, then trigger the first acquisition module, in order to continue to obtain the rotation process information of mobile device.
The device of the switching photographic head provided according to embodiments of the present invention, user is without switching over the multiple photographic head in mobile device by the way of triggering virtual key or physical button, equipment in rotary moving is only needed easily the multiple photographic head in mobile device to be switched over, optimize the switching mode of photographic head, improve the convenience of switching photographic head.Utilize the technical scheme that the embodiment of the present invention provides, user's one hand just can conveniently realize the handover operation to photographic head.
Described above illustrate and describes some preferred embodiments of the application, but as previously mentioned, it is to be understood that the application is not limited to form disclosed herein, it is not to be taken as the eliminating to other embodiments, and can be used for other combinations various, amendment and environment, and can be modified by above-mentioned teaching or the technology of association area or knowledge in invention contemplated scope described herein.And the change that those skilled in the art are carried out and change are without departing from spirit and scope, the most all should be in the protection domain of the application claims.