CN105245778B - Camera method of controlling rotation and device - Google Patents

Camera method of controlling rotation and device Download PDF

Info

Publication number
CN105245778B
CN105245778B CN201510642168.7A CN201510642168A CN105245778B CN 105245778 B CN105245778 B CN 105245778B CN 201510642168 A CN201510642168 A CN 201510642168A CN 105245778 B CN105245778 B CN 105245778B
Authority
CN
China
Prior art keywords
camera
image data
mobile terminal
instruction
rotation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510642168.7A
Other languages
Chinese (zh)
Other versions
CN105245778A (en
Inventor
王阳
傅强
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510642168.7A priority Critical patent/CN105245778B/en
Publication of CN105245778A publication Critical patent/CN105245778A/en
Application granted granted Critical
Publication of CN105245778B publication Critical patent/CN105245778B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure discloses a kind of camera method of controlling rotation and device, belongs to smart home field.The camera method of controlling rotation includes: to receive the camera acquired image data after being successfully established connection with camera, shows respective picture according to described image data;The sliding trace generated when sliding in the picture of display is received, rotation instruction is generated, the rotation instruction is used to indicate the camera and is rotated according to the sliding trace;Rotation instruction is sent to the camera, the shooting visual angle that the rotation instruction instructs the indicated sliding trace to rotate the camera for triggering the camera according to the rotation.Solves the problem of fixed shooting visual angle institute acquired image data of camera are limited, are not able to satisfy the shooting demand of user;The shooting visual angle for expanding camera is reached, user can use mobile terminal control camera and rotate to the effect of required shooting visual angle.

Description

Camera method of controlling rotation and device
Technical field
This disclosure relates to smart home field, in particular to a kind of camera method of controlling rotation and device.
Background technique
In Modern Smart Home life, more and more users need the case where family is monitored when outgoing, at this moment It can use and remotely be monitored by camera.
The common mode remotely monitored is usually one camera of installation at home, user using mobile phone and the camera into Row connection.The image shot in shooting visual angle can be sent to the mobile phone by camera, shoot to obtain to camera by mobile phone Image shown.
Summary of the invention
It is limited in order to solve the fixed shooting visual angle institute acquired image data of camera, it is not able to satisfy the shooting of user The problem of demand, the disclosure provide a kind of camera method of controlling rotation and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of camera method of controlling rotation is provided, mobile terminal is applied to In, which comprises
After being successfully established connection with camera, the camera acquired image data are received;
Respective picture is shown according to described image data;
The sliding trace generated when sliding in the picture of display is received, rotation instruction, the rotation instruction are generated The camera is used to indicate to be rotated according to the sliding trace;
Rotation instruction is sent to the camera, the rotation instruction is for triggering the camera according to described The indicated sliding trace of rotation instruction rotates the shooting visual angle of the camera.
The camera method of controlling rotation that disclosure first aspect provides establishes connection by mobile terminal and camera, Show camera acquired image data, mobile terminal sends rotation instruction to camera, controls camera and refer to according to rotation Enable rotary taking visual angle;Since camera can instruct rotation to different shooting visual angles according to different rotations, solve The problem of fixed shooting visual angle institute acquired image data of camera are limited, are not able to satisfy the shooting demand of user;Reach The shooting visual angle of camera is expanded, user can use mobile terminal control camera and rotate to required shooting visual angle Effect.
Optionally, the method also includes:
Pivot controls are shown on the interface for showing picture;
When the pivot controls are triggered according to the first triggering mode, generation rotates clockwise instruction, by the institute of generation State and rotate clockwise instruction and be sent to the camera, it is described rotate clockwise instruction and be used to indicate the camera revolve clockwise Turn the shooting visual angle of the camera;
When the pivot controls are triggered according to the second triggering mode, rotation instruction counterclockwise is generated, by the institute of generation It states rotation instruction counterclockwise and is sent to the camera, the rotation instruction counterclockwise is used to indicate the camera and revolves counterclockwise Turn the shooting visual angle of the camera;
Wherein, first triggering mode is persistently to trigger scheduled duration or triggering duration less than in the scheduled duration One kind, second triggering mode is persistently to trigger the scheduled duration or the triggering duration less than the scheduled duration In another kind.
Disclosure first aspect provide optional camera method of controlling rotation, by trigger pivot controls triggering when Long, generation rotates clockwise instruction and counterclockwise rotation instruction, to control camera according to the side carried out clockwise or counterclockwise To being rotated, due to only needing a pivot controls, the rotation control of both direction can be realized, therefore realizing rotation While abundantization, display picture is simplified.
Optionally, the method also includes:
After generating the rotation instruction, if the mobile terminal is shown according to high definition display pattern, cut SD display pattern is changed to continue to show the image data obtained from the camera.
The optional camera method of controlling rotation that disclosure first aspect provides, by referring to camera transmission rotation Before order, high definition display pattern is switched to SD display pattern, causes mobile terminal aobvious so as to avoid because of camera rotation Diagram as when freely spend poor situation.
It is optionally, described to show respective picture according to described image data, comprising:
When described image data are unpressed data, described image data are shown according to high definition display pattern Show;
When described image data are compressed data, described image data are solved according to predetermined decompression mode Compression, shows the data obtained after decompression according to SD display pattern.
The optional camera method of controlling rotation that disclosure first aspect provides, shows according to high definition display pattern and does not press The image data of contracting according to the image data after the display decompression of SD mode, therefore can select most suitable display pattern Show the image data of different-format so that image that mobile terminal is shown meet play fluency while as far as possible Guarantee clarity.
According to the second aspect of an embodiment of the present disclosure, a kind of camera method of controlling rotation is provided, is applied in camera, The described method includes:
The rotation instruction that mobile terminal is sent is received, the rotation instruction is the sliding that the mobile terminal collects user It is generated behind track;
The shooting visual angle of the camera is rotated according to the indicated sliding trace of the rotation instruction.
The optional camera method of controlling rotation that disclosure second aspect provides, passes through the rotation sent according to mobile terminal Turn sliding trace rotary taking visual angle indicated in instruction;Due to that can be synchronized according to the sliding trace of user at mobile terminal Selecting the shooting visual angle of camera, it is ensured that the picture in the shooting visual angle of camera variation is transferred into mobile terminal, because The shooting visual angle institute acquired image data that this solves camera fixation are limited, are not able to satisfy asking for the shooting demand of user Topic;The shooting visual angle for expanding camera is reached, user can use mobile terminal control camera and rotate to required The effect of shooting visual angle.
Optionally, the method also includes:
When rotating the shooting visual angle of the camera, real-time acquired image data are compressed;
Compressed image data is sent to the mobile terminal, the compressed image data is described for triggering Mobile terminal shows described image data according to SD display pattern.
The optional camera method of controlling rotation that disclosure second aspect provides, in rotating camera shooting visual angle, Real-time acquired image data are compressed, and compressed image data is sent to mobile terminal, so as to protect Card collected picture in rotating camera can be shown at mobile terminal by smoothness.
Optionally, the method also includes:
The high definition instruction that the mobile terminal is sent is received, the acquired image data are sent to the shifting in real time Dynamic terminal, the high definition instruction is that the mobile terminal is sent to the camera when selecting high definition display pattern;
The SD instruction that the mobile terminal is sent is received, the acquired image data are compressed, it will be described Compressed image data is sent to the mobile terminal, and the SD instruction is the mobile terminal in selection SD display mould The camera is sent to when formula.
The optional camera method of controlling rotation that disclosure second aspect provides, passes through the finger sent according to mobile terminal It enables, it is determined whether the image data that be sent to the mobile terminal is compressed, ensure that the image for being sent to mobile terminal Data can display pattern according to the needs of users shown.
Optionally, the method also includes:
Receive the mobile terminal transmission rotates clockwise instruction, rotates clockwise according to predetermined rotary speed described The shooting visual angle of camera;
The rotation counterclockwise that the mobile terminal is sent is received to instruct, rotated counterclockwise according to predetermined rotary speed described in The shooting visual angle of camera.
The optional camera method of controlling rotation that disclosure second aspect provides, by according to transmitted by mobile terminal The difference for rotating instruction, carries out the rotation of different directions, so that the collected picture of camera meets the demand of user.
According to the third aspect of an embodiment of the present disclosure, a kind of camera rotating control assembly is provided, mobile terminal is applied to In, described device includes:
Receiving module is configured as when being successfully established connection with camera, receives the camera acquired image Data;
First display module is configured as showing respective picture according to described image data;
First generation module is configured as receiving the sliding trace generated when sliding in the picture of display, generates Rotation instruction, the rotation instruction are used to indicate the camera and are rotated according to the sliding trace;
Sending module is configured as the rotation instruction that first generation module generates being sent to the camera shooting Head, the rotation instruction is for triggering the camera according to described in the indicated sliding trace rotation of the rotation instruction The shooting visual angle of camera.
The camera rotating control assembly that the disclosure third aspect provides establishes connection by mobile terminal and camera, Show camera acquired image data, mobile terminal sends rotation instruction to camera, controls camera and refer to according to rotation Enable rotary taking visual angle;Since camera can instruct rotation to different shooting visual angles according to different rotations, solve The problem of fixed shooting visual angle institute acquired image data of camera are limited, are not able to satisfy the shooting demand of user;Reach The shooting visual angle of camera is expanded, user can use mobile terminal control camera and rotate to required shooting visual angle Effect.
Optionally, described device further include:
Second display module is configured as showing pivot controls on the interface for showing picture;
Second generation module, the pivot controls for being configured as showing when second display module are touched according to first When originating party formula triggers, generation rotates clockwise instruction, and instruction will be rotated clockwise described in generation and is sent to the camera, institute It states to rotate clockwise to instruct and is used to indicate the shooting visual angle that the camera rotates clockwise the camera;
Third generation module, the pivot controls for being configured as showing when second display module are touched according to second When originating party formula triggers, rotation instruction counterclockwise is generated, the rotation instruction counterclockwise of generation is sent to the camera, institute It states rotation instruction counterclockwise and is used to indicate the shooting visual angle that the camera rotates the camera counterclockwise;
Wherein, first triggering mode is persistently to trigger scheduled duration or triggering duration less than in the scheduled duration One kind, second triggering mode is persistently to trigger the scheduled duration or the triggering duration less than the scheduled duration In another kind.
The disclosure third aspect provide optional camera rotating control assembly, by trigger pivot controls triggering when Long, generation rotates clockwise instruction and counterclockwise rotation instruction, to control camera according to the side carried out clockwise or counterclockwise To being rotated, due to only needing a pivot controls, the rotation control of both direction can be realized, therefore realizing rotation While abundantization, display picture is simplified.
Optionally, described device further include:
Switching module is configured as after first generation module generates the rotation instruction, when the mobile terminal When being shown according to high definition display pattern, it is switched to SD display pattern and continues to show the figure obtained from the camera As data.
The optional camera rotating control assembly that the disclosure third aspect provides, by referring to camera transmission rotation Before order, high definition display pattern is switched to SD display pattern, causes mobile terminal aobvious so as to avoid because of camera rotation Diagram as when freely spend poor situation.
Optionally, the receiving module, comprising:
First display sub-module is configured as when the received described image data of the receiving module being unpressed data When, described image data are shown according to high definition display pattern;
Second display sub-module is configured as when the received described image data of the receiving module being compressed data When, described image data are unziped it according to predetermined decompression mode, according to SD display pattern to being obtained after decompression Data shown.
The optional camera rotating control assembly that the disclosure third aspect provides, shows according to high definition display pattern and does not press The image data of contracting according to the image data after the display decompression of SD mode, therefore can select most suitable display pattern Show the image data of different-format so that image that mobile terminal is shown meet play fluency while as far as possible Guarantee clarity.
According to a fourth aspect of embodiments of the present disclosure, a kind of camera rotating control assembly is provided, is applied in camera, Described device includes:
First receiving module is configured as receiving the rotation instruction that mobile terminal is sent, and the rotation instruction is the shifting Dynamic terminal, which collects, to be generated after the sliding trace of user;
First rotary module is configured as the cunning indicated according to the received rotation instruction of first receiving module Dynamic rail mark rotates the shooting visual angle of the camera.
The optional camera rotating control assembly that disclosure fourth aspect provides, passes through the rotation sent according to mobile terminal Turn sliding trace rotary taking visual angle indicated in instruction;Due to that can be synchronized according to the sliding trace of user at mobile terminal Selecting the shooting visual angle of camera, it is ensured that the picture in the shooting visual angle of camera variation is transferred into mobile terminal, because The shooting visual angle institute acquired image data that this solves camera fixation are limited, are not able to satisfy asking for the shooting demand of user Topic;The shooting visual angle for expanding camera is reached, user can use mobile terminal control camera and rotate to required The effect of shooting visual angle.
Optionally, described device further include:
Compression module is configured as when rotating the shooting visual angle of the camera, by real-time acquired image data It is compressed;
First sending module is configured as the compressed image data of the compression module being sent to described mobile whole End, the compressed image data carry out described image data according to SD display pattern for triggering the mobile terminal Display.
The optional camera rotating control assembly that disclosure fourth aspect provides, in rotating camera shooting visual angle, Real-time acquired image data are compressed, and compressed image data is sent to mobile terminal, so as to protect Card collected picture in rotating camera can be shown at mobile terminal by smoothness.
Optionally, described device further include:
Second sending module is configured as receiving the high definition instruction that the mobile terminal is sent, by the collected figure As data are sent to the mobile terminal in real time, the high definition instruction is mobile terminal hair when selecting high definition display pattern It send to the camera;
Third sending module is configured as receiving the SD instruction that the mobile terminal is sent, by the collected figure As data are compressed, the compressed image data is sent to the mobile terminal, the SD instruction is the shifting Dynamic terminal is sent to the camera when selecting SD display pattern.
The optional camera rotating control assembly that disclosure fourth aspect provides, passes through the finger sent according to mobile terminal It enables, it is determined whether the image data that be sent to the mobile terminal is compressed, ensure that the image for being sent to mobile terminal Data can display pattern according to the needs of users shown.
Optionally, described device further include:
Second rotary module, is configured as receiving that the mobile terminal sends rotates clockwise instruction, according to making a reservation for Rotation speed rotates clockwise the shooting visual angle of the camera;
Third rotary module is configured as receiving the rotation counterclockwise instruction that the mobile terminal is sent, according to predetermined Rotation speed rotates the shooting visual angle of the camera counterclockwise.
The optional camera rotating control assembly that disclosure fourth aspect provides, by according to transmitted by mobile terminal The difference for rotating instruction, carries out the rotation of different directions, so that the collected picture of camera meets the demand of user.
According to a fifth aspect of the embodiments of the present disclosure, a kind of camera rotation control system is provided, the system comprises shiftings Dynamic terminal and camera:
The mobile terminal includes taking the photograph as described in the third aspect and the various optional implementations of the third aspect As head rotating control assembly;
The camera includes the camera shooting as described in fourth aspect and fourth aspect various optional implementations Head rotating control assembly.
According to a sixth aspect of an embodiment of the present disclosure, a kind of camera rotating control assembly is provided, mobile terminal is applied to In, described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
After being successfully established connection with camera, the camera acquired image data are received;
Respective picture is shown according to described image data;
The sliding trace generated when sliding in the picture of display is received, rotation instruction, the rotation instruction are generated The camera is used to indicate to be rotated according to the sliding trace;
Rotation instruction is sent to the camera, the rotation instruction is for triggering the camera according to described The indicated sliding trace of rotation instruction rotates the shooting visual angle of the camera.
According to the 7th of the embodiment of the present disclosure the aspect, a kind of camera rotating control assembly is provided, is applied in camera, Described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
The rotation instruction that mobile terminal is sent is received, the rotation instruction is the sliding that the mobile terminal collects user It is generated behind track;
The shooting visual angle of the camera is rotated according to the indicated sliding trace of the rotation instruction.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and consistent with the instructions for explaining the principles of this disclosure.
Fig. 1 be according to exemplary partial implement a kind of camera method of controlling rotation for exemplifying involved in implementation environment Schematic diagram;
Fig. 2 is a kind of flow chart of camera method of controlling rotation shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of camera method of controlling rotation shown according to an exemplary embodiment;
Fig. 4 A is a kind of flow chart of the camera method of controlling rotation shown according to another exemplary embodiment;
Fig. 4 B is that mobile terminal shown according to an exemplary embodiment is shown accordingly according to the image data of two kinds of version The flow chart of picture;
Fig. 4 C be camera shown according to an exemplary embodiment direction of rotation and mobile terminal shown by image The schematic diagram of the corresponding relationship of the moving direction of data;
Fig. 4 D is a kind of schematic diagram of camera method of controlling rotation shown according to an exemplary embodiment;
Fig. 5 A is a kind of flow chart of the camera method of controlling rotation shown according to another exemplary embodiment;
Fig. 5 B is the schematic diagram that a kind of camera shown according to an exemplary embodiment rotates clockwise control method;
Fig. 5 C is a kind of schematic diagram of camera method of controlling rotation counterclockwise shown according to an exemplary embodiment;
Fig. 6 A is a kind of block diagram of camera rotating control assembly shown according to an exemplary embodiment;
Fig. 6 B is a kind of block diagram of the camera rotating control assembly shown according to another exemplary embodiment;
Fig. 7 A is a kind of block diagram of camera rotating control assembly shown according to an exemplary embodiment;
Fig. 7 B is a kind of block diagram of the camera rotating control assembly shown according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of camera rotation control system shown according to an exemplary embodiment;
Fig. 9 is shown according to an exemplary embodiment a kind of for controlling the block diagram of camera rotation.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 be according to exemplary partial implement a kind of camera method of controlling rotation for exemplifying involved in implementation environment Schematic diagram, as shown in Figure 1, the implementation environment may include mobile terminal 110, camera 120 and Cloud Server 130.
Mobile terminal 110 can be smart phone, tablet computer, smart television, pocket computer on knee and desk-top meter Calculation machine etc..
Camera 120 can (for example (full name in English: Wireless-Fidelity, Chinese be complete by Wi-Fi by wireless network Claim: Wireless Fidelity) or the wireless networks mode such as bluetooth) with mobile terminal 110 connection is established, Cloud Server 130 can also be passed through Connection is established with mobile terminal 110.
Cloud Server 130 can be with the information between transfer mobile terminal 110 and camera 120, for example can will move eventually The rotation instruction that end 110 is sent is transmitted to camera 120, can also be by 120 acquired image data forwarding of camera to shifting Dynamic terminal 110.
Fig. 2 is a kind of flow chart of camera method of controlling rotation shown according to an exemplary embodiment, such as Fig. 2 institute Show, which is applied in the mobile terminal 110 in implementation environment shown in FIG. 1, includes the following steps.
Step 201, after being successfully established connection with camera, the camera acquired image data are received.
Step 202, respective picture is shown according to the image data.
Step 203, the sliding trace generated when sliding in the picture of display is received, rotation instruction, the rotation are generated Instruction is used to indicate the camera and is rotated according to the sliding trace.
Step 204, rotation instruction is sent to camera, rotation instruction refers to for triggering the camera according to the rotation Indicated sliding trace is enabled to rotate the shooting visual angle of the camera.
Fig. 3 is a kind of flow chart of camera method of controlling rotation shown according to an exemplary embodiment, such as Fig. 3 institute Show, which is applied in the camera 120 in implementation environment shown in FIG. 1, includes the following steps.
Step 301, the rotation instruction that mobile terminal is sent is received, rotation instruction is that the mobile terminal collects user It is generated after sliding trace.
Step 302, according to the shooting visual angle of the indicated sliding trace rotating camera of rotation instruction.
In one possible implementation, it is generated when mobile terminal can be slided in the picture of display by receiving Sliding trace rotation instruction generated is sent to camera, to control the shooting visual angle of camera by sliding trace.Fig. 4 A It is a kind of flow chart of the camera method of controlling rotation shown according to another exemplary embodiment, as shown in Figure 4 A, the camera shooting Head method of controlling rotation may include steps of:
Step 401, mobile terminal receives the camera acquired image number after being successfully established connection with camera According to according to image data display respective picture.
After mobile terminal is successfully established connection by wireless network or Cloud Server mode and camera, it can receive this and take the photograph The image data is shown as the current shooting visual angle institute acquired image data of head, and on the interface of display picture, here Described image data can be static images and be also possible to dynamic video.
In one possible implementation, camera can send the image data of Resolutions to mobile terminal, One is high-definition image data, another kind is SD image data.Fig. 4 B is shown according to an exemplary embodiment mobile whole End shows the flow chart of respective picture according to the image data of two kinds of version, and as shown in Figure 4 B, the mobile terminal is for same figure As data can be there are two types of display mode.
Step 401a, when the image data is unpressed data, according to high definition display pattern to the image data into Row display.
Step 401b, when the image data is compressed data, according to predetermined decompression mode to the image data It unzips it, the data obtained after decompression is shown according to SD display pattern.
Image data can be static images and be also possible to dynamic video.Currently, general picture format has BMP (English Full name: Bitmap, Chinese name: image file format), PNG (full name in English: Portable Network Graphic Format, Chinese name: image file storage format), JPEG (full name in English: Joint Photographic Experts Group, Chinese name: Joint Photographic Experts Group), it sorts by the resolution ratio of picture are as follows: BMP > PNG > JPEG.And general view Frequency format has AVI (full name in English: Audio Video Interleaved, Chinese name: Audio Video Interleaved format), FLV (full name in English: Flash Video, Chinese: stream media format), 3GP, sort are as follows: AVI > FLV > 3GP by the resolution ratio of video.
The image data of high resolution can be the low image data of resolution ratio, the i.e. figure of high resolution by compressing and converting Picture data are unpressed data, and the low image data of resolution ratio is compressed data.Therefore, mobile terminal can pass through inspection The format of altimetric image data determines that the image data is high-definition image data or SD image data, and according to corresponding aobvious Show that mode shows the image data.
Here the image data of BMP and AVI format are set as high-definition image data, by the picture number of JPEG and 3GP format It illustrates according to SD image data is set as.When mobile terminal detects that the received image data format of institute is BMP or AVI, Determine that the image data is unpressed data, the image data is shown according to high definition display pattern.Work as mobile terminal When detecting that the received image data format of institute is JPEG or 3GP, determine that the image data is compressed data, according to SD Display pattern shows the image data.
Step 402, camera receives the high definition instruction that mobile terminal is sent, and acquired image data are sent in real time The mobile terminal.
High definition instruction is that the mobile terminal is sent to the camera when selecting high definition display pattern.
Step 403, camera receives the SD instruction that mobile terminal is sent, which is pressed Contracting, is sent to the mobile terminal for compressed image.
SD instruction is that the mobile terminal is sent to the camera when selecting SD display pattern.
Mobile terminal can send high definition/SD instruction, the resolution ratio of received image data to adjust to camera.
Here the image data of BMP and AVI format are set as high-definition image data, by the picture number of JPEG and 3GP format It illustrates according to SD image data is set as.When terminal, which sends high definition to camera, to be instructed, camera can be by collected figure As data are sent to the mobile terminal with the format of BMP or AVI in real time, mobile terminal is by detecting and determining that the image data is Unpressed data show the image data according to high definition display pattern.When terminal sends SD instruction to camera When, camera is first acquired image data compression at JPEG or 3GP format, then by the image data of JPEG or 3GP format It is sent to the mobile terminal, mobile terminal is shown by detecting and determining that the image data is compressed data according to SD Mode shows the image data.
Step 404, mobile terminal receives the sliding trace generated when sliding in the picture of display, generates rotation and refers to It enables, rotation instruction is used to indicate the camera and is rotated according to the sliding trace.
Mobile terminal is used to show that the interface of picture is sliding trace receiving area, when user receives in the sliding trace When being slided in region, mobile terminal receives and acquires the sliding trace of the user, generates rotation instruction, and rotation instruction is used In indicating that the camera is rotated according to the sliding trace.
For example, the rotation speed of camera is related to the sliding speed that user slides in the sliding trace receiving area, The rotation angle of camera is related to the slide displacement that user slides in the sliding trace receiving area.
The rotation speed of camera can be positive with the sliding speed that user slides in the sliding trace receiving area It closes or linear positive is related.The sliding speed is faster, and the rotation speed of camera is faster.When the rotation speed and sliding speed of camera Degree be positive linear correlation when, the rotation speed of camera is speed determined by the predetermined multiplying power of sliding speed.If camera Rotation speed is y, sliding speed x, multiplying power factor a, then can use between the rotation speed and sliding speed of camera Formula y=ax expression, a > 1.Likewise, the rotation angle of camera can be slided in the sliding trace receiving area with user Slide displacement be positively correlated, the rotation angle of camera is y, slide displacement x, multiplying power factor a, then the rotation of camera It can be expressed with formula y=ax between gyration and slide displacement, a > 1.
Correspondingly, the rotation speed of camera can also be with sliding that user slides in sliding trace receiving area speed Negatively correlated or negative linear correlation is spent, the rotation angle of camera can also be slided in the sliding trace receiving area with user Slide displacement is negatively correlated or negative linear correlation.
The sliding speed that the present embodiment slides the rotation speed of camera and user in the sliding trace receiving area The slide displacement phase that positive and negative and camera the rotation angle of correlation is slided in the sliding trace receiving area with user The positive and negative of closing property is not specifically limited.
Step 405, mobile terminal is after generating rotation instruction, if mobile terminal is shown according to high definition display pattern Show, is then switched to SD display pattern and continues to show the image data obtained from camera.
Since the image data of high resolution can be converted to the low image data of resolution ratio by way of compression.It can Know, for same image data, the image data institute lower than resolution ratio of memory space required for the image data of high resolution The memory space needed is big.Therefore, mobile terminal receives time delay caused by the image data of high resolution than receiving resolution ratio Extend when caused by low image data.That is the image data clarity of high definition is high, but cannot be guaranteed the smoothness of image data Property, the image data smoothness of high definition is good, but cannot be guaranteed the clarity of image data.
Therefore, in the case where the every frame variation less of the received image data of mobile terminal institute, mobile terminal can be preferred High definition display pattern, in the case that the received every frame of image data of mobile terminal institute changes greatly, mobile terminal can be preferred SD display pattern.
During camera is rotated, the variation of the image data which sends to mobile terminal every frame compared with Greatly, if mobile terminal is shown according to high definition display pattern, shown image data smoothness degree can be poor, such as Static images are smudgy, dynamic video Caton is serious etc..It therefore, can be pre- after mobile terminal generates rotation instruction to camera The display pattern for first detecting current image date, if the mobile terminal is according to high definition display pattern display image data Guarantee the fluency of image data shown by the mobile terminal, which, which first can send SD instruction to camera, comes It prompts the camera to send compressed image data, then sends rotation instruction to the camera to control camera rotation.
For example, mobile terminal includes that SD instructs into the rotation instruction that camera is sent.In other words, when camera one Denier receives the rotation instruction of mobile terminal transmission, and automatically can first be compressed acquired image data will be sent to shifting again Dynamic terminal.
For example, after mobile terminal sends SD instruction and rotation instruction to camera, if not continuing to give birth in scheduled duration It is instructed at rotation, then sends high definition instruction to the camera.
After mobile terminal generates rotation instruction to camera, in order to guarantee camera in rotary course, the movement is whole The fluency of the shown image data in end, the mobile terminal can send SD instruction to the camera.Correspondingly, mobile whole It holds after stopping rotating instruction to camera, in order to guarantee camera in the shooting of fixed viewpoint, shown by the mobile terminal The clarity of image data, the mobile terminal can send high definition instruction to the camera.
Step 406, rotation instruction is sent to camera by mobile terminal.
Step 407, camera instructs the shooting visual angle of indicated sliding trace rotating camera according to the rotation.
Fig. 4 C be camera shown according to an exemplary embodiment direction of rotation and mobile terminal shown by image The schematic diagram of the corresponding relationship of the moving direction of data, as shown in Fig. 4 C (1), when mobile terminal 11 sends up time to camera 10 When needle rotation instruction, camera 10 can be rotated clockwise according to this to be rotated clockwise indicated by instruction, when camera 10 When being rotated clockwise, the shooting visual angle of camera 10 can move right, then, the mobile terminal 11 being connect with camera 10 The image data in interface 12 for showing picture can also move right, and direction shown in arrow 13 is right direction.Such as Fig. 4 C (2) shown in, when mobile terminal 11 sends rotation instruction counterclockwise to camera 10, camera 10 can be according to the rotation counterclockwise Instruction is indicated to be rotated counterclockwise, and when camera 10 is rotated counterclockwise, the shooting visual angle of camera 10 can be to It moves left, then, the mobile terminal 11 connecting with camera 10 shows that the interface 12 of picture can be also moved to the left, 14 side of showing of arrow To as left direction.
Fig. 4 D is a kind of schematic diagram of camera method of controlling rotation shown according to an exemplary embodiment, such as Fig. 4 D (1) shown in, when user show that the interface 12 of picture is slided in mobile terminal 11, the reception of mobile terminal 11 simultaneously acquires use The sliding trace 15 at family, it is sliding trace (such as 16a that left sliding trace and direction are the right side that sliding trace 15, which is resolved into direction, To shown in 16b), wherein direction shown in arrow 14 is left direction, and direction shown in arrow 13 is right direction.Since direction is A left side means that the interface 12 of picture shown by mobile terminal 11 can be moved to the left, and direction means that mobile terminal 11 is shown by right Show that the interface 12 of picture can move right.Therefore, direction can be further left sliding trace and direction by mobile terminal 11 Rotation instruction counterclockwise is generated respectively for right sliding trace and rotates clockwise instruction, and will rotate instruction and up time counterclockwise Needle rotation instruction is successively sent to camera, and after camera is properly received this two instructions, which can be first by counterclockwise Shooting visual angle can be moved to the left (shown in such as Fig. 4 D (2)) by rotation instruction, then rotating clockwise instruction can be to by shooting visual angle It moves right (shown in such as Fig. 4 D (3)).
Step 408, camera presses real-time acquired image data in the shooting visual angle of rotating camera Contracting, is sent to mobile terminal for compressed image data.
The compressed image data shows the image according to SD display pattern for triggering the mobile terminal.
Before camera receives rotation instruction, the SD instruction of mobile terminal transmission can be first received, and according to this Acquired image data are compressed in SD instruction.It illustrates and illustrates in step 403, which is not described herein again.
Step 409, mobile terminal receives the compressed image data that camera is sent, according to SD display pattern to this Image data is shown.
In conclusion the camera method of controlling rotation provided in the embodiment of the present disclosure, passes through mobile terminal and camera Connection is established, shows camera acquired image data, mobile terminal sends rotation instruction to camera, controls camera and press Rotary taking visual angle is instructed according to rotation;It rotates since camera can be instructed according to different rotations to different shooting visual angles, because The shooting visual angle institute acquired image data that this solves camera fixation are limited, are not able to satisfy asking for the shooting demand of user Topic;The shooting visual angle for expanding camera is reached, user can use mobile terminal control camera and rotate to required The effect of shooting visual angle.
In addition, the sliding trace that mobile terminal generates when can be slided in the picture of display by receiving, by the sliding Track rotation instruction generated is sent to camera, to control camera rotary taking visual angle.
The camera rotating control assembly provided in the embodiment of the present disclosure, also by sending rotation instruction to camera Before, high definition display pattern is switched to SD display pattern, leads to mobile terminal display figure so as to avoid because of camera rotation As when freely spend poor situation.
The camera rotating control assembly provided in the embodiment of the present disclosure is shown unpressed according further to high definition display pattern Image data according to the image data after the display decompression of SD mode, therefore can select most suitable display pattern to show Show the image data of different-format, so that protecting as far as possible while meeting and playing fluency in the image that mobile terminal is shown Demonstrate,prove clarity.
In alternatively possible implementation, mobile terminal can be by triggering pivot controls, by the pivot controls institute The rotation instruction of generation is sent to camera, to control camera rotary taking visual angle.Fig. 5 A is implemented according to another exemplary A kind of flow chart of the camera method of controlling rotation exemplified, as shown in Figure 5A, the camera method of controlling rotation can wrap Include following steps:
Step 501, mobile terminal receives the camera acquired image number after being successfully established connection with camera According to according to image data display respective picture.
Step 502, camera receives the high definition instruction that mobile terminal is sent, which is sent in real time To the mobile terminal.
Step 503, camera receives the SD instruction that mobile terminal is sent, which is pressed Contracting, is sent to the mobile terminal for compressed image data.
Step 504, mobile terminal shows pivot controls on the interface for showing picture.
Fig. 5 B is the schematic diagram that a kind of camera shown according to an exemplary embodiment rotates clockwise control method, such as Shown in Fig. 5 B (1), user is used to show the pivot controls 17 on the interface 12 of picture by triggering mobile terminal 11, to prompt to move Dynamic terminal generates corresponding rotation instruction.
Step 505, when the pivot controls are triggered according to the first triggering mode, mobile terminal generation rotates clockwise finger It enables, this by generation rotates clockwise instruction and be sent to the camera.
This rotates clockwise instruction and is used to indicate the shooting visual angle that camera rotates clockwise the camera.
Step 506, when the pivot controls are triggered according to the second triggering mode, mobile terminal generates rotation counterclockwise and refers to It enables, the rotation instruction counterclockwise of generation is sent to the camera.
This is counterclockwise, and rotation instruction is used to indicate the shooting visual angle that camera rotates the camera counterclockwise.
For pivot controls there are two types of triggering mode, the first triggering mode is persistently to trigger scheduled duration or trigger duration to be less than One of the scheduled duration, the second triggering mode are persistently to trigger the scheduled duration or the triggering duration less than the pre- timing Another kind in length.
For example, if the first triggering mode is persistently to trigger scheduled duration, the second triggering mode is that triggering duration is less than The scheduled duration.So, when user trigger pivot controls duration reach predetermined trigger duration, that is, reach the first triggering mode Condition, mobile terminal, which can generate, rotates clockwise instruction, this rotates clockwise instruction and is used to indicate camera is revolved clockwise Turn, i.e., the camera can move right shooting visual angle.When user trigger pivot controls duration be not up to predetermined trigger duration, Reach the condition of the second triggering mode, mobile terminal can generate rotation instruction counterclockwise, and rotation that this is counterclockwise is instructed for referring to Show that camera is rotated counterclockwise, i.e., shooting visual angle can be moved to the left by the camera.
The setting means of scheduled duration mentioned here can be manufacturer and preset and can also be manually set, the tool of scheduled duration Body numerical value can be 2 seconds, 3 seconds etc., the present embodiment to the setting means and specific value of scheduled duration without limitation.
For example, pivot controls, which can be divided into, rotates clockwise control and pivot controls counterclockwise, when this rotates clockwise control When part is triggered, generation rotates clockwise instruction, when the pivot controls counterclockwise are triggered, generates rotation instruction counterclockwise.
Step 507, mobile terminal is after generating rotation instruction, if mobile terminal is shown according to high definition display pattern Show, is then switched to SD display pattern and continues to show the image data obtained from camera.
Rotation instruction include rotate clockwise instruction or counterclockwise rotation instruction, wherein rotate clockwise instruction and counterclockwise Rotation instruction is obtained by step 505 and step 506 respectively.
Step 508, camera receive mobile terminal transmission rotate clockwise instruction, according to predetermined rotary speed up time Needle rotates the shooting visual angle of the camera.
Step 509, camera receives the rotation counterclockwise instruction of mobile terminal transmission, according to the predetermined rotary speed inverse time Needle rotates the shooting visual angle of the camera.
17 quilt of pivot controls referring also to Fig. 5, on the interface 12 that the mobile terminal 11 in Fig. 5 B (1) is used to show picture When triggering according to the first triggering mode, mobile terminal, which can generate, rotates clockwise instruction, and this is rotated clockwise instruction and is sent To camera, controls camera and be rotated clockwise according to predetermined rotary speed, is i.e. mobile terminal 11 in Fig. 5 B (2) is shown Image data in the interface 12 of picture can be moved right to direction shown in arrow 14.
Fig. 5 C is a kind of schematic diagram of camera method of controlling rotation counterclockwise shown according to an exemplary embodiment, such as Shown in Fig. 5 C, when the pivot controls 17 on the interface 12 that the mobile terminal 11 in Fig. 5 C (1) is used to show picture are by according to second When triggering mode triggers, mobile terminal can generate rotation instruction counterclockwise, and the rotation instruction counterclockwise is sent to camera, Control camera is rotated counterclockwise according to predetermined rotary speed, i.e. the interface 12 of the display of Fig. 5 C (2) mobile terminal 11 picture In image data can be moved left to direction shown in arrow 13.
The setting means of predetermined rotary speed mentioned here can be default for manufacturer or be manually set, the predetermined rotation The specific value of rotary speed can rotate 10 degree for every 0.5 second, or rotate 5 degree within every 0.2 second, the present embodiment is to predetermined rotation The setting method and specific value of rotary speed are without limitation.
Step 510, camera presses real-time acquired image data in the shooting visual angle of rotating camera Contracting, is sent to mobile terminal for compressed image data.
Step 511, mobile terminal receives compressed image data, after unziping it to image data, according to SD Display pattern shows the image data after decompression.
Since step 501 to step 503 is similar to step 403 with step 401 respectively, step 507 is similar with step 405, Step 510 is similar with step 408, specifically may refer to the description to step 401 to step 403, step 405 and step 408, this In just repeat no more.
In conclusion the camera method of controlling rotation provided in the embodiment of the present disclosure, passes through mobile terminal and camera Connection is established, shows camera acquired image data, mobile terminal sends rotation instruction to camera, controls camera and press Rotary taking visual angle is instructed according to rotation;It rotates since camera can be instructed according to different rotations to different shooting visual angles, because The shooting visual angle institute acquired image data that this solves camera fixation are limited, are not able to satisfy asking for the shooting demand of user Topic;The shooting visual angle for expanding camera is reached, user can use mobile terminal control camera and rotate to required The effect of shooting visual angle.
The camera method of controlling rotation provided in the embodiment of the present disclosure, also by triggering the triggering duration of pivot controls, Generation rotate clockwise instruction and counterclockwise rotation instruction, with control camera according to the direction carried out clockwise or counterclockwise into Due to only needing a pivot controls rotation control of both direction can be realized, therefore abundant realizing rotation in row rotation While change, display picture is simplified.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 6 A is a kind of block diagram of camera rotating control assembly shown according to an exemplary embodiment, such as Fig. 6 A institute Show, which is applied in mobile terminal, which includes but is not limited to: receiving Module 601, the first display module 602, the first generation module 603 and sending module 604.
Receiving module 601 is configured as when being successfully established connection with camera, receives the camera acquired image Data.
First display module 602 is configured as showing respective picture according to the image data.
After mobile terminal is successfully established connection by wireless network or Cloud Server mode and camera, it can receive this and take the photograph The image data is shown as the current shooting visual angle institute acquired image data of head, and on the interface of display picture, here Described image data can be static images and be also possible to dynamic video.
First generation module 603 is configured as receiving the sliding trace generated when sliding in the picture of display, generates Rotation instruction, rotation instruction are used to indicate the camera and are rotated according to the sliding trace.
Mobile terminal is used to show that the interface of picture is sliding trace receiving area, when user receives in the sliding trace When being slided in region, mobile terminal receives and acquires the sliding trace of the user, generates rotation instruction, and rotation instruction is used In indicating that the camera is rotated according to the sliding trace.
Sending module 604 is configured as the rotation instruction that the first generation module 603 generates being sent to camera, should The shooting visual angle that rotation instruction instructs indicated sliding trace to rotate the camera for triggering the camera according to the rotation.
In one possible implementation, Fig. 6 B is a kind of camera rotation shown according to another exemplary embodiment The block diagram of control device, as shown in Figure 6B, the camera rotating control assembly can also include: the second display module 605, second Generation module 606 and third generation module 607.
Second display module 605, is configured as showing pivot controls on the interface for showing picture.
Second generation module 606 is configured as the pivot controls when the display of the second display module 605 by according to the first touching When originating party formula triggers, generation rotates clockwise instruction, this by generation rotates clockwise instruction and be sent to the camera.
This rotates clockwise instruction and is used to indicate the shooting visual angle that camera rotates clockwise the camera.
Third generation module 607 is configured as the pivot controls when the display of the second display module 605 by according to the second touching When originating party formula triggers, rotation instruction counterclockwise is generated, the rotation instruction counterclockwise of generation is sent to the camera.
This is counterclockwise, and rotation instruction is used to indicate the shooting visual angle that camera rotates the camera counterclockwise.
First triggering mode is persistently to trigger scheduled duration or triggering duration less than one of the scheduled duration, should Second triggering mode is persistently to trigger the scheduled duration or the triggering duration less than the another kind in the scheduled duration.
The setting means of scheduled duration mentioned here can be manufacturer and preset and can also be manually set, the tool of scheduled duration Body numerical value can be 2 seconds, 3 seconds etc., the present embodiment to the setting means and specific value of scheduled duration without limitation.
In one possible implementation, still referring to shown in Fig. 6 B, which can also be wrapped It includes: switching module 608.
Switching module 608 is configured as after the first generation module 603 generates rotation instruction, if mobile terminal is It is shown according to high definition display pattern, is then switched to SD display pattern and continues to show the image data obtained from camera.
Since the image data of high resolution can be converted to the low image data of resolution ratio by way of compression.It can Know, for same image data, the image data institute lower than resolution ratio of memory space required for the image data of high resolution The memory space needed is big.Therefore, mobile terminal receives time delay caused by the image data of high resolution than receiving resolution ratio Extend when caused by low image data.That is the image data clarity of high definition is high, but cannot be guaranteed the smoothness of image data Property, the image data smoothness of high definition is good, but cannot be guaranteed the clarity of image data.
Therefore, in the case where the every frame variation less of the received image data of mobile terminal institute, mobile terminal can be preferred High definition display pattern, in the case that the received every frame of image data of mobile terminal institute changes greatly, mobile terminal can be preferred SD display pattern.
During camera is rotated, the variation of the image data which sends to mobile terminal every frame compared with Greatly, if mobile terminal is shown according to high definition display pattern, shown image data smoothness degree can be poor, such as Static images are smudgy, dynamic video Caton is serious etc..It therefore, can be pre- after mobile terminal generates rotation instruction to camera The display pattern for first detecting current image date, if the mobile terminal is according to high definition display pattern display image data Guarantee the fluency of image data shown by the mobile terminal, which, which first can send SD instruction to camera, comes It prompts the camera to send compressed image data, then sends rotation instruction to the camera to control camera rotation.
In one possible implementation, still referring to shown in Fig. 6 B, first display module 602, comprising: first is aobvious Show submodule 602a and the second display sub-module 602b.
First display sub-module 602a is configured as when the received image data of receiving module 601 being unpressed number According to when, the image data is shown according to high definition display pattern.
Second display sub-module 602b is configured as when the received image data of receiving module 601 being compressed data When, according to predetermined decompression mode the image data is unziped it, according to SD display pattern to being obtained after decompression Data are shown.
Image data can be static images and be also possible to dynamic video.Currently, general picture format have BMP, PNG, JPEG sorts are as follows: BMP > PNG > JPEG by the resolution ratio of picture.And general video format has AVI, FLV, 3GP, by video Resolution ratio sequence are as follows: AVI > FLV > 3GP.
The image data of high resolution can be the low image data of resolution ratio, the i.e. figure of high resolution by compressing and converting Picture data are unpressed data, and the low image data of resolution ratio is compressed data.Therefore, mobile terminal can pass through inspection The format of altimetric image data determines that the image data is high-definition image data or SD image data, and according to corresponding aobvious Show that mode shows the image data.
Here the image data of BMP and AVI format are set as high-definition image data, by the picture number of JPEG and 3GP format It illustrates according to SD image data is set as.When mobile terminal detects that the received image data format of institute is BMP or AVI, Determine that the image data is unpressed data, the image data is shown according to high definition display pattern.Work as mobile terminal When detecting that the received image data format of institute is JPEG or 3GP, determine that the image data is compressed data, according to SD Display pattern shows the image data.
In conclusion the camera rotating control assembly provided in the embodiment of the present disclosure, passes through mobile terminal and camera Connection is established, shows camera acquired image data, mobile terminal sends rotation instruction to camera, controls camera and press Rotary taking visual angle is instructed according to rotation;It rotates since camera can be instructed according to different rotations to different shooting visual angles, because The shooting visual angle institute acquired image data that this solves camera fixation are limited, are not able to satisfy asking for the shooting demand of user Topic;The shooting visual angle for expanding camera is reached, user can use mobile terminal control camera and rotate to required The effect of shooting visual angle.
The camera rotating control assembly provided in the embodiment of the present disclosure, also by triggering the triggering duration of pivot controls, Generation rotate clockwise instruction and counterclockwise rotation instruction, with control camera according to the direction carried out clockwise or counterclockwise into Due to only needing a pivot controls rotation control of both direction can be realized, therefore abundant realizing rotation in row rotation While change, display picture is simplified.
The camera rotating control assembly provided in the embodiment of the present disclosure, also by sending rotation instruction to camera Before, high definition display pattern is switched to SD display pattern, leads to mobile terminal display figure so as to avoid because of camera rotation As when freely spend poor situation.
The camera rotating control assembly provided in the embodiment of the present disclosure is shown unpressed according further to high definition display pattern Image data according to the image data after the display decompression of SD mode, therefore can select most suitable display pattern to show Show the image data of different-format, so that protecting as far as possible while meeting and playing fluency in the image that mobile terminal is shown Demonstrate,prove clarity.
Fig. 7 A is a kind of block diagram of camera rotating control assembly shown according to an exemplary embodiment, such as Fig. 7 A institute Show, which is applied in camera, which includes but is not limited to: first connects Receive module 701 and the first rotary module 702.
First receiving module 701 is configured as receiving the rotation instruction that mobile terminal is sent, and rotation instruction is the movement Terminal, which collects, to be generated after the sliding trace of user.
First rotary module 702 is configured as the cunning indicated according to the received rotation instruction of the first receiving module 701 The shooting visual angle of dynamic rail mark rotating camera.
In one possible implementation, Fig. 7 B is a kind of camera rotation shown according to another exemplary embodiment The block diagram of control device, such as Fig. 7 B, which can also include: that compression module 703 and first send mould Block 704.
Compression module 703 is configured as in the shooting visual angle of rotating camera, by real-time acquired image data into Row compression.
First sending module 704 is configured as the compressed image data of the compression module 703 being sent to mobile whole End, the compressed image data show the image data according to SD display pattern for triggering the mobile terminal.
The compressed image data shows the image according to SD display pattern for triggering the mobile terminal.
In one possible implementation, referring also to Fig. 7 B, which can also include: second Receiving module 705, the second sending module 706, third receiving module 707 and third sending module 708.
Second receiving module 705 is configured as receiving the high definition instruction that mobile terminal is sent.
High definition instruction is that the mobile terminal is sent to the camera when selecting high definition display pattern.
Second sending module 706 is configured as the acquired image data being sent to the mobile terminal in real time.
Third receiving module 707 is configured as receiving the SD instruction that mobile terminal is sent.
SD instruction is that the mobile terminal is sent to the camera when selecting SD display pattern.
Third sending module 708 is configured as compressing the acquired image data, by the compressed image Data are sent to the mobile terminal.
Mobile terminal can send high definition/SD instruction, the resolution ratio of received image data to adjust to camera.
In one possible implementation, referring also to Fig. 7 B, which can also include: the 4th Receiving module 709, the second rotary module 710, the 5th receiving module 711 and third rotary module 712.
4th receiving module 709, be configured as receiving mobile terminal transmission rotates clockwise instruction.
It is that the pivot controls on the display picture of mobile terminal are touched according to the first triggering mode that this, which rotates clockwise instruction, It is generated when hair.
Second rotary module 710 is configured as rotating clockwise the shooting visual angle of the camera according to predetermined rotary speed.
5th receiving module 711 is configured as receiving the rotation counterclockwise instruction of mobile terminal transmission.
It is that the pivot controls on the display picture of mobile terminal are touched according to the second triggering mode that this, which rotates clockwise instruction, It is generated when hair.
First triggering mode is persistently to trigger scheduled duration or triggering duration less than one of the scheduled duration, should Second triggering mode is persistently to trigger the scheduled duration or the triggering duration less than the another kind in the scheduled duration.
Third rotary module 712 is configured as rotating the shooting visual angle of the camera counterclockwise according to predetermined rotary speed.
The setting means of predetermined rotary speed mentioned here can be default for manufacturer or be manually set, the predetermined rotation The specific value of rotary speed can rotate 10 degree for every 0.5 second, or rotate 5 degree within every 0.2 second, the present embodiment is to predetermined rotation The setting method and specific value of rotary speed are without limitation.
In conclusion the camera rotating control assembly provided in the embodiment of the present disclosure, by being sent according to mobile terminal Rotation instruction in indicated sliding trace rotary taking visual angle;Due to can be according to the sliding trace of user at mobile terminal The shooting visual angle of synchronous selection camera, it is ensured that the picture in the shooting visual angle of camera variation is transferred into mobile whole End, therefore the shooting visual angle institute acquired image data for solving camera fixation are limited, the shooting for not being able to satisfy user needs The problem of asking;The shooting visual angle for expanding camera is reached, user can use mobile terminal control camera and rotate to institute The effect of the shooting visual angle needed.
The camera rotating control assembly provided in the embodiment of the present disclosure, also by rotating camera shooting visual angle, Real-time acquired image data are compressed, and compressed image data is sent to mobile terminal, so as to protect Card collected picture in rotating camera can be shown at mobile terminal by smoothness.
The camera rotating control assembly provided in the embodiment of the present disclosure, also by the instruction sent according to mobile terminal, Whether determination will compress the image data that be sent to the mobile terminal, ensure that the picture number for being sent to mobile terminal According to can display pattern according to the needs of users shown.
The camera rotating control assembly provided in the embodiment of the present disclosure, also passes through the rotation according to transmitted by mobile terminal The difference of instruction carries out the rotation of different directions, so that the collected picture of camera meets the demand of user.
Fig. 8 is a kind of block diagram of camera rotation control system shown according to an exemplary embodiment, as shown in figure 8, The camera rotation control system is applied in implementation environment shown in Fig. 1.The camera rotation control system may include: movement Terminal 801 and camera 802.
Mobile terminal 801 includes the camera rotating control assembly as described in Fig. 6 A and Fig. 6 B, specifically be may refer to Description in Fig. 6 A and Fig. 6 B, just repeats no more here.
Camera 802 may include the camera rotating control assembly as described in Fig. 7 A and Fig. 7 B, can specifically join See the description in Fig. 7 A and Fig. 7 B, just repeats no more here.
In conclusion the camera rotation control system provided in the embodiment of the present disclosure, passes through mobile terminal and camera Connection is established, shows camera acquired image data, mobile terminal sends rotation instruction to camera, controls camera and press Rotary taking visual angle is instructed according to rotation;It rotates since camera can be instructed according to different rotations to different shooting visual angles, because The shooting visual angle institute acquired image data that this solves camera fixation are limited, are not able to satisfy asking for the shooting demand of user Topic;The shooting visual angle for expanding camera is reached, user can use mobile terminal control camera and rotate to required The effect of shooting visual angle.
About the equipment in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
An exemplary embodiment of the present disclosure provides a kind of camera rotating control assemblies, can be realized disclosure offer Camera method of controlling rotation, the external equipment include: processor, for the memory of storage processor executable instruction;
Wherein, processor is configured as:
After being successfully established connection with camera, the camera acquired image data are received;
Respective picture is shown according to the image data;
The sliding trace generated when sliding in the picture of display is received, rotation instruction is generated, rotation instruction is used for Indicate that the camera is rotated according to the sliding trace;
Rotation instruction is sent to camera, rotation instruction is for triggering the camera according to indicated by rotation instruction Sliding trace rotate the shooting visual angle of the camera.
An exemplary embodiment of the present disclosure provides camera rotating control assemblies, can be realized the camera shooting of disclosure offer Head method of controlling rotation, which includes: processor, for the memory of storage processor executable instruction;
Wherein, processor is configured as:
The rotation instruction that mobile terminal is sent is received, rotation instruction is the sliding trace that the mobile terminal collects user It generates afterwards;
According to the shooting visual angle of the indicated track rotating camera of rotation instruction.
Fig. 9 is shown according to an exemplary embodiment a kind of for controlling the block diagram of camera rotation.For example, device 900 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, and medical treatment is set It is standby, body-building equipment, personal digital assistant etc..
Referring to Fig. 9, device 900 may include following one or more components: processing component 902, memory 904, power supply Component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor module 914, Yi Jitong Believe component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 902 may include that one or more processors 918 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in device 900.These data are shown Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 906 provides electric power for the various assemblies of device 900.Power supply module 906 may include power management system System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 908 includes the screen of one output interface of offer between device 900 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 908 includes One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when device 900 is in operation mode It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor module 914 can detecte the state that opens/closes of device 900, the relative positioning of component, such as component For the display and keypad of device 900, sensor module 914 can be with the position of 900 1 components of detection device 900 or device Set change, the existence or non-existence that user contacts with device 900, the temperature in 900 orientation of device or acceleration/deceleration and device 900 Variation.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 914 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G or their combination.In an exemplary reality It applies in example, communication component 916 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel Breath.In one exemplary embodiment, communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned camera rotation control Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 918 of device 900 to complete above-mentioned camera and rotate Control method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, Tape, floppy disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (15)

1. a kind of camera method of controlling rotation, which is characterized in that be applied in mobile terminal, which comprises
After being successfully established connection with camera, the camera acquired image data are received;
Respective picture is shown according to described image data;
The sliding trace generated when sliding in the picture of display is received, rotation instruction is generated, the rotation instruction is used for Indicate that the camera is rotated according to the sliding trace;
Rotation instruction is sent to the camera, the rotation instruction is for triggering the camera according to the rotation The indicated sliding trace of instruction rotates the shooting visual angle of the camera;
Wherein, the method also includes:
After generating the rotation instruction, if the mobile terminal is shown according to high definition display pattern, it is switched to SD display pattern continues to show the image data obtained from the camera;
It is wherein, described to show respective picture according to described image data, comprising:
When described image data are compressed data, described image data are decompressed according to predetermined decompression mode Contracting, shows the data obtained after decompression according to SD display pattern.
2. the method according to claim 1, wherein the method also includes:
Pivot controls are shown on the interface for showing picture;
When the pivot controls are triggered according to the first triggering mode, generation rotates clockwise instruction, by the described suitable of generation Hour hands rotation instruction is sent to the camera, it is described rotate clockwise instruction and be used to indicate the camera rotate clockwise institute State the shooting visual angle of camera;
When the pivot controls are triggered according to the second triggering mode, rotation instruction counterclockwise is generated, by the described inverse of generation Hour hands rotation instruction is sent to the camera, and the rotation instruction counterclockwise is used to indicate the camera and rotates institute counterclockwise State the shooting visual angle of camera;
Wherein, first triggering mode is persistently to trigger scheduled duration or trigger duration less than one in the scheduled duration Kind, second triggering mode is persistently to trigger the scheduled duration or the triggering duration less than in the scheduled duration It is another.
3. the method according to claim 1, wherein described show respective picture according to described image data, also Include:
When described image data are unpressed data, described image data are shown according to high definition display pattern.
4. a kind of camera method of controlling rotation, which is characterized in that be applied in camera, which comprises
The rotation instruction that mobile terminal is sent is received, the rotation instruction is the sliding trace that the mobile terminal collects user It generates afterwards;
The shooting visual angle of the camera is rotated according to the indicated sliding trace of the rotation instruction;
Wherein, the method also includes:
When rotating the shooting visual angle of the camera, real-time acquired image data are compressed;
Compressed image data is sent to the mobile terminal, the compressed image data is for triggering the movement Terminal shows described image data according to SD display pattern;Wherein, if the mobile terminal is aobvious according to high definition Show that mode is shown, then can be switched to SD display pattern.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The high definition instruction that the mobile terminal is sent is received, the acquired image data are sent in real time described mobile whole End, the high definition instruction is that the mobile terminal is sent to the camera when selecting high definition display pattern;
The SD instruction that the mobile terminal is sent is received, the acquired image data are compressed, by the compression Image data afterwards is sent to the mobile terminal, and the SD instruction is the mobile terminal when selecting SD display pattern It is sent to the camera.
6. method according to claim 4 or 5, which is characterized in that the method also includes:
Receive the mobile terminal transmission rotates clockwise instruction, rotates clockwise the camera shooting according to predetermined rotary speed The shooting visual angle of head;
The rotation counterclockwise instruction that the mobile terminal is sent is received, rotates the camera shooting counterclockwise according to predetermined rotary speed The shooting visual angle of head.
7. a kind of camera rotating control assembly, which is characterized in that be applied in mobile terminal, described device includes:
Receiving module is configured as when being successfully established connection with camera, receives the camera acquired image data;
First display module is configured as showing respective picture according to described image data;
First generation module is configured as receiving the sliding trace generated when sliding in the picture of display, generates rotation Instruction, the rotation instruction are used to indicate the camera and are rotated according to the sliding trace;
Sending module is configured as the rotation instruction that first generation module generates being sent to the camera, institute It states rotation instruction and rotates the camera shooting according to the indicated sliding trace of the rotation instruction for triggering the camera The shooting visual angle of head;
Wherein, described device further include:
Switching module is configured as generating after the rotation instructs in first generation module, when the mobile terminal When being shown according to high definition display pattern, it is switched to SD display pattern and continues to show the picture number obtained from the camera According to;
Wherein, the receiving module, comprising:
Second display sub-module is configured as when the received described image data of the receiving module are compressed data, Described image data are unziped it according to predetermined decompression mode, according to SD display pattern to the number obtained after decompression According to being shown.
8. device according to claim 7, which is characterized in that described device further include:
Second display module is configured as showing pivot controls on the interface for showing picture;
Second generation module, the pivot controls for being configured as showing when second display module are by according to the first triggering side When formula triggers, generation rotates clockwise instruction, and instruction will be rotated clockwise described in generation and is sent to the camera, described suitable Hour hands rotation instruction is used to indicate the shooting visual angle that the camera rotates clockwise the camera;
Third generation module, the pivot controls for being configured as showing when second display module are by according to the second triggering side When formula triggers, rotation instruction counterclockwise is generated, the rotation instruction counterclockwise of generation is sent to the camera, it is described inverse Hour hands rotation instruction is used to indicate the shooting visual angle that the camera rotates the camera counterclockwise;
Wherein, first triggering mode is persistently to trigger scheduled duration or trigger duration less than one in the scheduled duration Kind, second triggering mode is persistently to trigger the scheduled duration or the triggering duration less than in the scheduled duration It is another.
9. device according to claim 7, which is characterized in that the receiving module, further includes:
First display sub-module is configured as when the received described image data of the receiving module are unpressed data, Described image data are shown according to high definition display pattern.
10. a kind of camera rotating control assembly, which is characterized in that be applied in camera, described device includes:
First receiving module, is configured as the rotation instruction that reception mobile terminal is sent, and the rotation instruction is described mobile whole End, which collects, to be generated after the sliding trace of user;
First rotary module is configured as the sliding rail indicated according to the received rotation instruction of first receiving module Mark rotates the shooting visual angle of the camera;
Wherein, described device further include:
Compression module is configured as carrying out real-time acquired image data when rotating the shooting visual angle of the camera Compression;
First sending module is configured as the compressed image data of the compression module being sent to the mobile terminal, institute Compressed image data is stated to show described image data according to SD display pattern for triggering the mobile terminal; Wherein, if the mobile terminal is shown according to high definition display pattern, SD display pattern can be switched to.
11. device according to claim 10, which is characterized in that described device further include:
Second sending module is configured as receiving the high definition instruction that the mobile terminal is sent, by the acquired image number The mobile terminal is sent to when factually, the high definition instruction is that the mobile terminal is sent to when selecting high definition display pattern The camera;
Third sending module is configured as receiving the SD instruction that the mobile terminal is sent, by the acquired image number According to being compressed, the compressed image data is sent to the mobile terminal, the SD instruction is described mobile whole End is sent to the camera when selecting SD display pattern.
12. device described in 0 or 11 according to claim 1, which is characterized in that described device further include:
Second rotary module, is configured as receiving that the mobile terminal sends rotates clockwise instruction, according to predetermined rotation Clockwise direction rotates the shooting visual angle of the camera;
Third rotary module is configured as receiving the rotation counterclockwise instruction that the mobile terminal is sent, according to predetermined rotation Speed rotates the shooting visual angle of the camera counterclockwise.
13. a kind of camera rotation control system, which is characterized in that the system comprises mobile terminals and camera;
The mobile terminal includes the camera rotating control assembly as described in any in claim 7 to 9;
The camera includes the camera rotating control assembly as described in any in claim 10 to 12.
14. a kind of camera rotating control assembly, which is characterized in that be applied in mobile terminal, described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
After being successfully established connection with camera, the camera acquired image data are received;
Respective picture is shown according to described image data;
The sliding trace generated when sliding in the picture of display is received, rotation instruction is generated, the rotation instruction is used for Indicate that the camera is rotated according to the sliding trace;
Rotation instruction is sent to the camera, the rotation instruction is for triggering the camera according to the rotation The indicated sliding trace of instruction rotates the shooting visual angle of the camera;
Wherein, the processor is also configured to
After generating the rotation instruction, if the mobile terminal is shown according to high definition display pattern, it is switched to SD display pattern continues to show the image data obtained from the camera;
It is wherein, described to show respective picture according to described image data, comprising:
When described image data are compressed data, described image data are decompressed according to predetermined decompression mode Contracting, shows the data obtained after decompression according to SD display pattern.
15. a kind of camera rotating control assembly, which is characterized in that be applied in camera, described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
The rotation instruction that mobile terminal is sent is received, the rotation instruction is the sliding trace that the mobile terminal collects user It generates afterwards;
The shooting visual angle of the camera is rotated according to the indicated sliding trace of the rotation instruction;
Wherein, the processor is also configured to
When rotating the shooting visual angle of the camera, real-time acquired image data are compressed;
Compressed image data is sent to the mobile terminal, the compressed image data is for triggering the movement Terminal shows described image data according to SD display pattern;Wherein, if the mobile terminal is aobvious according to high definition Show that mode is shown, then can be switched to SD display pattern.
CN201510642168.7A 2015-09-30 2015-09-30 Camera method of controlling rotation and device Active CN105245778B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510642168.7A CN105245778B (en) 2015-09-30 2015-09-30 Camera method of controlling rotation and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510642168.7A CN105245778B (en) 2015-09-30 2015-09-30 Camera method of controlling rotation and device

Publications (2)

Publication Number Publication Date
CN105245778A CN105245778A (en) 2016-01-13
CN105245778B true CN105245778B (en) 2019-02-12

Family

ID=55043256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510642168.7A Active CN105245778B (en) 2015-09-30 2015-09-30 Camera method of controlling rotation and device

Country Status (1)

Country Link
CN (1) CN105245778B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101505B (en) * 2016-07-29 2017-11-17 广东欧珀移动通信有限公司 Image pickup processing method, device and terminal device
CN106657760B (en) * 2016-09-29 2020-03-17 北京小米移动软件有限公司 Camera control method and device
WO2019033289A1 (en) * 2017-08-16 2019-02-21 天彩电子(深圳)有限公司 System and method for expanding field of view of video camera
CN109785442B (en) * 2018-12-11 2023-07-11 平安科技(深圳)有限公司 Image rotation control method and device, and image rotation display method and system
CN109889751B (en) * 2019-04-18 2020-09-15 东北大学 Portable shooting and recording device for speech content based on optical zooming
CN114194056B (en) * 2021-12-09 2024-03-01 北京有竹居网络技术有限公司 Vehicle charging method and device and electronic equipment
CN114286012B (en) * 2022-01-29 2023-11-24 青岛海信智慧生活科技股份有限公司 Monitoring equipment, control method thereof and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002174840A (en) * 2000-12-08 2002-06-21 Matsushita Electric Ind Co Ltd Preset monitoring device
CN101699858A (en) * 2009-11-06 2010-04-28 深圳华为通信技术有限公司 Control method of camera head, control terminal and camera system
CN103336534A (en) * 2013-06-07 2013-10-02 浙江宇视科技有限公司 Method for controlling holder camera on touch screen of monitor terminal
CN104834447A (en) * 2015-05-19 2015-08-12 广东欧珀移动通信有限公司 Rotating control method and system for rotating camera and camera device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002174840A (en) * 2000-12-08 2002-06-21 Matsushita Electric Ind Co Ltd Preset monitoring device
CN101699858A (en) * 2009-11-06 2010-04-28 深圳华为通信技术有限公司 Control method of camera head, control terminal and camera system
CN103336534A (en) * 2013-06-07 2013-10-02 浙江宇视科技有限公司 Method for controlling holder camera on touch screen of monitor terminal
CN104834447A (en) * 2015-05-19 2015-08-12 广东欧珀移动通信有限公司 Rotating control method and system for rotating camera and camera device

Also Published As

Publication number Publication date
CN105245778A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN105245778B (en) Camera method of controlling rotation and device
CN105516754B (en) Picture display control method, device and terminal
CN105828201B (en) Method for processing video frequency and device
KR101450580B1 (en) Method and Apparatus for composing images
CN105100829B (en) Video content intercept method and device
CN106488251B (en) Realize the method and device, main broadcaster's client and user client for connecting wheat in live streaming
CN106020592A (en) Split screen display method and device
CN105791958A (en) Method and device for live broadcasting game
CN104954719B (en) A kind of video information processing method and device
CN104639977B (en) The method and device that program plays
CN104090709B (en) Picture switching method and device
CN105120301B (en) Method for processing video frequency and device, smart machine
CN104202614B (en) A kind of method of Network Environment adjustment video image quality and device
CN107820006A (en) Control the method and device of camera shooting
CN104092749A (en) Method and device for synchronizing photos
CN104216525A (en) Method and device for mode control of camera application
CN105786507A (en) Display interface switching method and device
CN106210495A (en) Image capturing method and device
CN106792074A (en) Intelligent television control method and device
CN110933289A (en) Continuous shooting method based on binocular camera, shooting device and terminal equipment
KR20100041108A (en) Moving picture continuous capturing method using udta information and portable device supporting the same
CN106681632A (en) Projection control method, device and system, terminal device and display device
CN107071328B (en) A kind of video calling processing method and mobile terminal
CN105119984B (en) Send the method and device of file
CN106572306A (en) Image shooting method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant