CN104618658B - Mobile terminal and its rotating camera control method - Google Patents
Mobile terminal and its rotating camera control method Download PDFInfo
- Publication number
- CN104618658B CN104618658B CN201510088712.8A CN201510088712A CN104618658B CN 104618658 B CN104618658 B CN 104618658B CN 201510088712 A CN201510088712 A CN 201510088712A CN 104618658 B CN104618658 B CN 104618658B
- Authority
- CN
- China
- Prior art keywords
- contact
- contacts
- rotary speed
- horizontal direction
- camera
- 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 32
- 238000001514 detection method Methods 0.000 claims abstract description 24
- 238000004364 calculation method Methods 0.000 claims abstract description 19
- 230000008569 process Effects 0.000 claims description 8
- 238000005259 measurement Methods 0.000 claims 1
- 230000008859 change Effects 0.000 abstract description 4
- 230000007547 defect Effects 0.000 abstract description 3
- 230000008034 disappearance Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 5
- 230000003321 amplification Effects 0.000 description 4
- 238000003199 nucleic acid amplification method Methods 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 208000026817 47,XYY syndrome Diseases 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention relates to technical field of mobile terminals, the present invention provides a kind of mobile terminal and its rotating camera control method, and control method comprises the following steps:Detect the number of the contact panel upper contact of mobile terminal;When the number for detecting contact panel upper contact is two, the distance of two contacts of detection in the horizontal direction;The rotary speed of camera is obtained according to the width calculation of the distance and contact panel of two contacts in the horizontal direction in the horizontal direction;When detecting two contact wipes, control camera stops operating when being carried out with rotary speed and rotated up to two contact disappearances, when two contacts distance change in the horizontal direction, the rotary speed of camera can arbitrarily be adjusted, solve the current defect that can only be rotated by gesture control camera with single speed, facilitate user to be operated, improve the usage experience of user.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of mobile terminal method and its rotating camera control
Method.
Background technology
At present, the rotatable camera of in the market has two kinds of implementations.One is manual rotation, such rotatable shooting
Motor is not provided with head, it is impossible to the angle for controlling it to rotate;Secondly rotated to be automatic, it is electronic built in such rotatable camera
Motor, can control the method that electro-motor rotates to control the angle that camera rotates by control chip.Above two is existing
Technology can only all be rotated with single speed, i.e. the speed of the uncontrollable camera rotation of user, in summary, existing skill
The problem of there is the speed of the uncontrollable camera rotation of user in art.
The content of the invention
It is an object of the invention to provide a kind of mobile terminal method and its rotating camera control method, it is intended to solves pin
The problem of to there is the speed of the uncontrollable camera rotation of user in the prior art.
The present invention is achieved in that first aspect provides a kind of rotating camera control method of mobile terminal, described
Control method comprises the following steps:
A. the number of the contact panel upper contact of the mobile terminal is detected;
B. when the number for detecting the contact panel upper contact is two, two contacts of detection are in the horizontal direction
Distance;
C. the width of distance and the contact panel in the horizontal direction according to described two contacts in the horizontal direction
Calculate the rotary speed for obtaining the camera;
D. when detecting described two contact wipes, the camera is controlled to be rotated up to the rotary speed
Described two contacts stop operating when disappearing.
With reference in a first aspect, detecting that two are touched in the first possible implementation of first aspect, in the step B
Point in the horizontal direction apart from the step of before also include:
Judge whether the distance of described two contact in the vertical directions is less than preset value, be then to detect described two touch
The distance of point in the horizontal direction, it is no, then digital zoom is carried out to the image shown on the contact panel.
With reference in a first aspect, in second of possible implementation of first aspect, the step C is specially:
Calculate the distance of described two contacts in the horizontal direction and the width of the contact panel in the horizontal direction it
Between ratio to obtain rotary speed index;
Obtained and the rotary speed according to the corresponding relation between the rotary speed index and rotary speed prestored
The corresponding rotary speed of index.
With reference in a first aspect, in the third possible implementation of first aspect, the step D is specially:
Calculate the coordinate and initial position of the current sliding position in the vertical direction of any contact in described two contacts
The difference of the coordinate of in the vertical direction;
When the difference is more than 0, judges that contact is slided to the positive direction of vertical direction, control the rotating camera to press
According to first direction rotation;
When the difference is less than 0, judges that contact is slided to the negative direction of vertical direction, control the rotating camera to press
According to second direction rotation.
With reference in a first aspect, in the 4th kind of possible implementation of first aspect, also including after the step A:
When the number for detecting contact panel upper contact is 1, and when the contact wipe, the rotation is controlled to take the photograph
As head is rotated according to predetermined speed.
Second aspect of the present invention provides a kind of mobile terminal, and the mobile terminal includes:
Number of contacts detection module, the number for detecting contact panel upper contact;
Contact spacing detection module, for when the number for detecting contact panel upper contact is two, detecting that two are touched
The distance of point in the horizontal direction;
Speed calculation module, for according to described two contacts distance in the horizontal direction and the contact panel in water
Square upward width calculation obtains the rotary speed of the camera;
Control module, for when detecting described two contact wipes, controlling the camera with the rotary speed
Progress is rotated up to when described two contacts disappear and stopped operating.
With reference to second aspect, in the first possible implementation of second aspect, the contact distance detection module
It is additionally operable to judge whether the distance of described two contact in the vertical directions is less than preset value;
When judged result for when being, the contact distance detection module detects described two contacts in the horizontal direction again
Distance;
When judged result is no, the control module carries out digital zoom to the image shown on the contact panel.
With reference to second aspect, in second of possible implementation of second aspect, the speed calculation module according to
The width calculation of the distance and the contact panel of described two contacts in the horizontal direction in the horizontal direction is taken the photograph described in obtaining
As the process of the rotary speed of head is specially:
Calculate the distance of described two contacts in the horizontal direction and the width of the contact panel in the horizontal direction it
Between ratio to obtain rotary speed index;
Obtained and the rotary speed according to the corresponding relation between the rotary speed index and rotary speed prestored
The corresponding rotary speed of index.
With reference to second aspect, in the third possible implementation of second aspect, the control module is used for when inspection
Control the camera to rotate up to described two contacts with the rotary speed progress when measuring described two contact wipes to disappear
The process stopped operating during mistake is specially:
Calculate the coordinate and initial position of the current sliding position in the vertical direction of any contact in described two contacts
The difference of the coordinate of in the vertical direction;
When the difference is more than 0, judges that contact is slided to the positive direction of vertical direction, control the rotating camera to press
According to first direction rotation;
When the difference is less than 0, judges that contact is slided to the negative direction of vertical direction, control the rotating camera to press
According to second direction rotation.
With reference to second aspect, in the 4th kind of possible implementation of second aspect, the control module is additionally operable to work as
When the number for detecting contact panel upper contact is 1, and when the contact wipe, the rotating camera is controlled according to pre-
Fixed speed is rotated.
Mobile terminal and its rotating camera control method that the present invention is provided, exist according to two contacts on contact panel
The width calculation of distance and contact panel in the horizontal direction in horizontal direction obtains the rotary speed of camera, is touched when two
When putting distance change in the horizontal direction, the rotary speed of camera can be arbitrarily adjusted, is solved current by gesture control
The defect that camera processed can only be rotated with single speed, facilitates user and is operated, improve the usage experience of user.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of flow chart of the rotating camera control method for mobile terminal that an embodiment of the present invention is provided;
Fig. 2 is a kind of structural representation for mobile terminal that another embodiment of the invention is provided.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In order to illustrate technical scheme, illustrated below by specific embodiment.
An embodiment of the present invention provides a kind of rotating camera control method of mobile terminal, as shown in figure 1, controlling party
Method comprises the following steps:
The number of the contact panel upper contact of step S101. detection mobile terminals.
In the present embodiment, mobile terminal can be electronic installation that is arbitrary, being communicated with other equipment, including but
It is not limited to:PC, handheld device, electronic plane, personal digital assistant (PDA), mobile phone, network home appliance, camera,
Video camera, smart mobile phone, network base station, media player, navigation equipment, electronic mail equipment, game station, automated information
The combination of system (the such as entertainment systems with control panel) and aforementioned device.
Wherein, contact panel refers to the display screen of mobile terminal, for being realized according to user in the instruction that screen slides over
The function that user needs.
It should be noted that the contact formed on contact panel can be formed for the finger touching contact panel of user,
Can also be used to be formed on contact panel using stylus or other touch-control parts.
Step S102. is when the number for detecting contact panel upper contact is two, and two contacts of detection are in the horizontal direction
On distance.
Specifically, in this step, can be by measuring the coordinate of two contacts in the horizontal direction, such as two respectively
The coordinate of contact is X1 and X2 respectively, then the difference for obtaining X1 and X2 is △ X, difference be △ X be two contacts in the horizontal direction
On distance.
Further, in step S102 detect two contacts in the horizontal direction apart from the step of before also include:
Judge whether the distance of two contact in the vertical directions is less than preset value, be, then detect two contacts in level
Distance on direction, it is no, then digital zoom is carried out to the image shown on contact panel.
Specifically, in this step, because the distance increase in mobile terminal on contact panel between double fingers is amplification
The gesture of picture, therefore, in order to prevent maloperation, upon start, the double Y-coordinate referred to of detection, if the difference of Y-coordinate is less than in advance
If value, it is determined that for control rotating camera, if Y-coordinate differs by more than preset value, be judged as the i.e. digital change of amplification picture
It is burnt.
It should be noted that not allowing picture to amplify in camera rotary course, i.e., digital zoom is in rotary course
Forbid.
Distance and contact panel width gauges in the horizontal direction of the step S103. according to two contacts in the horizontal direction
Calculate the rotary speed for obtaining camera;
Step S103 is specially:
Step S1031. calculates the distance of two contacts in the horizontal direction and the width of contact panel in the horizontal direction
Between ratio to obtain rotary speed index.
Specifically, in this step, by two contacts in the horizontal direction apart from △ X and the ratio of contact panel width
Rotary speed index R is worth to, wherein, rotary index R is a numeral less than 1, and the numeral can directly react camera
Rotary speed.
Step S1032. is obtained and rotation according to the corresponding relation between the rotary speed index and rotary speed prestored
The corresponding rotary speed of rotary speed index.
Specifically, in this step, can be listed by the form of list between rotary speed index and rotary speed
Corresponding relation, in the corresponding relation, rotary speed index R is bigger, and closer to 1, then rotary speed is faster, if rotary speed
Index R is close to zero, then rotary speed is slower, such as during rotary speed index R=1, rotating speed is 10r/s, during R=0.5, and rotating speed is
5r/s, by that analogy, the rotating speed by rotary speed index R value and corresponding to it are listed in lists respectively, according to meter
The rotary speed index calculated finds the rotary speed of the corresponding motor of camera of rotary speed index in lists.
Step S104. is when detecting two contact wipes, and control camera carries out rotating up to two with rotary speed
Contact stops operating when disappearing.
Step S104 is specially:
Step S1041. calculate two contacts in any contact current sliding position in the vertical direction coordinate and just
The difference of the coordinate of beginning position in the vertical direction.
Specifically, in this step, at the beginning of the finger of user presses two contacts, one of contact on contact panel
The beginning coordinate of position is (X0,Y0), when user starts to slide finger, contact panel detects that the changing coordinates of the contact wipe are
(X1,Y1), the difference of in the vertical direction, wherein vertical direction are calculated according to the coordinate of the initial position of contact and changing coordinates
Y-axis can be considered as, horizontal direction can be considered as X-axis.
Step S1042. judges that contact is slided to the positive direction of vertical direction, controls rotating camera when difference is more than 0
Rotated according to first direction.
Specifically, in this step, when difference is more than 0, double finger upward slidings, control camera carries out dextrorotation
Turn, speed is the corresponding motor rotary speeies of rotary speed index R, until double refer to is unclamped.
Step S1043. judges that contact is slided to the negative direction of vertical direction, controls rotating camera when difference is less than 0
Rotated according to second direction.
Specifically, in this step, when difference is less than 0, double sensing lower sliders, camera carries out rotate counterclockwise, speed
Spend for the corresponding motor rotary speeies of rotary speed index R, until double refer to is unclamped.
It should be noted that in camera rotary course, if it is double refer to slide after without departing from touch-screen be that double refer to is not slided
When dynamic, camera also is continuing to rotate, i.e., user is when rotating camera starts rotation, it is not necessary to slide always, as long as keeping
Double fingers contact touch-screen simultaneously, are stopped operating until double fingers leave camera after touch-screen.
Another embodiment of the present invention also provides a kind of mobile terminal, and mobile terminal includes:
Number of contacts detection module 201, the number for detecting contact panel upper contact;
Contact spacing detection module 202, for when the number for detecting contact panel upper contact is two, detecting two
The distance of contact in the horizontal direction;
Speed calculation module 203, for according to two contacts distance in the horizontal direction and contact panel in level side
Upward width calculation obtains the rotary speed of camera;
Control module 204, for when detecting two contact wipes, control camera to carry out rotating straight with rotary speed
Stopped operating when being disappeared to two contacts.
Specifically, contact spacing detection module 202 can by measuring the coordinate of two contacts in the horizontal direction respectively,
The coordinate of such as two contacts is X1 and X2 respectively, then the difference for obtaining X1 and X2 is △ X, and difference is that △ X are that two contacts exist
Distance in horizontal direction.
Further, contact spacing detection module 202 be additionally operable to judge two contact in the vertical directions distance whether
Less than preset value;
When judged result for when being, contact spacing detection module 202 detects the distance of two contacts in the horizontal direction again;
When judged result is no, control module 204 carries out digital zoom to the image shown on contact panel.
Specifically, because the distance increase in mobile terminal on contact panel between double fingers is the gesture of amplification picture,
Therefore, in order to prevent maloperation, upon start, contact spacing detection module 202 detects the Y-coordinate of double fingers, if the difference of Y-coordinate
Value is less than preset value, it is determined that for control rotating camera, if Y-coordinate differs by more than preset value, be judged as amplification picture
That is digital zoom.
Further, speed calculation module 203 according to two contacts distance in the horizontal direction and contact panel in water
The process that square upward width calculation obtains the rotary speed of camera is specially:
Calculate the ratio between the width of distance and contact panel in the horizontal direction of two contacts in the horizontal direction
To obtain rotary speed index;
Obtained and rotary speed index according to the corresponding relation between the rotary speed index and rotary speed prestored
Corresponding rotary speed.
Specifically, speed calculation module 203 by two contacts in the horizontal direction apart from △ X and contact panel width
Ratio be worth to rotary speed index R, wherein, rotary index R be one be less than 1 numeral, the numeral, which can directly react, to be taken the photograph
As the rotary speed of head.
Specifically, speed calculation module 203 can be listed by the form of list rotary speed index and rotary speed it
Between corresponding relation, in the corresponding relation, rotary speed index R is bigger, and closer to 1, then rotary speed is faster, if rotation
Rate Index R is close to zero, then rotary speed is slower, such as during rotary speed index R=1, rotating speed is 10r/s, during R=0.5, turns
Speed is 5r/s, and by that analogy, the rotating speed by rotary speed index R value and corresponding to it is all listed in lists respectively, root
Find the rotary speed of the corresponding motor of camera of rotary speed index in lists according to the rotary speed index calculated.
Further, control module 204 is used to control camera with rotary speed to enter when detecting two contact wipes
Row rotates up to the process stopped operating during two contact disappearances:
The coordinate and initial position of the current sliding position in the vertical direction of any contact in two contacts are calculated perpendicular
The difference of the upward coordinate of Nogata;
When difference is more than 0, judge that contact is slided to the positive direction of vertical direction, control rotating camera is according to first party
To rotation;
When difference is less than 0, judge that contact is slided to the negative direction of vertical direction, control rotating camera is according to second party
To rotation.
Specifically, the finger of user presses two contacts, the seat of the initial position of one of contact on contact panel
It is designated as (X0,Y0), when user starts to slide finger, contact panel detects that the changing coordinates of the contact wipe are (X1,Y1), root
The difference of in the vertical direction is calculated according to the coordinate and changing coordinates of the initial position of contact, wherein vertical direction can be considered as Y
Axle, horizontal direction can be considered as X-axis.
Specifically, during double finger upward slidings, when the difference of the coordinate of in the vertical direction is more than 0, control camera is carried out
Turn clockwise, speed is the corresponding motor rotary speeies of rotary speed index R, until double refer to is unclamped.
Specifically, during double sensing lower sliders, when the difference of the coordinate of in the vertical direction is less than 0, control camera is carried out
Rotate counterclockwise, speed is the corresponding motor rotary speeies of rotary speed index R, until double refer to is unclamped.
Control module 204 is additionally operable to when the number that number of contacts detection module 201 detects contact panel upper contact is 1
When, and when contact wipe, control rotating camera is rotated according to predetermined speed.
Mobile terminal and its rotating camera control method that the present invention is provided, exist according to two contacts on contact panel
The width calculation of distance and contact panel in the horizontal direction in horizontal direction obtains the rotary speed of camera, is touched when two
When putting distance change in the horizontal direction, the rotary speed of camera can be arbitrarily adjusted, is solved current by gesture control
The defect that camera processed can only be rotated with single speed, facilitates user and is operated, improve the usage experience of user.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be with several embodiments provided herein, it should be understood that disclosed systems, devices and methods
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, such as multiple units or component
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces
Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to assert
The specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention,
Some equivalent substitutes or obvious modification are made on the premise of not departing from present inventive concept, and performance or purposes are identical, all should
It is considered as belonging to the scope of patent protection that the present invention is determined by the claims submitted.
Claims (6)
1. the rotating camera control method of a kind of mobile terminal, it is characterised in that the control method comprises the following steps:
A. the number of the contact panel upper contact of the mobile terminal is detected;
B. when detect the contact panel upper contact number be two when, detection two contacts in the horizontal direction away from
From;
C. the width calculation of distance and the contact panel in the horizontal direction according to described two contacts in the horizontal direction
Obtain the rotary speed of the camera;
D. when detecting described two contact wipes, control described in the camera rotated up to the rotary speed
Two contacts stop operating when disappearing;
The step C is specially:
Calculate between the width of distance and the contact panel in the horizontal direction of described two contacts in the horizontal direction
Ratio is to obtain rotary speed index;Wherein, the rotary speed index directly reacts the rotary speed of the camera;
Obtained and the rotary speed index according to the corresponding relation between the rotary speed index and rotary speed prestored
Corresponding rotary speed;
Wherein, the distance of two contacts of the detection in the horizontal direction includes:Measure two contacts in the horizontal direction respectively
Coordinate, obtain the difference of two contacts coordinate in the horizontal direction;
In the step B detect two contacts in the horizontal direction apart from the step of before also include:
Judge whether the distance of described two contact in the vertical directions is less than preset value, be then to detect that described two contacts exist
Distance in horizontal direction, it is no, then digital zoom is carried out to the image shown on the contact panel.
2. control method as claimed in claim 1, it is characterised in that the step D is specially:
The coordinate and initial position of the current sliding position in the vertical direction of any contact in described two contacts are calculated perpendicular
The difference of the upward coordinate of Nogata;
When the difference is more than 0, judge that contact is slided to the positive direction of vertical direction, control the rotating camera according to the
One direction rotates;
When the difference is less than 0, judge that contact is slided to the negative direction of vertical direction, control the rotating camera according to the
Two directions rotate.
3. control method as claimed in claim 1, it is characterised in that also include after the step A:
When the number for detecting contact panel upper contact is 1, and when the contact wipe, control the rotating camera
Rotated according to predetermined speed.
4. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Number of contacts detection module, the number for detecting contact panel upper contact;
Contact spacing detection module, for when the number for detecting contact panel upper contact is two, two contacts of detection to exist
Distance in horizontal direction;
Speed calculation module, for according to described two contacts distance in the horizontal direction and the contact panel in level side
Upward width calculation obtains the rotary speed of camera;
Control module, for when detecting described two contact wipes, controlling the camera to be carried out with the rotary speed
Rotate up to when described two contacts disappear and stop operating;
The speed calculation module is according to described two contacts distance in the horizontal direction and the contact panel in level side
The process that upward width calculation obtains the rotary speed of the camera is specially:
Calculate between the width of distance and the contact panel in the horizontal direction of described two contacts in the horizontal direction
Ratio is to obtain rotary speed index;Wherein, the rotary speed index directly reacts the rotary speed of the camera;
Obtained and the rotary speed index according to the corresponding relation between the rotary speed index and rotary speed prestored
Corresponding rotary speed;
Wherein, the contact spacing detection module detects that the distance of two contacts in the horizontal direction includes measurement respectively two and touched
The coordinate of point in the horizontal direction, obtains the difference of the coordinate of two contacts in the horizontal direction;
Whether the contact spacing detection module is additionally operable to judge the distance of described two contact in the vertical directions less than default
Value;
When judged result for be when, the contact spacing detection module detect again described two contacts in the horizontal direction away from
From;
When judged result is no, the control module carries out digital zoom to the image shown on the contact panel.
5. mobile terminal as claimed in claim 4, it is characterised in that the control module is used for described two tactile when detecting
Point controls the camera to carry out rotating up to what is stopped operating when described two contacts disappear with the rotary speed when sliding
Process is specially:
The coordinate and initial position of the current sliding position in the vertical direction of any contact in described two contacts are calculated perpendicular
The difference of the upward coordinate of Nogata;
When the difference is more than 0, judge that contact is slided to the positive direction of vertical direction, control the rotating camera according to the
One direction rotates;
When the difference is less than 0, judge that contact is slided to the negative direction of vertical direction, control the rotating camera according to the
Two directions rotate.
6. mobile terminal as claimed in claim 5, it is characterised in that
The control module is additionally operable to when the number for detecting contact panel upper contact is 1, and when the contact wipe,
The rotating camera is controlled to be rotated according to predetermined speed.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510088712.8A CN104618658B (en) | 2015-02-26 | 2015-02-26 | Mobile terminal and its rotating camera control method |
CN201710859771.XA CN107395995B (en) | 2015-02-26 | 2015-02-26 | Mobile terminal and its rotating camera control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510088712.8A CN104618658B (en) | 2015-02-26 | 2015-02-26 | Mobile terminal and its rotating camera control method |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710859771.XA Division CN107395995B (en) | 2015-02-26 | 2015-02-26 | Mobile terminal and its rotating camera control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104618658A CN104618658A (en) | 2015-05-13 |
CN104618658B true CN104618658B (en) | 2017-11-03 |
Family
ID=53152922
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710859771.XA Expired - Fee Related CN107395995B (en) | 2015-02-26 | 2015-02-26 | Mobile terminal and its rotating camera control method |
CN201510088712.8A Expired - Fee Related CN104618658B (en) | 2015-02-26 | 2015-02-26 | Mobile terminal and its rotating camera control method |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710859771.XA Expired - Fee Related CN107395995B (en) | 2015-02-26 | 2015-02-26 | Mobile terminal and its rotating camera control method |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN107395995B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104902173B (en) * | 2015-05-19 | 2018-07-06 | 广东欧珀移动通信有限公司 | A kind of method and apparatus for shooting control |
CN104834447B (en) * | 2015-05-19 | 2017-10-17 | 广东欧珀移动通信有限公司 | Method of controlling rotation and system, the camera device of rotating camera |
CN104822029B (en) * | 2015-05-22 | 2018-11-27 | 广东欧珀移动通信有限公司 | A kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal |
CN104954671B (en) * | 2015-05-27 | 2018-01-19 | 广东欧珀移动通信有限公司 | The method and device of panoramic shooting |
CN105092883B (en) * | 2015-06-01 | 2019-01-15 | 浙江宇视科技有限公司 | A kind of method and device thereof measuring holder revolving speed |
CN105554378A (en) * | 2015-12-09 | 2016-05-04 | 广东欧珀移动通信有限公司 | Control method, control device and electronic device |
CN105867362A (en) * | 2016-04-20 | 2016-08-17 | 北京博瑞爱飞科技发展有限公司 | Terminal equipment and control system of unmanned aerial vehicle |
CN109032486B (en) * | 2018-07-10 | 2021-01-22 | 维沃移动通信有限公司 | Display control method and terminal equipment |
CN112000259A (en) * | 2020-06-30 | 2020-11-27 | 深圳点猫科技有限公司 | Method and device for controlling camera based on touch event of mobile terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110010933A (en) * | 2009-07-27 | 2011-02-08 | (주)빅트론닉스 | Control method and device for touch panel, and mobile devices using the same |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104238669B (en) * | 2014-09-04 | 2018-01-16 | 广东欧珀移动通信有限公司 | A kind of method, device and mobile terminal for controlling mobile terminal camera rotation |
-
2015
- 2015-02-26 CN CN201710859771.XA patent/CN107395995B/en not_active Expired - Fee Related
- 2015-02-26 CN CN201510088712.8A patent/CN104618658B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110010933A (en) * | 2009-07-27 | 2011-02-08 | (주)빅트론닉스 | Control method and device for touch panel, and mobile devices using the same |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN107395995A (en) | 2017-11-24 |
CN104618658A (en) | 2015-05-13 |
CN107395995B (en) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104618658B (en) | Mobile terminal and its rotating camera control method | |
CN103838456A (en) | Method and system for controlling display positions of desktop icons | |
CN105117156B (en) | A kind of information processing method and electronic equipment | |
US9880655B2 (en) | Method of disambiguating water from a finger touch on a touch sensor panel | |
US9612675B2 (en) | Emulating pressure sensitivity on multi-touch devices | |
CN105359083B (en) | For the dynamic management of edge input of the user on touch apparatus | |
US20160004373A1 (en) | Method for providing auxiliary information and touch control display apparatus using the same | |
EP2837992A1 (en) | User interface interaction method and apparatus applied in touchscreen device, and touchscreen device | |
CN103180807B (en) | Menu display device, menu display control method, program and information storage medium | |
CN104423855B (en) | A kind of information processing method and electronic equipment | |
WO2014160436A1 (en) | Baseline management for sensing device | |
JP6273081B2 (en) | Content moving method and apparatus using pointing device | |
EP2840471A1 (en) | Method, device, and electronic terminal for unlocking | |
US20130027347A1 (en) | Touch panel | |
CN102508615A (en) | Touch screen picture control method | |
CN103257825B (en) | A kind of method and apparatus regulating playing progress rate | |
CN103412720A (en) | Method and device for processing touch-control input signals | |
US9696841B2 (en) | Method and apparatus for controlling an electric device | |
CN103593180A (en) | Method and device for adding files in application programs | |
CN103488428A (en) | Interface unlocking method and mobile terminal | |
CN103399711A (en) | Display control method of pop-up window and terminal | |
CN103902580A (en) | Method and device for dragging multiple elements in webpage | |
US9875020B2 (en) | Method for capturing user input from a touch screen and device having a touch screen | |
CN104978030A (en) | Left and right hand based software and method for automatically adjusting display interface of mobile phone | |
TWI480792B (en) | Operating method of electronic apparatus |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
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 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171103 |