CN104883492B - A kind of camera method of controlling rotation and terminal - Google Patents
A kind of camera method of controlling rotation and terminal Download PDFInfo
- Publication number
- CN104883492B CN104883492B CN201510129999.4A CN201510129999A CN104883492B CN 104883492 B CN104883492 B CN 104883492B CN 201510129999 A CN201510129999 A CN 201510129999A CN 104883492 B CN104883492 B CN 104883492B
- Authority
- CN
- China
- Prior art keywords
- camera
- slide
- target
- speed
- touch
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000001514 detection method Methods 0.000 claims abstract description 43
- 230000001276 controlling effect Effects 0.000 claims description 37
- 230000001105 regulatory effect Effects 0.000 claims description 31
- 230000006870 function Effects 0.000 claims description 16
- 230000006399 behavior Effects 0.000 description 16
- 210000003128 head Anatomy 0.000 description 10
- 238000003860 storage Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000002045 lasting effect Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Landscapes
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a kind of camera method of controlling rotation, including:Detection user touches slide in the target for being used to control camera to rotate that camera preview interface inputs;Determine that the target touches the sliding speed of slide;The rotary speed according to corresponding to determining the sliding speed;Control camera is rotated with the rotary speed.The embodiment of the invention also discloses a kind of terminal.Using the embodiment of the present invention, it is possible to achieve camera is rotated with friction speed.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of camera method of controlling rotation and terminal.
Background technology
With the continuous progress and development of electronic technology, electronic rotation camera has been configured with increasing terminal,
Such as mobile phone, tablet personal computer intelligent terminal.When being shot by being configured with the intelligent terminal of electronic rotation camera, user
It can be rotated by gesture control camera, and then adjust shooting visual angle in real time.
But practice is found, in current camera rotation implementation, it is only capable of realizing that camera is carried out with single speed
Rotation.
The content of the invention
The embodiment of the invention discloses a kind of camera method of controlling rotation and terminal, it is possible to achieve camera is not with synchronized
Degree is rotated.
First aspect of the embodiment of the present invention discloses a kind of camera method of controlling rotation, including:
Detection user touches slide in the target for being used to control camera to rotate that camera preview interface inputs;
Determine that the target touches the sliding speed of slide;
The rotary speed according to corresponding to determining the sliding speed;
Control camera is rotated with the rotary speed.
Wherein, the sliding speed for determining the target and touching slide, including:
At the end of detecting that the target touches slide, according to the target touch slide it is lasting when
Between, and sliding distance corresponding to target touch slide, determine that the target touches the sliding speed of slide.
Wherein, after the control camera is rotated with the rotary speed, in addition to:
What detection user inputted is used to control the first operational order that camera stops the rotation;
First operational order is responded, controls the camera to stop the rotation.
Wherein, the sliding speed for determining the target and touching slide, including:
Before detecting that the target touch slide terminates, obtain the target every predetermined time period and touch
Sliding distance of the slide in the predetermined time period;
According to the sliding distance in the predetermined time period, determine that the target touches slide when described default
Between sliding speed in length.
Wherein, the rotary speed according to corresponding to determining the sliding speed, including:
According to the sliding speed in current preset time span, the rotation speed in adjacent next predetermined time period is determined
Degree;Wherein, the initial rotation speed of the camera is 0 or default rotary speed.
Wherein, the rotary speed according to corresponding to determining the sliding speed, including:
Using the sliding speed as foundation, the corresponding relation of the sliding speed pre-set and rotary speed is inquired about, with true
Rotary speed corresponding to the fixed sliding speed.
Wherein, the rotary speed according to corresponding to determining the sliding speed, including:
Using the sliding speed as foundation, the default sliding speed set pass corresponding with rotary speed regulatory factor is inquired about
System, determines rotary speed regulatory factor corresponding to the sliding speed;
According to default rotary speed and the rotary speed regulatory factor, rotation speed corresponding to the sliding speed is determined
Degree.
Wherein, the detection user touches in the target for being used to control camera to rotate that camera preview interface inputs and slided
Before dynamic operation, in addition to:
Detect the second operational order of the unlatching camera of user's input;
Second operational order is responded, camera preview interface is exported in touch-screen.
Wherein, the detection user touches in the target for being used to control camera to rotate that camera preview interface inputs and slided
Dynamic operation, including:
When detecting that user's both hands refer in camera preview interface touch slip, judge that user's both hands refer to just
Whether the touch point for beginning to touch the camera preview interface meets preparatory condition;
Slided if satisfied, determining that user's both hands refer to touch in the camera preview interface as controlling camera
The target of rotation touches slide.
Wherein, the detection user touches in the target for being used to control camera to rotate that camera preview interface inputs and slided
After dynamic operation, in addition to:
Determine that the target touches rotary mode corresponding to slide;
The control camera is rotated with the rotary speed, including:
The camera is controlled to be rotated with the rotary speed, and the rotary mode.
Second aspect of the embodiment of the present invention discloses a kind of terminal, including:
Detection module, touched for detecting user in the target for being used to control camera to rotate that camera preview interface inputs
Touch slide;
First determining module, for determining that the target touches the sliding speed of slide;
Second determining module, for the rotary speed according to corresponding to sliding speed determination;
Control module, for controlling camera to be rotated with the rotary speed.
Wherein, first determining module, specifically for sliding behaviour when the detection module detects that the target touches
At the end of work, slide duration is touched according to the target, and the target is touched and slided corresponding to slide
Dynamic distance, determine that the target touches the sliding speed of slide.
Wherein, the detection module, it is additionally operable to detect the first behaviour for being used to control camera to stop the rotation of user's input
Instruct;
The control module, it is additionally operable to respond first operational order, controls the camera to stop the rotation.
Wherein, first determining module, behaviour is slided specifically for detecting that the target touches in the detection module
Before work terminates, obtain the target every predetermined time period and touch slip of the slide in the predetermined time period
Distance;According to the sliding distance in the predetermined time period, determine that the target touches slide in the preset time
Sliding speed in length.
Wherein, second determining module, specifically for according to the sliding speed in current preset time span, determining phase
Rotary speed in adjacent next predetermined time period;Wherein, the initial rotation speed of the camera is 0 or default rotation speed
Degree.
Wherein, second determining module, specifically for using the sliding speed as foundation, inquiring about the slip pre-set
The corresponding relation of speed and rotary speed, to determine rotary speed corresponding to the sliding speed.
Wherein, second determining module, specifically for using the sliding speed as foundation, inquiring about the default slip set
Speed and the corresponding relation of rotary speed regulatory factor, determine rotary speed regulatory factor corresponding to the sliding speed;According to
Default rotary speed and the rotary speed regulatory factor, determine rotary speed corresponding to the sliding speed.
Wherein, the detection module, it is additionally operable to detect the second operational order of the unlatching camera of user's input;
The terminal also includes:
Output module, for responding second operational order, camera preview interface is exported in touch-screen.
Wherein, the detection module, detect that user's both hands refer in camera preview interface touch specifically for working as
During slip, judge that user's both hands refer to the touch point of camera preview interface described in initial touch and whether meet preparatory condition;
Slided if satisfied, determining that user's both hands refer to touch in the camera preview interface as the mesh for controlling camera to rotate
Mark touches slide.
Wherein, first determining module, it is additionally operable to when detection module detection user is defeated in camera preview interface
After the target for being used to control camera to rotate entered touches slide, determine the target to touch corresponding to slide and revolve
Rotary-die type;
The control module, specifically for controlling the camera to enter with the rotary speed, and the rotary mode
Row rotation.
Implement the embodiment of the present invention, have the advantages that:
Behaviour is slided when detecting that user touches in the target for being used to control camera to rotate that camera preview interface inputs
When making, can according to the target touch slide sliding speed determine corresponding to rotary speed, and then control camera with
The rotary speed is rotated, and so as to realize that camera is rotated with friction speed, improves camera rotation control
Flexibility.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability
For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached
Figure.
Fig. 1 is a kind of configuration diagram of camera method of controlling rotation provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another camera method of controlling rotation provided in an embodiment of the present invention;
Fig. 2A is a kind of schematic diagram of coordinate system provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another camera method of controlling rotation provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another terminal provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only the part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of camera method of controlling rotation and terminal, it is possible to achieve camera is not with synchronized
Degree is rotated.It is described in detail individually below.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of camera method of controlling rotation disclosed in the embodiment of the present invention.
As shown in figure 1, the camera method of controlling rotation may comprise steps of:
S101, detection user touch in the target for being used to control camera to rotate that camera preview interface inputs slides behaviour
Make.
In the embodiment of the present invention, the above method can apply to be configured with (such as electronic rotation shooting of rotatable camera
Head) and touch-screen intelligent terminal, such as smart mobile phone, tablet personal computer, palm PC.For ease of understanding and describing, below
Method described above is applied to exemplified by smart mobile phone (hereinafter referred to as mobile phone).
In the embodiment of the present invention, when user is shot by mobile phone, user can pass through assigned operation gesture control
Camera rotates, to adjust shooting visual angle.
Slided for example, user can refer to touch in camera preview interface by both hands to control camera to rotate, or
Person, user can touch slip to control camera to rotate by single finger in camera preview interface.
S102, determine that the target touches the sliding speed of slide.
In optional embodiment one, determine that target touches the sliding speed of slide, can include:
At the end of the target slide is detected, according to the target slide duration, and the target
Sliding distance corresponding to touching slide, determine that the target touches the sliding speed of slide.
In the optional embodiment one, mobile phone detects that user is used for control shooting what camera preview interface inputted
When the target of head rotation touches slide, camera rotation can be just controlled at the end of the target touches slide.
Specifically, when mobile phone detect user camera preview interface input be used for control camera rotate target
When touching slide, mobile phone can count the target and touch slide duration, and the target touches and slides behaviour
Sliding distance corresponding to work;At the end of mobile phone detects target slide, mobile phone can touch according to the target counted
Slide duration, and sliding distance corresponding to target touch slide, determine that the target touches and slide behaviour
The sliding speed of work.
For example, it is assumed that at the end of mobile phone detects that target touches slide, the target of mobile phone statistics, which touches, slides behaviour
It is t to make duration, and sliding distance corresponding to target touch slide is s, then the target touches the slip of slide
Speed v=s/t.
In optional embodiment two, determine that target touches the sliding speed of slide, can include:
Before detecting that target touch slide terminates, obtain the target every predetermined time period and touch slip behaviour
Make the sliding distance in the predetermined time period;
According to the sliding distance in the predetermined time period, determine that the target touches slide in the predetermined time period
Interior sliding speed.
In the optional embodiment two, mobile phone detects that user is used for control shooting what camera preview interface inputted
, can be in the time-continuing process that the target touches slide when the target of head rotation touches slide, control shooting in real time
Head rotation.
Specifically, when mobile phone detect user camera preview interface input be used for control camera rotate target
When touching slide, mobile phone can be before target touch slide terminates, every predetermined time period (preset time
Length can be set according to actual scene, such as 100ms, 200ms) obtain cunning of the target touch slide in preset time
Dynamic distance, and according to the sliding distance in the preset time, determine that target touches slip of the slide in the preset time
Speed.
For example, mobile phone detect user camera preview interface input be used for control camera rotate target touch
When touching slide, target can be obtained every 200ms and touch sliding distance of the slide in the preset time, it is assumed that hand
The sliding distance of the target slide in certain 200ms that machine is got is △ s, then mobile phone can determine that the target touches cunning
Dynamic operation is △ s/200ms in the sliding speed of the preset time.
S103, the rotary speed according to corresponding to determining the sliding speed.
As an alternative embodiment, in embodiments of the present invention, in order to realize that camera is rotated with friction speed,
Corresponding relation (the i.e. sliding speed and rotation of the sliding speed for touching slide and the rotary speed of camera can be pre-set
The corresponding relation of rotary speed).After mobile phone determines that target touches the sliding speed of slide, mobile phone can be according to setting in advance
The sliding speed and the corresponding relation of rotary speed put, determine that target touches rotation speed corresponding to the sliding speed of slide
Degree.Preferably, the sliding speed for touching slide is directly proportional to the rotary speed of camera.
As an example it is assumed that the sliding speed and the corresponding relation of rotary speed that pre-set (wherein, v3 as shown in table 1
> v2 > v1, the rotary speed are motor of camera rotating speed, similarly hereinafter):
Table 1
Sliding speed (mm/s, millimeter are per second) | Rotary speed (r/s, revolution per second) |
(0, v1] | n1 |
(v1, v2] | n2 |
(v2, v3] | n3 |
… | … |
If mobile phone determines that the sliding speed that target touches slide is v2, mobile phone can be inquired about according to the sliding speed
The corresponding relation of sliding speed and rotary speed shown in table 1, it is n2 to determine rotary speed corresponding to the sliding speed (v2).
As another optional embodiment, in embodiments of the present invention, in order to realize that camera is revolved with friction speed
Turn, the default rotary speed of camera can be pre-set, and set the sliding speed for touching slide and camera to rotate
The corresponding relation (i.e. the corresponding relation of sliding speed and regulatory factor) of speed regulatory factor.Slided when mobile phone determines that target touches
After the sliding speed of operation, mobile phone can determine mesh according to the sliding speed and the corresponding relation of regulatory factor pre-set
Mark touches target regulatory factor corresponding to the sliding speed of slide, and then according to the target regulatory factor and default rotation
Speed, determine that target touches rotary speed corresponding to the sliding speed of slide.
As an example it is assumed that the sliding speed pre-set and the corresponding relation of regulatory factor (R) are as shown in table 2 (wherein,
V3 > v2 > v1):
Table 2
Sliding speed (mm/s) | R |
(0, v1] | R1 |
(v1, v2] | R2 |
(v2, v3] | R3 |
… | … |
If mobile phone determines that the sliding speed that target touches slide is v1, mobile phone can be inquired about according to the sliding speed
The corresponding relation of sliding speed and regulatory factor shown in table 2, it is R1 to determine regulatory factor corresponding to the sliding speed (v1), then
It is v0*R1 (assuming that default rotary speed that mobile phone, which can determine that target touches rotary speed corresponding to the sliding speed of slide,
For v0).
S104, control camera are rotated with the rotary speed.
In the embodiment of the present invention, after mobile phone determines that target touches rotary speed corresponding to the sliding speed of slide,
Camera can be controlled to be rotated with the rotary speed.
As an alternative embodiment, if mobile phone, at the end of detecting that target touches slide, just control is taken the photograph
Picture head rotates (corresponding to the optional embodiment one in above-mentioned steps S102), then mobile phone detects that target touches slide knot
Shu Shi, rotary speed (target rotation corresponding to the sliding speed determination of slide can be touched according to the target itself determined
Speed), control camera is rotated with the target rotational speed.
In the optional embodiment, after above-mentioned steps S104, it can also comprise the following steps:
What detection user inputted is used to control the first operational order that camera stops the rotation;
First operational order is responded, controls the camera to stop the rotation.
Wherein, first operational order can include but is not limited to click any region of touch-screen, double-click touch-screen
Any region, click and function button etc. is specified in touch-screen.
Specifically, in the optional embodiment, when user is shot using mobile phone, user can be existed with finger
Touch and slided to control camera to rotate in camera preview interface.Mobile phone detects what user inputted in camera preview interface
For control camera rotate target touch-control slide when, target touch-control slide duration can be counted, with
And sliding distance corresponding to target touch-control slide;At the end of mobile phone detects target touch-control slide, mobile phone can be with
Sliding distance corresponding to slide is touched according to the target touch-control slide duration that itself is counted, and target,
The sliding speed of target touch-control slide, and then the rotary speed according to corresponding to determining the sliding speed are determined, and with the rotation
Rotary speed control camera is rotated.When user determines that camera has had rotated to suitable position, user can lead to
Cross and click touch-screen operational order for controlling camera to stop the rotation is inputted to mobile phone;Mobile phone receives the operational order
When, the operational order can be responded, control camera stops the rotation.
As another optional embodiment, if mobile phone is detecting that user is used for what camera preview interface inputted
When controlling the target of camera rotation to touch slide, in the time-continuing process that target touches slide, control in real time is taken the photograph
Picture head rotates (corresponding to the optional embodiment two in above-mentioned steps S102), then mobile phone detects user in camera preview circle
When the target of face input touches slide, can the slide of monitoring objective touch in real time sliding speed, and then according to this
Rotary speed corresponding to sliding speed determination, and control camera to be rotated with the rotary speed, until detecting that target is touched
At the end of touching slide, control camera stops the rotation.
In the optional embodiment, in above-mentioned steps S103, determine that target touches the sliding speed of slide, can
With including:
Before detecting that target touch slide terminates, obtain target every predetermined time period and touch slide
Sliding distance in the predetermined time period;
According to the sliding distance in the predetermined time period, determine that the target touches slide in the predetermined time period
Interior sliding speed.
Correspondingly, in above-mentioned steps S104, the rotary speed according to corresponding to determining sliding speed, can include:
According to the sliding speed in current preset time span, the rotation speed in adjacent next predetermined time period is determined
Degree;Wherein, the initial rotation speed of camera is 0 or default rotary speed.
Specifically, in the optional embodiment, mobile phone detects that user is used to control what camera preview interface inputted
During the target touch-control slide of camera rotation processed, mobile phone can first control camera (can basis with default rotary speed
Practical application scene is set, such as 5r/s) rotated, meanwhile, mobile phone can be with the slip of real-time statistics target touch-control slide
Distance, and obtain the target every predetermined time period and touch sliding distance of the slide in the predetermined time period, and
According to the sliding distance in the predetermined time period, determine that target touches slip speed of the slide in the predetermined time period
Degree, and then, mobile phone can control camera to be rotated with the sliding speed in next predetermined time period.
As an example it is assumed that predetermined time period is 200ms, it is 5r/s to preset rotary speed, then when mobile phone detects use
Family is when the target for being used to control camera to rotate that camera preview interface inputs touches slide, in first 200ms
(it is the 0ms of initial time (0ms) at the time of to detect that the target touches slide to the 200ms times in time
It is interior), mobile phone can control camera to be rotated with 5r/s, meanwhile, mobile phone can touch slide with real-time statistics target and exist
Sliding distance in the 200ms, determine that target touches sliding speed of the slide in the 200ms according to the sliding distance,
And according to the sliding speed determine corresponding to rotary speed (being assumed to be 10r/s), and then, 200ms to 400ms this
In the 200ms times, mobile phone can control camera to be rotated with 10r/s, meanwhile, mobile phone is further determined that in the 200ms
Sliding speed, and (400ms to 600ms) controls camera to rotate speed corresponding to the sliding speed in next 200ms
Degree is rotated, until at the end of mobile phone detects that target touches slide, control camera stops the rotation.
Wherein, in embodiments of the present invention, user is used to control what camera rotated what camera preview interface inputted
Target touch slide can include single finger touch slip or both hands refer to touch slip.
Correspondingly, when target touch slide be single finger touch slide when, target touches that slide terminates can be with
Including leaving touch-screen for touching the finger slided;
When it is that both hands refer to touch slip that target, which touches slide, target touches slide and terminates to include at least
One finger for being used to touch slip leaves touch-screen.
It can be seen that in the method flow described by Fig. 1, when detecting that user is used to control what camera preview interface inputted
When the target of camera rotation processed touches slide, the sliding speed that slide can be touched according to the target determines to correspond to
Rotary speed, and then control camera rotated with the rotary speed, so as to realize that camera is entered with friction speed
Row rotation, improve the flexibility of camera rotation control.
Referring to Fig. 2, the flow that Fig. 2 is another camera method of controlling rotation disclosed in the embodiment of the present invention is illustrated
Figure.As shown in Fig. 2 the camera method of controlling rotation may comprise steps of:
S201, the second operational order for opening camera of detection user's input.
S202, second operational order is responded, camera preview interface is exported in touch-screen.
In the embodiment of the present invention, when user wants to be shot by mobile phone, user can open in mobile phone to be had
The application (such as camera application) of shoot function, e.g., user can click the icon of " camera " application installed in mobile phone, to hand
The operational order of camera is opened in machine input., can be with when mobile phone detects the operational order of unlatching camera of user's input
The operational order is responded, camera preview interface is exported in touch-screen.
S203, detection user touch in the target for being used to control camera to rotate that camera preview interface inputs slides behaviour
Make.
In the embodiment of the present invention, the operational order for the unlatching camera that mobile phone inputs according to user, exported in touch-screen
After camera preview interface, the mesh for being used to control camera to rotate that user inputs in the camera preview interface can be detected
Mark touches slide.
In the embodiment of the present invention, user touches in the target for being used to control camera to rotate that camera preview interface inputs
Slide can touch slip on the touchscreen including user's single finger or user's both hands refer to touch on the touchscreen and slided.
As an alternative embodiment, in the embodiment of the present invention, what detection user inputted in camera preview interface
For controlling the target that camera rotates to touch slide, including:
When detecting that user's both hands refer in the touch slip of camera preview interface, judge that user's both hands refer to initial touch
Whether the touch point of the camera preview interface meets preparatory condition;
Slided if satisfied, determining that user's both hands refer to touch in camera preview interface as controlling camera rotation
Target touches slide.
Specifically, in the optional embodiment, when the target for controlling camera to rotate touches slide bag
When including both hands and referring to touch and slide, it is contemplated that in existing many applications with shoot function, both hands refer in camera preview circle
It is digital zoom that generally corresponding function is slided in touch close to each other or being located remotely from each other in face, in order that mobile phone can identify use
Family both hands refer to touch and slide in camera preview interface corresponding to operational order (digital zoom or control camera rotation), can be with
Trigger condition corresponding to digital zoom functions and camera spinfunction is pre-set, is being taken the photograph when mobile phone detects that user's both hands refer to
As when head preview interface, which touches, to be slided, can determine that the both hands refer to touch according to the trigger condition and operated corresponding to slide
Instruction.
Taken the photograph as an example it is assumed that trigger condition corresponding to the camera spinfunction pre-set refers to initial touch for both hands
As the difference of the abscissa of the touch point (two touch points) of head preview interface is less than first threshold, corresponding to digital zoom functions
Trigger condition is that the difference of the abscissa for the touch point that both hands refer to initial touch camera preview interface is more than or equal to the first threshold
Value;Then when mobile phone detect user's both hands refer to touch camera preview interface when, user's both hands can be obtained refer to initial touch and take the photograph
As the coordinate of two touch points of head preview interface, and judge whether the difference of the abscissa of two touch points is less than the first threshold
Value, if being less than, control mobile phone enters camera rotary mode, and it is for controlling camera to determine that user's both hands refer to touch to slide
The operating gesture of rotation;Otherwise, control mobile phone enters digital zoom pattern, and it is for numeral to determine that user's both hands refer to touch to slide
The operating gesture of zoom.
Wherein, the abscissa of above-mentioned touch point is using plane where touch-screen as coordinate system, and the schematic diagram of the coordinate system can be with
As shown in Figure 2 A.
It should be appreciated that the abscissa described above for referring to the initial touch point in camera preview interface with both hands
Difference whether to be less than first threshold as the trigger condition of digital zoom functions or camera spinfunction be only of the invention
A kind of specific example of embodiment, and be not limiting the scope of the present invention, i.e., in embodiments of the present invention, camera
The trigger condition of spinfunction can also be to include other situations, for example, can be referred to both hands in camera preview interface
Whether the difference of the ordinate of initial touch point is less than Second Threshold as the tactile of digital zoom functions or camera spinfunction
Clockwork spring part etc., its specific implementation repeat no more herein.
S204, determine that the target touches the sliding speed of slide.
S205, the rotary speed according to corresponding to determining the sliding speed.
S206, control camera are rotated with the rotary speed.
In the embodiment of the present invention, above-mentioned steps S204~S205 specific implementation may refer to above-mentioned steps S102~S104
In associated description, will not be repeated here.
Referring to Fig. 3, the flow that Fig. 3 is another camera method of controlling rotation disclosed in the embodiment of the present invention is illustrated
Figure.As shown in figure 3, the camera method of controlling rotation may comprise steps of:
S301, detection user touch in the target for being used to control camera to rotate that camera preview interface inputs slides behaviour
Make.
S302, determine that the target touches sliding speed corresponding to slide, and the target touches slide and corresponded to
Rotary mode.
S303, the rotary speed according to corresponding to determining the sliding speed.
S304, control camera are with the rotary speed, and the rotary mode is rotated.
In the embodiment of the present invention, when mobile phone detect user camera preview interface input be used for control camera to revolve
When the target turned touches slide, mobile phone on the one hand can be according to the implementation described in above-mentioned steps S102~S103
Determine that the target touches rotary speed corresponding to slide;On the other hand, mobile phone can also touch according to the target and slide behaviour
Make to determine the rotary mode that camera rotates, for example, rotate forward, invert etc..
As an example it is assumed that it is that single finger touch is slided that the above-mentioned target for being used to control camera to rotate, which touches slide,
It is dynamic, then when it is that single finger touches slip upward from the lower section of mobile phone screen that the target, which touches slide, corresponding rotation
Pattern is rotating forward;It is corresponding when it is that single finger touches slip downwards above mobile phone screen that the target, which touches slide,
Rotary mode is reversion.
Again as an example it is assumed that the above-mentioned target touch slide for being used to control camera to rotate refers to touch for both hands and slided
Dynamic, then when target touch slide refers to for both hands is located remotely from each other touch slip, corresponding rotary mode is rotating forward;When this
When target touch slide is that both hands refer to touch slip close to each other, corresponding rotary mode is to invert.
In the embodiment of the present invention, when mobile phone determines that target touches rotary speed corresponding to slide, and rotating mould
After formula, camera can be controlled with the rotary speed, and the rotary mode is rotated.
For example, rotary speed corresponding to the target touch slide that mobile phone determines is 5r/s, rotary mode is rotates forward, then
Mobile phone can control camera to be rotated forward with 5r/s rotating speed.
By above description, in embodiments of the present invention, when detecting what user inputted in camera preview interface
When target for controlling camera to rotate touches slide, it may be determined that the target touches the sliding speed of slide,
And the rotary speed according to corresponding to determining the sliding speed, and then control camera to be rotated with the rotary speed, so as to
To realize that camera is rotated with friction speed, the flexibility of camera rotation control is improved.
It is apparatus of the present invention embodiment below, apparatus of the present invention embodiment belongs to same structure with the inventive method embodiment
Think, for performing the method described in the inventive method embodiment.For convenience of description, apparatus of the present invention embodiment only show with
The related part of apparatus of the present invention embodiment, particular technique details do not disclose, refer to the description of the inventive method embodiment,
No longer repeat one by one herein.
Referring to Fig. 4, it is a kind of structural representation of terminal disclosed in the embodiment of the present invention.As shown in figure 4, the terminal can
With including:
Detection module 401, the mesh for being used to control camera to rotate inputted for detecting user in camera preview interface
Mark touches slide;
First determining module 402, for determining that the target touches the sliding speed of slide;
Second determining module 403, for the rotary speed according to corresponding to sliding speed determination;
Control module 404, for controlling camera to be rotated with the rotary speed.
In the embodiment of the present invention, above-mentioned terminal can be configured with rotatable camera (such as electronic rotation camera) with
And the intelligent terminal of touch-screen, such as smart mobile phone, tablet personal computer, palm PC.For ease of understanding and describing, the terminal below
Exemplified by smart mobile phone (hereinafter referred to as mobile phone).
In a kind of alternative embodiment, first determining module 402, it can be specifically used for working as the detection module 401
At the end of detecting that the target touches slide, slide duration is touched according to the target, and it is described
Sliding distance corresponding to target touch slide, determines that the target touches the sliding speed of slide.
Correspondingly, the detection module 401, can be also used for detect user input be used for control camera to stop the rotation
The first operational order;
It the control module 404, can be also used for responding first operational order, control the camera to stop rotation
Turn.
In the alternative embodiment, mobile phone detects that the target for being used to control camera to rotate of user's input touches and slided
During operation, camera rotation can be just controlled at the end of the target touches slide.
Specifically, when mobile phone detects that the target for being used to control camera to rotate of user's input touches slide,
Mobile phone can count the target touch slide duration, and the target touch slide corresponding to slide away from
From;At the end of mobile phone detects target slide, it is lasting that mobile phone can touch slide according to the target counted
Time, and sliding distance corresponding to target touch slide, determine that the target touches the sliding speed of slide.
For example, it is assumed that at the end of mobile phone detects that target touches slide, the target of mobile phone statistics, which touches, slides behaviour
It is t to make duration, and sliding distance corresponding to target touch slide is s, then the target touches the slip of slide
Speed v=s/t.
In another alternative embodiment, first determining module 402, it can be specifically used in the detection module
Before 401 detect that the target touch slide terminates, obtain the target every predetermined time period and touch slip behaviour
Make the sliding distance in the predetermined time period;According to the sliding distance in the predetermined time period, the mesh is determined
Mark touches sliding speed of the slide in the predetermined time period.
Correspondingly, second determining module 403, can be specifically used for according to the slip speed in current preset time span
Degree, determines the rotary speed in adjacent next predetermined time period;Wherein, the initial rotation speed of the camera is 0 or pre-
If rotary speed.
In the alternative embodiment, mobile phone detect user camera preview interface input be used for control camera to revolve
When the target turned touches slide, camera rotation can be controlled in real time in the time-continuing process that the target touches slide
Turn.
Specifically, when mobile phone detect user camera preview interface input be used for control camera rotate target
When touching slide, mobile phone can be before target touch slide terminates, every predetermined time period (preset time
Length can be set according to actual scene, such as 100ms, 200ms) obtain cunning of the target touch slide in preset time
Dynamic distance, and according to the sliding distance in the preset time, determine that target touches slip of the slide in the preset time
Speed.
For example, mobile phone detect user camera preview interface input be used for control camera rotate target touch
When touching slide, target can be obtained every 200ms and touch sliding distance of the slide in the preset time, it is assumed that hand
The sliding distance of the target slide in certain 200ms that machine is got is △ s, then mobile phone can determine that the target touches cunning
Dynamic operation is △ s/200ms in the sliding speed of the preset time.
In a kind of alternative embodiment, second determining module 403, can be specifically used for using the sliding speed as according to
According to, the corresponding relation of the sliding speed pre-set and rotary speed is inquired about, it is fast to determine to rotate corresponding to the sliding speed
Degree.
In the alternative embodiment, in order to realize that camera is rotated with friction speed, touch can be pre-set and slide behaviour
The corresponding relation of the sliding speed of work and the rotary speed of camera (i.e. the corresponding relation of sliding speed and rotary speed).Work as hand
After machine determines the sliding speed that target touches slide, mobile phone can be according to the sliding speed and rotary speed pre-set
Corresponding relation, determine target touch slide sliding speed corresponding to rotary speed.Preferably, slide is touched
Sliding speed is directly proportional to the rotary speed of camera.
In another alternative embodiment, second determining module 403, can be specifically used for using the sliding speed as
Foundation, the default sliding speed set and the corresponding relation of rotary speed regulatory factor are inquired about, determine that the sliding speed is corresponding
Rotary speed regulatory factor;According to default rotary speed and the rotary speed regulatory factor, the sliding speed is determined
Corresponding rotary speed.
In the alternative embodiment, in order to realize that camera is rotated with friction speed, lacking for camera can be pre-set
Rotary speed is saved, and the corresponding relation of the sliding speed for touching slide and camera rotary speed regulatory factor is set (i.e.
The corresponding relation of sliding speed and regulatory factor).After mobile phone determines that target touches the sliding speed of slide, mobile phone can
According to the sliding speed and the corresponding relation of regulatory factor pre-set, to determine that target touches the sliding speed pair of slide
The target regulatory factor answered, and then according to the target regulatory factor and default rotary speed, determine that target touches slide
Sliding speed corresponding to rotary speed.
In an alternative embodiment, the detection module 401, it can be also used for detecting the of the unlatching camera of user's input
Two operational orders;
Correspondingly, please refer to fig. 5, Fig. 5 is the structural representation of another terminal disclosed in the embodiment of the present invention.Its
In, the terminal shown in Fig. 5 is that terminal as shown in Figure 4 optimizes what is obtained, compared with the terminal shown in Fig. 4, shown in Fig. 5
Terminal can also include:
Output module 405, for responding second operational order, camera preview interface is exported in touch-screen.
In an alternative embodiment, the detection module 401, can be specifically used for ought detect that user's both hands refer to takes the photograph described
As when head preview interface, which touches, to be slided, judging that the touch point that user's both hands refer to camera preview interface described in initial touch is
It is no to meet preparatory condition;Slided if satisfied, determining that user's both hands refer to touch in the camera preview interface as controlling
The target of camera rotation processed touches slide.
In an alternative embodiment, first determining module 402, can be also used for when detection module detection user exists
After the target for being used to control camera to rotate of camera preview interface input touches slide, determine that the target touches
Rotary mode corresponding to slide;
The control module 404, it can be specifically used for controlling the camera with the rotary speed, and the rotation
Pattern is rotated.
Referring to Fig. 6, Fig. 6 is the structural representation of another terminal provided in the embodiment of the present invention.As shown in fig. 6,
The terminal includes:At least one processor, 601, for example (,) CPU, user interface 603, memory 604, camera 605, at least one
Individual communication bus 602.Wherein, communication bus 602 is used to realize the connection communication between these components.Wherein, user interface 603
Touch-screen can be included, optional user interface 603 can also include wireline interface, the wave point of standard.Memory 604 can be with
It is high-speed RAM memory or non-labile memory (non-volatile memory), a for example, at least magnetic
Disk storage.Memory 604 optionally can also be at least one storage device for being located remotely from aforementioned processor 601.Wherein
Batch processing code is stored in memory 604, and processor 601 calls the program code stored in memory 604, for performing
Operate below:
Detection user touches in the target for being used to control camera 605 to rotate that camera preview interface inputs and slides behaviour
Make;
Determine that the target touches the sliding speed of slide;
The rotary speed according to corresponding to determining the sliding speed;
Control camera 605 is rotated with the rotary speed.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 to determine that the target touches
The sliding speed of slide, it can specifically include:
At the end of detecting that the target touches slide, according to the target touch slide it is lasting when
Between, and sliding distance corresponding to target touch slide, determine that the target touches the sliding speed of slide.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 to control camera with described
After rotary speed is rotated, following operation can also carry out:
What detection user inputted is used to control the first operational order that camera 605 stops the rotation;
First operational order is responded, controls the camera 605 to stop the rotation.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 to determine that the target touches
The sliding speed of slide, it can specifically include:
Before detecting that the target touch slide terminates, obtain the target every predetermined time period and touch
Sliding distance of the slide in the predetermined time period;
According to the sliding distance in the predetermined time period, determine that the target touches slide when described default
Between sliding speed in length.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 according to the sliding speed
It is determined that corresponding rotary speed, can be specifically included:
According to the sliding speed in current preset time span, the rotation speed in adjacent next predetermined time period is determined
Degree;Wherein, the initial rotation speed of the camera is 0 or default rotary speed.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 according to the sliding speed
It is determined that corresponding rotary speed, can be specifically included:
Using the sliding speed as foundation, the corresponding relation of the sliding speed pre-set and rotary speed is inquired about, with true
Rotary speed corresponding to the fixed sliding speed.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 according to the sliding speed
It is determined that corresponding rotary speed, can be specifically included:
Using the sliding speed as foundation, the default sliding speed set pass corresponding with rotary speed regulatory factor is inquired about
System, determines rotary speed regulatory factor corresponding to the sliding speed;
According to default rotary speed and the rotary speed regulatory factor, rotation speed corresponding to the sliding speed is determined
Degree.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 to detect user in camera
Before the target for being used to control camera to rotate of preview interface input touches slide, following operation can also carry out:
Detect the second operational order of the unlatching camera 605 of user's input;
Second operational order is responded, camera preview interface is exported in touch-screen.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 to detect user in camera
The target for being used to control camera to rotate of preview interface input touches slide, can specifically include:
When detecting that user's both hands refer in camera preview interface touch slip, judge that user's both hands refer to just
Whether the touch point for beginning to touch the camera preview interface meets preparatory condition;
Slided if satisfied, determining that user's both hands refer to touch in the camera preview interface as controlling camera
The target of rotation touches slide.
In an alternative embodiment, processor 601 calls the program code stored in memory 604 to detect user in camera
After the target for being used to control camera to rotate of preview interface input touches slide, following operation can also carry out:
Determine that the target touches rotary mode corresponding to slide;
Processor 601 calls the program code control camera 605 stored in memory 604 to be carried out with the rotary speed
Rotation, can be specifically included:
The camera 605 is controlled to be rotated with the rotary speed, and the rotary mode.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Must must be directed to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be
Combined in an appropriate manner in any one or more embodiments or example.In addition, in the case of not conflicting, this area
Technical staff can be carried out the different embodiments or example and the feature of different embodiments or example described in this specification
With reference to and combination.
Those skilled in the art can be by the different embodiments and the feature of different embodiments described in this specification
It is combined and combines.Module or unit in all embodiments of the invention, universal integrated circuit, such as CPU can be passed through
(Central Processing Unit, central processing unit), or pass through ASIC (Application Specific
Integrated Circuit, application specific integrated circuit) realize.
Step in all embodiments of the invention method can be sequentially adjusted, merged and deleted according to actual needs;
Module or unit in all embodiments of the invention device can be combined, divided and deleted according to actual needs.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include
Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize specific logical function or process
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable
Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries
Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also
That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above
Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention
Type.
The above disclosed right for being only presently preferred embodiments of the present invention, the present invention can not being limited with this certainly
Scope, one of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to right of the present invention
It is required that the equivalent variations made, still fall within and invent covered scope.
Claims (18)
- A kind of 1. camera method of controlling rotation, it is characterised in that including:Detection user touches slide in the target for being used to control camera to rotate that camera preview interface inputs;Determine that the target touches the sliding speed of slide;The rotary speed according to corresponding to determining the sliding speed;Control camera is rotated with the rotary speed;Wherein, the detection user touches in the target for being used to control camera to rotate that camera preview interface inputs and slides behaviour Make, including:When detecting that user's both hands refer in camera preview interface touch slip, judge that user's both hands refer to initial touch Whether the touch point for touching the camera preview interface meets preparatory condition;If satisfied, determine that user's both hands refer to described It is to touch slide for the target for controlling camera to rotate that camera preview interface, which is touched and slided,;Wherein, trigger condition corresponding to camera spinfunction is two touches that both hands refer to initial touch camera preview interface The difference of the abscissa of point is less than first threshold, and trigger condition corresponding to digital zoom functions is that both hands refer to initial touch camera The difference of the abscissa of the touch point of preview interface is more than or equal to first threshold;Wherein, when detecting that user's both hands finger touches When touching camera preview interface, the coordinate that user's both hands refer to two touch points of initial touch camera preview interface is obtained, and Judge whether the difference of the abscissa of two touch points is less than first threshold, terminal enters camera rotating mould if being less than Formula, determine that user's both hands refer to touch and slide as the operating gesture for controlling camera to rotate;Otherwise terminal enters digital zoom Pattern, determine that user's both hands refer to the operating gesture for touching and sliding as digital zoom.
- 2. according to the method for claim 1, it is characterised in that the slip speed for determining the target and touching slide Degree, including:At the end of detecting that the target touches slide, slide duration is touched according to the target, with And sliding distance corresponding to the target touch slide, determine that the target touches the sliding speed of slide.
- 3. according to the method for claim 2, it is characterised in that the control camera is rotated with the rotary speed Afterwards, in addition to:What detection user inputted is used to control the first operational order that camera stops the rotation;First operational order is responded, controls the camera to stop the rotation.
- 4. according to the method for claim 1, it is characterised in that the slip speed for determining the target and touching slide Degree, including:Before detecting that the target touch slide terminates, obtain the target every predetermined time period and touch slip Operate the sliding distance in the predetermined time period;According to the sliding distance in the predetermined time period, determine that the target touches slide and grown in the preset time Sliding speed in degree.
- 5. according to the method for claim 4, it is characterised in that described that speed is rotated according to corresponding to determining the sliding speed Degree, including:According to the sliding speed in current preset time span, the rotary speed in adjacent next predetermined time period is determined;Its In, the initial rotation speed of the camera is 0 or default rotary speed.
- 6. according to the method for claim 1, it is characterised in that described that speed is rotated according to corresponding to determining the sliding speed Degree, including:Using the sliding speed as foundation, the corresponding relation of the sliding speed pre-set and rotary speed is inquired about, to determine State rotary speed corresponding to sliding speed.
- 7. according to the method for claim 1, it is characterised in that described that speed is rotated according to corresponding to determining the sliding speed Degree, including:Using the sliding speed as foundation, the default sliding speed set and the corresponding relation of rotary speed regulatory factor are inquired about, Determine rotary speed regulatory factor corresponding to the sliding speed;According to default rotary speed and the rotary speed regulatory factor, rotary speed corresponding to the sliding speed is determined.
- 8. according to the method for claim 1, it is characterised in that the use that the detection user inputs in camera preview interface Before the target of control camera rotation touches slide, in addition to:Detect the second operational order of the unlatching camera of user's input;Second operational order is responded, camera preview interface is exported in touch-screen.
- 9. according to the method for claim 1, it is characterised in that the use that the detection user inputs in camera preview interface After the target of control camera rotation touches slide, in addition to:Determine that the target touches rotary mode corresponding to slide;The control camera is rotated with the rotary speed, including:The camera is controlled to be rotated with the rotary speed, and the rotary mode.
- A kind of 10. terminal, it is characterised in that including:Detection module, cunning is touched in the target for being used to control camera to rotate that camera preview interface inputs for detecting user Dynamic operation;First determining module, for determining that the target touches the sliding speed of slide;Second determining module, for the rotary speed according to corresponding to sliding speed determination;Control module, for controlling camera to be rotated with the rotary speed;Wherein, the detection module, detect that user's both hands refer in camera preview interface touch slip specifically for working as When, judge that user's both hands refer to the touch point of camera preview interface described in initial touch and whether meet preparatory condition;It is if full Foot, determine that user's both hands refer to touch in the camera preview interface and slide to be touched for the target for controlling camera to rotate Touch slide;Wherein, trigger condition corresponding to camera spinfunction is two touches that both hands refer to initial touch camera preview interface The difference of the abscissa of point is less than first threshold, and trigger condition corresponding to digital zoom functions is that both hands refer to initial touch camera The difference of the abscissa of the touch point of preview interface is more than or equal to first threshold;Wherein, when detecting that user's both hands finger touches When touching camera preview interface, the coordinate that user's both hands refer to two touch points of initial touch camera preview interface is obtained, and Judge whether the difference of the abscissa of two touch points is less than first threshold, terminal enters camera rotating mould if being less than Formula, determine that user's both hands refer to touch and slide as the operating gesture for controlling camera to rotate;Otherwise terminal enters digital zoom Pattern, determine that user's both hands refer to the operating gesture for touching and sliding as digital zoom.
- 11. terminal according to claim 10, it is characterised in thatFirst determining module, at the end of detecting the target touch slide when the detection module, Slide duration is touched according to the target, and the target touches sliding distance corresponding to slide, really The fixed target touches the sliding speed of slide.
- 12. terminal according to claim 11, it is characterised in thatThe detection module, be additionally operable to detect user's input for the first operational order for controlling camera to stop the rotation;The control module, it is additionally operable to respond first operational order, controls the camera to stop the rotation.
- 13. terminal according to claim 10, it is characterised in thatFirst determining module, specifically for detecting that the target touches slide and terminates it in the detection module Before, obtain the target every predetermined time period and touch sliding distance of the slide in the predetermined time period;Root According to the sliding distance in the predetermined time period, determine that the target touches slide in the predetermined time period Sliding speed.
- 14. terminal according to claim 13, it is characterised in thatSecond determining module, specifically for according to the sliding speed in current preset time span, determining adjacent next pre- If the rotary speed in time span;Wherein, the initial rotation speed of the camera is 0 or default rotary speed.
- 15. terminal according to claim 10, it is characterised in thatSecond determining module, specifically for using the sliding speed as foundation, inquiring about the sliding speed pre-set and rotation The corresponding relation of rotary speed, to determine rotary speed corresponding to the sliding speed.
- 16. terminal according to claim 10, it is characterised in thatSecond determining module, specifically for using the sliding speed as foundation, inquiring about the default sliding speed set and rotation The corresponding relation of rotary speed regulatory factor, determine rotary speed regulatory factor corresponding to the sliding speed;According to default rotation Speed and the rotary speed regulatory factor, determine rotary speed corresponding to the sliding speed.
- 17. terminal according to claim 10, it is characterised in thatThe detection module, it is additionally operable to detect the second operational order of the unlatching camera of user's input;The terminal also includes:Output module, for responding second operational order, camera preview interface is exported in touch-screen.
- 18. terminal according to claim 10, it is characterised in thatFirst determining module, it is additionally operable to when detection module detection user is used to control what camera preview interface inputted After the target of camera rotation processed touches slide, determine that the target touches rotary mode corresponding to slide;The control module, specifically for controlling the camera to be revolved with the rotary speed, and the rotary mode Turn.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810061336.7A CN108111766B (en) | 2015-03-23 | 2015-03-23 | Camera rotation control method, terminal and medium product |
CN201510129999.4A CN104883492B (en) | 2015-03-23 | 2015-03-23 | A kind of camera method of controlling rotation and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510129999.4A CN104883492B (en) | 2015-03-23 | 2015-03-23 | A kind of camera method of controlling rotation and terminal |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810061336.7A Division CN108111766B (en) | 2015-03-23 | 2015-03-23 | Camera rotation control method, terminal and medium product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104883492A CN104883492A (en) | 2015-09-02 |
CN104883492B true CN104883492B (en) | 2018-02-27 |
Family
ID=53950816
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510129999.4A Expired - Fee Related CN104883492B (en) | 2015-03-23 | 2015-03-23 | A kind of camera method of controlling rotation and terminal |
CN201810061336.7A Expired - Fee Related CN108111766B (en) | 2015-03-23 | 2015-03-23 | Camera rotation control method, terminal and medium product |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810061336.7A Expired - Fee Related CN108111766B (en) | 2015-03-23 | 2015-03-23 | Camera rotation control method, terminal and medium product |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN104883492B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105120179B (en) * | 2015-09-22 | 2019-01-11 | 三星电子(中国)研发中心 | A kind of photographic method and device |
CN105306820A (en) * | 2015-10-15 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and device for controlling rotation of camera in mobile terminal and mobile terminal |
CN105763794B (en) * | 2016-02-25 | 2018-12-14 | 广东欧珀移动通信有限公司 | Camera spinning solution and camerahead rotating device |
CN106027907B (en) * | 2016-06-30 | 2019-08-20 | 维沃移动通信有限公司 | A kind of method and mobile terminal of adjust automatically camera |
CN115649439A (en) * | 2017-02-24 | 2023-01-31 | 深圳市大疆创新科技有限公司 | Many cloud platforms subassembly |
CN108924286B (en) * | 2018-06-08 | 2020-12-04 | Oppo广东移动通信有限公司 | Electronic device and control method and device of sliding assembly of electronic device |
CN110177217A (en) * | 2019-06-28 | 2019-08-27 | Oppo广东移动通信有限公司 | Image capturing method, device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034451A (en) * | 2012-12-21 | 2013-04-10 | 广东欧珀移动通信有限公司 | Page location method and page location system for mobile terminals |
CN103309599A (en) * | 2012-03-15 | 2013-09-18 | 华为终端有限公司 | Touch screen sliding finding method and touch screen equipment |
CN103365577A (en) * | 2012-03-28 | 2013-10-23 | 联想(北京)有限公司 | Control method and electronic device with touch screen |
CN103995788A (en) * | 2014-05-27 | 2014-08-20 | 广东欧珀移动通信有限公司 | Method and device for controlling camera of touch screen terminal to rotate |
CN104349064A (en) * | 2014-10-28 | 2015-02-11 | 广东欧珀移动通信有限公司 | Terminal and camera control method, device, and system thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561723A (en) * | 2009-05-18 | 2009-10-21 | 苏州瀚瑞微电子有限公司 | Operation gesture of virtual game |
TWI441072B (en) * | 2010-09-21 | 2014-06-11 | Altek Corp | Touch screen unlock method and electric device with camera function thereof |
CN102722331A (en) * | 2012-05-30 | 2012-10-10 | 华为技术有限公司 | Touch unlocking method and device and electronic equipment |
CN104238669B (en) * | 2014-09-04 | 2018-01-16 | 广东欧珀移动通信有限公司 | A kind of method, device and mobile terminal for controlling mobile terminal camera rotation |
-
2015
- 2015-03-23 CN CN201510129999.4A patent/CN104883492B/en not_active Expired - Fee Related
- 2015-03-23 CN CN201810061336.7A patent/CN108111766B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103309599A (en) * | 2012-03-15 | 2013-09-18 | 华为终端有限公司 | Touch screen sliding finding method and touch screen equipment |
CN103365577A (en) * | 2012-03-28 | 2013-10-23 | 联想(北京)有限公司 | Control method and electronic device with touch screen |
CN103034451A (en) * | 2012-12-21 | 2013-04-10 | 广东欧珀移动通信有限公司 | Page location method and page location system for mobile terminals |
CN103995788A (en) * | 2014-05-27 | 2014-08-20 | 广东欧珀移动通信有限公司 | Method and device for controlling camera of touch screen terminal to rotate |
CN104349064A (en) * | 2014-10-28 | 2015-02-11 | 广东欧珀移动通信有限公司 | Terminal and camera control method, device, and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104883492A (en) | 2015-09-02 |
CN108111766A (en) | 2018-06-01 |
CN108111766B (en) | 2020-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104883492B (en) | A kind of camera method of controlling rotation and terminal | |
US10621894B2 (en) | Method and apparatus for controlling flexible screen, and electronic device | |
CN102566918B (en) | Display control apparatus and control method therefore | |
EP3096216B1 (en) | Information processing device, information processing program, and information processing method | |
TWI490771B (en) | Programmable display unit and screen operating and processing program thereof | |
CN103870156B (en) | A kind of method and device of process object | |
CN102902481B (en) | Terminal and terminal operation method | |
CN108064368A (en) | The control method and device of flexible display device | |
TW202016709A (en) | Control method, electronic device and non-transitory computer readable storage medium device | |
US20180348947A1 (en) | Control method and control device for working mode of touch screen | |
CN104793887B (en) | The dual camera control method and device of mobile terminal | |
KR101891306B1 (en) | Method and Apparatus for Realizaing Human-Machine Interaction | |
EP3508966A1 (en) | Household appliance control method and device, and washing machine | |
WO2018046000A1 (en) | Touch operation method and device | |
CN109739422B (en) | Window control method, device and equipment | |
CN111796746A (en) | Volume adjusting method, volume adjusting device and electronic equipment | |
CN105843537A (en) | Method and apparatus for previewing calculation process by terminal | |
CN114779977A (en) | Interface display method and device, electronic equipment and storage medium | |
WO2017016333A1 (en) | Screen adjustment method and device | |
CN109739590B (en) | Desktop wallpaper replacing method, device and equipment | |
CN107463317B (en) | Control method and electronic equipment | |
CN103885713B (en) | A kind of information processing method and electronic equipment | |
CN107231528A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN113986080A (en) | Multimedia file editing method and device and electronic equipment | |
WO2021003730A1 (en) | Touch device and input control method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180227 |
|
CF01 | Termination of patent right due to non-payment of annual fee |