CN104506765B - A kind of mobile terminal and its focusing method based on touch gestures - Google Patents

A kind of mobile terminal and its focusing method based on touch gestures Download PDF

Info

Publication number
CN104506765B
CN104506765B CN201410682693.7A CN201410682693A CN104506765B CN 104506765 B CN104506765 B CN 104506765B CN 201410682693 A CN201410682693 A CN 201410682693A CN 104506765 B CN104506765 B CN 104506765B
Authority
CN
China
Prior art keywords
focusing
taking pictures
focus frame
focusing method
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
Application number
CN201410682693.7A
Other languages
Chinese (zh)
Other versions
CN104506765A (en
Inventor
邓铁军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201410682693.7A priority Critical patent/CN104506765B/en
Publication of CN104506765A publication Critical patent/CN104506765A/en
Application granted granted Critical
Publication of CN104506765B publication Critical patent/CN104506765B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of mobile terminal and its focusing method based on touch gestures, the focusing method include:Unlatching takes pictures program to show preview screen on the touchscreen;Click on the focus frame positioned at preview screen edge and slided to focal position;User touch location reaches the direction of motion of change focus frame after focal position;Focused at the change of procedure identification of the taking pictures focus frame direction of motion and judge that focus operation terminates;Programme-control camera of taking pictures when touch action leaves touch-screen is taken pictures.Focusing method provided by the invention based on touch gestures, by the change in location of touch gestures on the touchscreen, once completes focusing and action of taking pictures, simplify the operating process that focusing is taken pictures, make the process of taking pictures of user more convenient, shorten focusing time, easy to capture moment picture.

Description

A kind of mobile terminal and its focusing method based on touch gestures
Technical field
The present invention relates to the technical field of the focusing of taking pictures of mobile terminal, is specifically related to a kind of mobile terminal and its is based on The focusing method of touch gestures.
Background technology
Smart mobile phone using Android as representative, more and more lives for entering common people.Wherein, Android is carried Camera take pictures application program, if the user thinks that needing optimization focusing manually, generally comprise the steps:
1st, user opens camera programs, shows preview screen;
2nd, user clicks on the region for wanting focusing in preview screen;
3rd, camera programs start to focus, display yellow focusing square frame;
4th, camera programs focusing is completed, and shows green focusing square frame;
5th, user clicks on button of taking pictures, and camera programs are taken pictures, and terminates.
Referring to Fig. 1, Fig. 1 is the structure diagram of preview screen of taking pictures in the prior art, its outmost square frame represents screen Curtain, after user opens camera programs, shows view picture preview screen.The circle on the right represents button of taking pictures.Dotted ellipse Represent that user clicks on the action of screen, No. 1 ellipse representation user clicks on the region for wanting focusing, and No. 2 ellipse representation users take pictures Button.Square brackets represent focusing square frame.
Above-mentioned steps have the disadvantage that:(1) user needs to click on touch-screen twice, and the position clicked on twice may There is very big distance, cause user's operation difficulty;(2) additionally, due in most cases, it is straight that user, which needs to keep mobile phone, Vertical state, twice click can cause focusing to take pictures time-consuming long, it is difficult to capture.
The content of the invention
The embodiment of the present invention provides a kind of mobile terminal and its focusing method based on touch gestures, to solve the prior art Middle user needs to click on touch-screen twice, and the position clicked on twice causes user's operation difficulty, consumption due in larger distance When it is longer and be difficult to the technical problem captured.
To solve the above problems, an embodiment of the present invention provides a kind of focusing method based on touch gestures, the focusing Method includes:Unlatching takes pictures program to show preview screen on the touchscreen;Click on the focus frame positioned at preview screen edge And slided to focal position;User touch location reaches the direction of motion of change focus frame after focal position;Take pictures procedure identification Focused at the change of the focus frame direction of motion and judge that focus operation terminates;Take pictures when touch action leaves touch-screen journey Sequence control camera is taken pictures.
According to one preferred embodiment of the present invention, the shape of the focus frame be rectangle, it is ellipse, linear.
According to one preferred embodiment of the present invention, the focus frame is located at preview screen surrounding edge, quantity for one or It is multiple.
According to one preferred embodiment of the present invention, focus at the change of the procedure identification focus frame direction of motion of taking pictures And judge that the step of focus operation terminates includes:
Program of taking pictures obtains the coordinate data of user touch location, and constantly updates its longitudinal coordinate maximum;
The longitudinal coordinate value of procedure identification of taking pictures user touch location judges the longitudinal direction to focus at maximum Focusing terminates when coordinate value is less than the longitudinal coordinate maximum.
According to one preferred embodiment of the present invention, when clicking on positioned at the focus frame of preview screen edge, the focus frame Color changes.
According to one preferred embodiment of the present invention, color becomes when the focus frame is focused at longitudinal coordinate maximum Change.
According to one preferred embodiment of the present invention, focus at the change of the procedure identification focus frame direction of motion of taking pictures And judge that the step of focus operation terminates includes:
Program of taking pictures obtains the coordinate data of user touch location, and the position coordinates constantly is write dot matrix array;
Cubic Spline Fitting is carried out to each coordinate value in dot matrix array;
Program of taking pictures is focused at the derivative for calculating Cubic Spline Fitting function is 0, and judges to intend in cubic spline Focusing when derivative value positive and negative of function changes is closed to terminate.
According to one preferred embodiment of the present invention, when clicking on positioned at the focus frame of preview screen edge, the focus frame Color changes.
According to one preferred embodiment of the present invention, the focus frame is when the derivative of Cubic Spline Fitting function is to focus at 0 Color changes.
In order to solve the above technical problems, the present invention also provides a kind of mobile terminal, the mobile terminal includes camera, and profit Focusing of taking pictures is carried out with preceding claim focusing method.
Relative to the prior art, mobile terminal provided by the invention and its focusing method based on touch gestures, by touching The change in location of gesture on the touchscreen is touched, once completes focusing and action of taking pictures, the operating process that focusing is taken pictures is simplified, makes The process of taking pictures of user is more convenient, shortens focusing time, easy to capture moment picture.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the structure diagram of preview screen of taking pictures in the prior art;
Fig. 2 is that the display preview of taking pictures of the mobile terminal of one preferred embodiment of focusing method based on touch gestures of the invention is drawn The structure diagram in face;
Fig. 3 is the operation chart of focusing of taking pictures in Fig. 2 embodiments;
Fig. 4 is a kind of computational methods of the touch track of focusing method one preferred embodiment of the invention based on touch gestures Flow chart;
Fig. 5 is another operation chart of focusing of taking pictures in Fig. 2 embodiments;And
A kind of computational methods of the touch track of another preferred embodiment of focusing method of Fig. 6 present invention based on touch gestures Flow chart.
Embodiment
With reference to the accompanying drawings and examples, the present invention is described in further detail.It is emphasized that following implement Example is merely to illustrate the present invention, but the scope of the present invention is not defined.Likewise, following embodiments are only the portion of the present invention Point embodiment and not all embodiments, the institute that those of ordinary skill in the art are obtained without creative efforts There are other embodiments, belong to the scope of protection of the invention.
Referring to Fig. 2, the mobile terminal that Fig. 2 is focusing method one preferred embodiment of the invention based on touch gestures is taken pictures Show the structure diagram of preview screen, wherein, 100 expression preview screens, 101 expression focus frames, 102 expression shoot buttons, 103 Represent (user is desired) focal position and 104 expression user touch locations.Below to focusing on and the process of taking pictures has Body introduction.
Referring to Fig. 3, Fig. 3 is the operation chart of focusing of taking pictures in Fig. 2 embodiments, when user needs to take pictures When, program of taking pictures is first turned on, program of taking pictures shows preview screen 100 on the touchscreen, and click is located at preview screen frontside edge Any point in the focus frame 101 at place, the color of focus frame 101 are changed into red, naturally it is also possible to become other colors, user Finger is slided to focal position 103, and in sliding process, program of taking pictures constantly repaints poly- according to user touch location 104 Burnt frame 101, i.e. focus frame 101 follows user's finger upward sliding during this.Position is focused on when user touch location 104 reaches After putting 103, user's finger slide downward, the direction of motion of change focus frame 101,101 side of moving of procedure identification of taking pictures focus frame To change at that moment, the position where user touch location 104 is focused and judges that focus operation terminates, and focusing is dynamic After work, touch action can be slided to any direction, take pictures when touch action leaves touch-screen programme-control camera into Row is taken pictures, and entirely the process of taking pictures terminates.
Wherein, the shape of focus frame 101 can be rectangle, ellipse, linear etc., its position can be located at preview screen At surrounding edge, quantity can be one or more, not limit herein.
The process of taking pictures is specifically described below in conjunction with two kinds of computational methods of focus process.
Referring to Fig. 4, Fig. 4 is the one of the touch track of focusing method one preferred embodiment of the invention based on touch gestures Kind computational methods flow chart, the flow include but not limited to following steps.
Step S401, user choose focus frame, and the color of focus frame is changed into red.
Step S402, program of taking pictures obtain the position coordinate data of touch point.
Step S403, program of taking pictures judge whether longitudinal coordinate (Y value) value of user touch location is more than maximum (Max Y), if it is judged that being yes, then next step is carried out.
Step S404, Max Y are stored as by the Y value of current point.
Wherein, after step S402, also carry out judging whether current point Y value is less than Max Y and has certain distance (to walk Rapid S405), if it is judged that being no, then return to step S402, reacquire the position coordinate data of focus frame;If it is determined that As a result it is yes, then into next step.
Step S406, program of taking pictures are focused and show yellow focus frame, and green focus frame is shown after the completion of focusing.Its In, the longitudinal coordinate value of procedure identification of taking pictures focus frame present position is (original when maximum or Y value variation tendency change Being increase tendency, after when being changed into reduction trend), focus at the user touch location corresponding to Max Y.
Step S407, touches finger and leaves touch-screen, program of taking pictures is taken pictures, and the process of taking pictures terminates.
Also referring to Fig. 5 and Fig. 6, Fig. 5 is another operation chart of focusing of taking pictures in Fig. 2 embodiments;And A kind of computational methods flow chart of the touch track of another preferred embodiment of focusing method of Fig. 6 present invention based on touch gestures. Wherein, which mainly includes the following steps that.
Step S501, user choose focus frame, and the color of focus frame is changed into red.
Step S502, program of taking pictures obtains user touch location coordinate data, and position coordinate data is stored in dot matrix number Group.
Step S503, program of taking pictures obtain Cubic Spline Fitting function according to dot matrix array.Wherein, Fig. 5 shows user Operated the Cubic Spline Fitting function of middle acquisition.
Step S504, program of taking pictures are differentiated on Cubic Spline Fitting function is calculated at the position of each point.
Step S505, judges whether required derivative is 0, and if the judgment is No, then return to step S502, reacquires poly- The position coordinate data of burnt frame, and position coordinate data is stored in dot matrix array;If the judgment is Yes, then next step is carried out.
Step S506, program of taking pictures focus and show yellow focus frame, and green focus frame is shown after the completion of focusing.Wherein, Program of taking pictures is focused at the derivative for calculating Cubic Spline Fitting function is 0, and is judged in Cubic Spline Fitting function Focusing terminates when derivative value positive and negative changes.
Step S507, touches finger and leaves touch-screen, program of taking pictures is taken pictures, and the process of taking pictures terminates.
Focusing method provided in an embodiment of the present invention based on touch gestures, has used judgement " user's touch trajectory direction Change " method, to realize the operation to " focusing " and " taking pictures " two steps, in this process, the finger of user Touch-screen is not left, and sliding distance is no more than the half of screen short side.In addition this patent uses " finger frames out " to make For the action of " taking pictures ", rocking when taking pictures can be greatly reduced, while also shorten focusing time, drawn easy to capture moment Face.
In addition, the present invention also provides a kind of mobile terminal, which includes camera, and utilizes pair of above-described embodiment Burnt method carries out focusing of taking pictures, on mobile terminal other parts architectural feature skilled artisans appreciate that model Within enclosing, details are not described herein again.
The foregoing is merely a kind of embodiment of the present invention, not thereby limit the scope of the invention, every utilization The equivalent device or equivalent process transformation that description of the invention and accompanying drawing content are made, it is related to be directly or indirectly used in other Technical field, be included within the scope of the present invention.

Claims (6)

1. a kind of focusing method based on touch gestures, it is characterised in that the focusing method includes:
Unlatching takes pictures program to show preview screen on the touchscreen;
Click on the focus frame positioned at preview screen edge and slided to focal position;
User touch location reaches the direction of motion of change focus frame after focal position;
Focused at the change of procedure identification of the taking pictures focus frame direction of motion and judge that focus operation terminates;
Programme-control camera of taking pictures when touch action leaves touch-screen is taken pictures;
Wherein, focused at the change of the procedure identification focus frame direction of motion of taking pictures and judge the step that focus operation terminates Suddenly include:
Program of taking pictures obtains the coordinate data of user touch location, and the position coordinates constantly is write dot matrix array;
Cubic Spline Fitting is carried out to each coordinate value in dot matrix array;
Program of taking pictures is focused at the derivative for calculating Cubic Spline Fitting function is 0, and is judged in Cubic Spline Fitting letter Focusing terminates when several derivative values positive and negative changes.
2. focusing method according to claim 1, it is characterised in that the shape of the focus frame for rectangle, ellipse, It is linear.
3. focusing method according to claim 2, it is characterised in that the focus frame is located at preview screen surrounding edge Place, quantity are one or more.
4. focusing method according to claim 1, it is characterised in that click on the focus frame positioned at preview screen edge When, the color of the focus frame changes.
5. focusing method according to claim 4, it is characterised in that the focus frame is led Cubic Spline Fitting function Number is that color changes when focusing at 0.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes camera, and utilizes any one of claim 1-5 institute The focusing method stated carries out focusing of taking pictures.
CN201410682693.7A 2014-11-21 2014-11-21 A kind of mobile terminal and its focusing method based on touch gestures Expired - Fee Related CN104506765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410682693.7A CN104506765B (en) 2014-11-21 2014-11-21 A kind of mobile terminal and its focusing method based on touch gestures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410682693.7A CN104506765B (en) 2014-11-21 2014-11-21 A kind of mobile terminal and its focusing method based on touch gestures

Publications (2)

Publication Number Publication Date
CN104506765A CN104506765A (en) 2015-04-08
CN104506765B true CN104506765B (en) 2018-05-11

Family

ID=52948479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410682693.7A Expired - Fee Related CN104506765B (en) 2014-11-21 2014-11-21 A kind of mobile terminal and its focusing method based on touch gestures

Country Status (1)

Country Link
CN (1) CN104506765B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686213A (en) * 2016-12-01 2017-05-17 努比亚技术有限公司 Shooting method and apparatus thereof
CN107529010A (en) * 2017-08-16 2017-12-29 维沃移动通信有限公司 A kind of photographic method, mobile terminal and storage medium
CN108965709B (en) * 2018-07-25 2020-08-14 维沃移动通信有限公司 Focusing method and terminal
CN112402194A (en) * 2019-08-23 2021-02-26 北京超维度计算科技有限公司 Auxiliary terminal system for visually impaired people
CN111031249B (en) * 2019-12-26 2021-07-13 维沃移动通信有限公司 Auxiliary focusing method and electronic equipment
CN111050073B (en) * 2019-12-26 2022-01-28 维沃移动通信有限公司 Focusing method and electronic equipment
CN113037999A (en) * 2021-02-23 2021-06-25 Oppo广东移动通信有限公司 Shooting method and device, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360189A (en) * 2008-07-03 2009-02-04 明基电通有限公司 Camera control method and camera thereof
CN101615090A (en) * 2009-06-30 2009-12-30 青岛海信电器股份有限公司 Touch signal detection method and device
CN103135927A (en) * 2013-01-25 2013-06-05 广东欧珀移动通信有限公司 Method and system for rapid focusing and photographing of mobile terminal
CN103873759A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Shooting method and electronic equipment
CN103997565A (en) * 2014-04-17 2014-08-20 广东明创软件科技有限公司 Single-handed operation focusing method based on mobile terminal, and single-handed operation focusing mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2782328A4 (en) * 2011-12-16 2015-03-11 Olympus Imaging Corp Imaging device and imaging method, and storage medium for storing tracking program processable by computer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360189A (en) * 2008-07-03 2009-02-04 明基电通有限公司 Camera control method and camera thereof
CN101615090A (en) * 2009-06-30 2009-12-30 青岛海信电器股份有限公司 Touch signal detection method and device
CN103873759A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Shooting method and electronic equipment
CN103135927A (en) * 2013-01-25 2013-06-05 广东欧珀移动通信有限公司 Method and system for rapid focusing and photographing of mobile terminal
CN103997565A (en) * 2014-04-17 2014-08-20 广东明创软件科技有限公司 Single-handed operation focusing method based on mobile terminal, and single-handed operation focusing mobile terminal

Also Published As

Publication number Publication date
CN104506765A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN104506765B (en) A kind of mobile terminal and its focusing method based on touch gestures
CN102662510B (en) The method realizing sectional drawing by multiple point touching
CN104199550B (en) Virtual keyboard operation device, system and method
US8669955B2 (en) Portable display device, method of controlling portable display device, program, and recording medium
CN104639748B (en) Desktop background display methods and device based on Rimless mobile phone
CN104199547B (en) Virtual touch screen operation device, system and method
WO2020082275A1 (en) Method and device for processing drawn content on terminal apparatus, and terminal apparatus
CN105117056B (en) A kind of method and apparatus of operation touch-screen
CN105183338B (en) Object processing method
US20140139430A1 (en) Virtual touch method
CN105487652A (en) Display apparatus and method for controlling the same
CN103324414A (en) Method and mobile terminal for adjusting icon positions
US20150227198A1 (en) Human-computer interaction method, terminal and system
KR20110031896A (en) Character input method and system, electronic device and the keyboard thereof
JP2010134897A (en) Drawing device, drawing method, program and recording medium
CN102819398A (en) Method for slidingly controlling camera via touch screen device
WO2017032193A1 (en) User interface layout adjustment method and apparatus
US20130321350A1 (en) Virtual ruler for stylus input
CN101183284A (en) Mobile terminal hand-written inputting method, device and mobile terminal
CN113407095A (en) Terminal device and method and device for processing drawing content of terminal device
WO2017206383A1 (en) Method and device for controlling terminal, and terminal
CN104199548B (en) A kind of three-dimensional man-machine interactive operation device, system and method
CN110990238B (en) Non-invasive visual test script automatic recording method based on video shooting
CN106681582A (en) Desktop icon adjusting method and device
US20130321307A1 (en) Handwriting input device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180511

CF01 Termination of patent right due to non-payment of annual fee