Summary of the invention
In view of above content, be necessary to provide a kind of electronic apparatus that has camera head, this electronic apparatus comprises processor, display unit and input unit, described camera head is detachable camera head, comprise rotatable camera head and controller, described electronic apparatus and described detachable camera head establish a communications link by data communication interface, wherein: electronic apparatus sends the Spin Control order by described data communication interface to described detachable camera head, and described Spin Control order comprises the beginning rotate command and the order of stopping the rotation; Controller receives above-mentioned Spin Control order of sending by data communication interface and rotates with direction of rotation and the rotary speed set according to this Spin Control order control rotatable camera head.
In view of above content, also be necessary to provide a kind of control method that has the electronic apparatus of camera head, this electronic apparatus comprises processor, display unit and input unit, this method comprises: (a) described camera head establishes a communications link by data communication interface and this electronic apparatus, and this camera head comprises rotary type picked-up picture head and controller; (b) this electronic apparatus sends the Spin Control order by data communication interface to described camera head, and described Spin Control order comprises the beginning rotate command and the order of stopping the rotation; (c) this controller receives above-mentioned Spin Control order of sending by data communication interface, and controls the rotation of rotatable camera head according to this Spin Control order.
By the electronic apparatus that has camera head provided by the invention, solve the shortcoming that the camera installed on the traditional electronic devices can not rotate flexibly effectively, increased the user experience of the camera function of electronic apparatus greatly.
Embodiment
As shown in Figure 1, be the electronic apparatus composition frame diagram that the present invention has camera head.This electronic apparatus 1 comprises display unit 10, processor 11, input unit 12 and data communication interface 3, and described electronic apparatus 1 can be a kind of in the electronic apparatus such as mobile phone, PDA.Electronic apparatus in this preferred embodiment is a mobile phone, and described display unit 10 can be the display screen of various sizes; Described input unit 12 can be input units such as keyboard or touch-screen.Described electronic apparatus 1 also is equipped with camera head, and this camera head is detachable camera head 2, can link to each other with electronic apparatus 1 also can separate with electronic apparatus 1.Carry out data communication by data communication interface 3 between this electronic apparatus 1 and the described detachable camera head 2, data communication mode can adopt the mode of data wire or Bluetooth transmission to carry out transfer of data, consider the flexibility of the variable in distance between electronic apparatus 1 and the detachable camera head 2, in this preferred embodiment, adopt the mode of Bluetooth transmission to carry out data communication.
Described detachable camera head 2 comprises rotatable camera head 20, data communication interface 3 and controller 22.Described data communication interface 3 cooperates with data communication interface 3 on the electronic apparatus 1 realizes that detachable camera head 2 and 1 of electronic apparatus carry out data communication, the control of described rotatable camera head 20 controlled devices 22 is rotated according to predefined rotary mode, rotary speed and direction of rotation under the control of controller 22.
Before the following course of work that the present invention is had the electronic apparatus of detachable camera head is set forth, at first input unit 12 is set forth.In this preferred embodiment, the several buttons of definition are operated control to detachable camera head 2 provided by the invention on input unit 12, obviously, in thought range of the present invention, can change a kind of control mode arbitrarily, for example can change to and control, also can set several general buttons for controlling the controlled function button of detachable camera head 2 provided by the invention by touch-screen, obviously, these changes all should be contained within the scope of the invention.Set forth for convenience, the several buttons of definition are function button on input unit 12, comprising: the speed button, and this button is used to set the rotary speed of rotatable camera head; Rotary knob comprises turning clockwise button and being rotated counterclockwise two buttons of button that described these two rotary knobs are used to be provided with the direction of rotation of rotatable camera head; Stop button, this button is used to control the rotation that stops rotatable camera head.
As shown in Figure 2, be the workflow diagram that electronic apparatus is controlled the rotation of rotatable camera head in the detachable camera head among the present invention.
Step S202, when the speed button was triggered, processor 11 received the rotary speed of the rotatable camera head of setting 20, and for example, can set rotary speed was 5 degree/seconds.
Step S204, after rotary knob was triggered, input unit 12 produced an input signal to processor 11, for example, trigger the button that turns clockwise after, input unit 12 produces an input signal that turns clockwise to processor 11.
Step S206 after processor 11 receives this signal, sends a beginning rotate command to detachable camera head 2 by data communication interface 3, for example produces the order that turns clockwise.
Step S208, after controller 22 detects above-mentioned rotary speed and beginning rotate command, control rotatable camera head 20 is according to the direction of rotation and the rotary speed rotation of this setting, and for example controller 22 control rotatable camera heads 20 turn clockwise according to the speed of 5 degree/seconds.
Step S210, after stop button was triggered, input unit 12 produced a stop signal.
Step S212, processor 11 send the order of stopping the rotation to detachable camera head 2 by data communication interface 3 after receiving this stop signal.
After step S214, controller 22 detected the above-mentioned order of stopping the rotation, control rotatable camera head 20 stopped the rotation.
As shown in Figure 3, be that the present invention has the schematic diagram of the electronic apparatus of camera head by the course of work of detachable camera head capture video.
P1 among Fig. 3, P2, P3 and P4 represent four people that sit around together, wherein P1 is the operator of electronic apparatus 1, detachable camera head 2 is placed on above-mentioned 4 center positions that the people surrounds, after the rotary speed by rotatable camera head 20 in the detachable camera head 2 of speed button settings, press the button that turns clockwise, user P1 does not need to hold electronic apparatus 1 does not again at this moment need to carry out any operation yet again, rotatable camera head 20 will turn clockwise with the speed that sets, the video data that photographs is sent to electronic apparatus 1, and processor 11 is stored in memory with this video data or is shown on the display unit 10.
As shown in Figure 4, be the course of work schematic diagram that electronic apparatus that the present invention has a camera head is used to monitor the application of bicycle rear road conditions.In general, design from angle attractive in appearance or that simplify, all do not adorn rearview mirror on the bicycle, like this, the cyclist only sees the place ahead traffic information of oneself under normal conditions, and the traffic information of wanting to see own rear just needs to turn one's head or turn round.
What anticipate shown in Fig. 4 is the vertical view of a bicycle, the user is installed in electronic apparatus the central authorities of the handlebar of bicycle, detachable camera head is placed on the support of back seat of vehicle frame, after starting the camera function of electronic installation, detachable camera head 2 is gathered the image of bicycle rear road conditions, and this image is sent to electronic apparatus 1 by data communication interface, electronic apparatus 1 shows that this image is on its display unit 10, the user just can grasp the traffic information at bicycle rear by the image of observing on the display unit 10, and does not need to turn round or turn one's head.If when needed, the user can also control the deflection of rotatable camera head by the rotary knob on the input unit simultaneously, thereby obtains bigger monitoring range.
It should be noted that at last, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.