CN106055258A - Mobile terminal and method for recognizing longpress and rotation gesture - Google Patents

Mobile terminal and method for recognizing longpress and rotation gesture Download PDF

Info

Publication number
CN106055258A
CN106055258A CN201610387188.9A CN201610387188A CN106055258A CN 106055258 A CN106055258 A CN 106055258A CN 201610387188 A CN201610387188 A CN 201610387188A CN 106055258 A CN106055258 A CN 106055258A
Authority
CN
China
Prior art keywords
moment
touch
barycenter
vector angle
offset vector
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.)
Granted
Application number
CN201610387188.9A
Other languages
Chinese (zh)
Other versions
CN106055258B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610387188.9A priority Critical patent/CN106055258B/en
Publication of CN106055258A publication Critical patent/CN106055258A/en
Application granted granted Critical
Publication of CN106055258B publication Critical patent/CN106055258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/42Graphical user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Abstract

The invention discloses a mobile terminal, including: an information acquisition module: when detecting the touch gesture on the touch screen, obtaining the touch information of the touch gesture at a plurality of continuous moments, wherein the touch information includes all touchpoints within the touch area and the centroid of the touch area; a recognition module: recognizing if the touch gesture is longpress and rotation gesture according to all touchpoints and centroid within the corresponding touch area of a plurality of continuous moments. The invention also discloses a method for recognizing the longpress and rotation gesture. By using all touchpoints and centroid within the touch area of a plurality of continuous moments, the method can effectively recognize if the touch gesture is longpress and rotation gesture and recognition effect is good, and can trigger a specific function based on the longpress and rotation gesture.

Description

Mobile terminal and identification are long by the method rotating gesture
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of mobile terminal and identify long by the side rotating gesture Method.
Background technology
Developing rapidly of mobile communication, causes the change in various degree of the every aspect of entire society, current mobile terminal Become a part indispensable in vast majority of people's life.The man-machine interaction of following mobile terminal will be with naturality, manifold Road, collaborative are main development direction, it is intended to form manifold by natural exchange waies of the mankind such as gesture, voice, expressions The natural dialogue of road, multimodal user and mobile terminal, to improve the experience effect of user.
Current mobile terminal is mostly touch screen, and user can be corresponding to trigger by performing gesture on the touchscreen Function, the gesture being typically used for includes: pressing gesture, slip gesture, click gesture etc., but, along with the merit of mobile terminal Increasing of energy, these gestures can not meet user's demand used in everyday, in addition it is also necessary to works out more gesture, such as, uses Family can also carry out long by rotating gesture, but, it is long by the method rotating gesture owing to the most effectively identifying so that Can't use long by rotating the gesture specific function of triggering.
Summary of the invention
Present invention is primarily targeted at and propose a kind of mobile terminal and identify long by the method rotating gesture, it is intended to solve Prior art effectively identifying, length is by the method rotating gesture so that can not use long by rotating the gesture specific merit of triggering Energy.
For achieving the above object, a kind of mobile terminal that the present invention provides, described mobile terminal includes:
Data obtaining module, in time touch gestures being detected on the touchscreen, obtains and touches described in continuous print multiple moment Touching the touch information of gesture, described touch information includes all touch points in touch area and the barycenter of described touch area;
Identification module, all touch points and barycenter in the touch area the most corresponding according to the plurality of moment are known Whether the most described touch gestures is long by rotating gesture.
Alternatively, described identification module includes:
First computing module, all touch points in the touch area the most corresponding according to the plurality of moment calculate The offset vector angle that each moment is the most corresponding;
Second computing module, for the offset vector angle calcu-lation offset vector folder the most corresponding according to each moment described The mean change speed at angle;
3rd computing module, for the mean motion of barycenter described in the centroid calculation the most corresponding according to the plurality of moment Speed and the side-play amount of described barycenter;
Gesture recognition module, for according to described mean change speed, the mean motion speed of described barycenter and described matter Whether touch gestures described in the side-play amount identification of the heart is long by rotating gesture.
Alternatively, described first computing module is for determining the offset vector angle of each moment correspondence respectively, bag respectively Include:
Area determination module, all touch points in the touch area corresponding based on the i-th moment and the i-th-1 moment pair All touch points in the touch area answered, determine offset area corresponding to described i-th moment, and the initial value of described i is 2;
Centroid calculation module, for determining the matter of offset area corresponding to described i-th moment based on preset centroid algorithm The heart;
Angle determines module, for determining the skew district that barycenter corresponding to described i-th-1 moment is corresponding with described i-th moment The line that the barycenter in territory is constituted, using corresponding as described i-th moment relative to the angle that preset coordinate axes is formed for described line Offset vector angle.
Alternatively, described second computing module specifically for: for the i-th moment, the offset vector in described i-th moment is pressed from both sides Business between angle with the difference of the offset vector angle in the i-th-1 moment and time difference is as described i-th moment corresponding offseting to The rate of change of amount angle, described time difference is the time difference between described i-th moment and described i-th-1 moment, the initial value of i It is 2;And the rate of change of the offset vector angle corresponding respectively each moment is averaged, obtain described offset vector angle Mean change speed.
Alternatively, described gesture recognition module specifically for:
When described mean change speed is in the first preset range, and it is pre-that the mean motion speed of described barycenter is in second If in scope, and the side-play amount of described barycenter is in the 3rd preset range, it is determined that described touch gestures rotates hands for long pressing Gesture.
For achieving the above object, the present invention also provides for a kind of method identifying and growing by rotating gesture, and described method includes step Rapid:
When touch gestures being detected on the touchscreen, obtain the touch information of touch gestures described in continuous print multiple moment, Described touch information includes all touch points in touch area and the barycenter of described touch area;
Hands is touched according to all touch points in the touch area that the plurality of moment is the most corresponding and barycenter identification Whether gesture is long by rotating gesture.
Alternatively, according to described in all touch points in the touch area of correspondence respectively of the plurality of moment and barycenter identification Whether touch gestures is long by rotating gesture, including:
Each moment correspondence respectively is calculated according to all touch points in the touch area that the plurality of moment is corresponding respectively Offset vector angle;
According to the mean change speed of each moment described offset vector angle calcu-lation offset vector angle of correspondence respectively, And mean motion speed and the side-play amount of described barycenter of barycenter described in corresponding centroid calculation is distinguished according to the plurality of moment;
Described in side-play amount identification according to described mean change speed, the mean motion speed of described barycenter and described barycenter Whether touch gestures is long by rotating gesture.
Alternatively, calculate each moment according to all touch points in corresponding respectively touch area of the plurality of moment to divide Not corresponding offset vector angle, including:
Determine each moment respectively corresponding offset vector angle the most in accordance with the following steps:
Based in the touch area that all touch points in the touch area that the i-th moment is corresponding and the i-th-1 moment are corresponding All touch points, determine offset area corresponding to described i-th moment, and the initial value of described i is 2;
The barycenter of offset area corresponding to described i-th moment is determined based on preset centroid algorithm;
Determine the company that the barycenter of the offset area that barycenter corresponding to described i-th-1 moment is corresponding with described i-th moment is constituted Line, the angle formed relative to preset coordinate axes by described line is as offset vector angle corresponding to described i-th moment.
Alternatively, become according to the average of offset vector angle calcu-lation offset vector angle that each moment described is the most corresponding Change speed, including:
For the i-th moment, by offset vector angle and the difference of the offset vector angle in the i-th-1 moment in described i-th moment Being worth with the business between time difference as the rate of change of offset vector angle corresponding to described i-th moment, described time difference is institute Stating the time difference between the i-th moment and described i-th-1 moment, the initial value of i is 2;
The rate of change of the offset vector angle corresponding respectively each moment is averaged, obtains described offset vector folder The mean change speed at angle.
Alternatively, according to described mean change speed, the mean motion speed of described barycenter and the side-play amount of described barycenter Identify whether described touch gestures is long by rotating gesture, including:
When described mean change speed is in the first preset range, and it is pre-that the mean motion speed of described barycenter is in second If in scope, and the side-play amount of described barycenter is in the 3rd preset range, it is determined that described touch gestures rotates hands for long pressing Gesture.
The mobile terminal that the present invention proposes includes: data obtaining module, in time touch gestures being detected on the touchscreen, Obtaining the touch information of continuous print multiple moment touch gestures, touch information includes all touch points in touch area and touch The barycenter in region;Identification module, all touch points and barycenter in the touch area the most corresponding according to multiple moment are known Whether other touch gestures is long by rotating gesture.All touched by utilize in the touch area of continuous multiple moment touch gestures Touching a little and barycenter, it is possible to effective identify whether this touch gestures is long by rotating gesture, recognition effect is good, enabling based on Long by rotating the gesture specific function of triggering.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic diagram of the functional module of mobile terminal in first embodiment of the invention;
Fig. 4 is the handling process schematic diagram of touch area in the embodiment of the present invention;
Fig. 5 is the schematic diagram of the refinement functional module of identification module 302 in first embodiment shown in Fig. 3 of the present invention;
Fig. 6 is the schematic diagram of the refinement functional module of the first computing module 501 shown in Fig. 5;
Fig. 7 is the schematic diagram of offset area in the embodiment of the present invention;
Fig. 8 is the schematic diagram of offset vector angle in the embodiment of the present invention;
Fig. 9 is to identify the long schematic flow sheet by the method rotating gesture in second embodiment of the invention;
Figure 10 is the schematic flow sheet of the refinement step of step 902 in the second embodiment shown in Fig. 9;
Figure 11 is the schematic flow sheet of the refinement step of step 1001 shown in Figure 10;
Figure 12 is to grow in the present invention by rotating a gesture application scenarios schematic diagram on intelligent watch.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further referring to the drawings.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use For representing the suffix explanation only for the beneficially present invention of such as " module ", " parts " or " unit " of element, itself Not specific meaning.Therefore, " module " can mixedly use with " parts ".
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and consolidating of such as numeral TV, desk computer etc. Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, mobile except being used in particular for Outside the element of purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal realizing each one optional mobile terminal of embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assembly, it should be understood that be not required for implementing all groups illustrated Part.Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 and wireless communication system Or the radio communication between network.Such as, wireless communication unit 110 can include broadcast reception module 111, mobile communication mould At least one in block 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcasting management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be to generate and send Broadcast singal and/or the server of broadcast related information or the broadcast singal generated before receiving and/or broadcast related information And send it to the server of terminal.Broadcast singal can include that TV broadcast singal, radio signals, data are broadcasted Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, and such as, it can be with the electronics of DMB (DMB) Program guide (EPG), the form of electronic service guidebooks (ESG) etc. of digital video broadcast-handheld (DVB-H) and exist.Broadcast Receiver module 111 can be broadcasted by using various types of broadcast systems to receive signal.Especially, broadcast reception module 111 Can be by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video wide Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcast reception module 111 may be constructed such that and is adapted to provide for extensively Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcast reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memorizer 160 (or other type of storage medium).
Mobile communication module 112 sends radio signals to base station (such as, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can include that voice leads to Words signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Positional information module 115 is the module of positional information for checking or obtain mobile terminal.Positional information module Typical case be GPS (global positioning system).According to current technology, GPS module calculates from three or more satellites Range information and correct time information and for the Information application triangulation calculated, thus according to longitude, latitude and Highly accurately calculate three-dimensional current location information.Currently, for calculating method three satellites of use of position and temporal information And by using an other satellite to correct the position and the error of temporal information calculated.Additionally, GPS module can be led to Velocity information is calculated after Continuous plus current location information in real time.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 He Mike 122, the camera 121 static images to being obtained by image capture apparatus in Video Capture pattern or image capture mode Or the view data of video processes.Picture frame after process may be displayed on display unit 151.Process through camera 121 After picture frame can be stored in memorizer 160 (or other storage medium) or via wireless communication unit 110 carry out send out Send, two or more cameras 1210 can be provided according to the structure of mobile terminal.Mike 122 can telephone calling model, Logging mode, speech recognition mode etc. operational mode receives sound (voice data) via mike, and can be by this The acoustic processing of sample is voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model The form output of mobile communication base station can be sent to via mobile communication module 112.Mike 122 can be implemented various types of Noise eliminate (or suppression) algorithm with the noise eliminating (or suppression) and producing during receiving and send audio signal or Interference.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user's input Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (such as, detection due to touched and cause resistance, pressure, the sensitive component of change of electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal Orientation, the acceleration or deceleration of mobile terminal 100 of 100 move and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense This sliding-type phone opens or cuts out.It addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through.Such as, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, for connect have the port of device of identification module, audio frequency input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses each of mobile terminal 100 Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..It addition, the device (hereinafter referred to as " identifying device ") with identification module can be to take the form of smart card, therefore, know Other device can be connected with mobile terminal 100 via port or other attachment means.Interface unit 170 may be used for receive from The input (such as, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements or may be used between mobile terminal and external device (ED) transmit data.
It addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing electricity by it Power provides the path of mobile terminal 100 from base or can serve as allowing from the various command signals of base input by it It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from various command signals or the electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner Go out signal (such as, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, it is in electricity when mobile terminal 100 During words call mode, display unit 151 can show and call or other (such as, text messaging, multimedia file that communicate Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern Or during image capture mode, display unit 151 can show image and/or the image of reception of capture, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least A kind of.Some in these display may be constructed such that transparence is watched from outside with permission user, and this is properly termed as transparent Display, typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 100 can include two or more display units (or other display device), such as, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal receive pattern, call mode, logging mode, Time under the isotype such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or at memorizer 160 The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide with mobile The audio frequency output (such as, call signal receives sound, message sink sound etc.) that the specific function that terminal 100 performs is relevant. Dio Output Modules 152 can include speaker, buzzer etc..
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can Temporarily to store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And And, memorizer 160 can with storage about when touch be applied to touch screen time the vibration of various modes of output and audio signal Data.
Memorizer 160 can include that the storage medium of at least one type, described storage medium include flash memory, hard disk, many Media card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access store Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 100 can be connected execution memorizer with by network The network storage device cooperation of the storage function of 160.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice call, data Control that communication, video calling etc. are relevant and process.It addition, controller 180 can include for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that with control Device 180 separates.Controller 180 can perform pattern recognition process, with the handwriting input that will perform on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Suitable electric power needed for part and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implementing for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. Software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any suitable programming language Implementing, software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
Grow by rotating gesture it should be noted that the mobile terminal shown in Fig. 1 can be also used for identifying, concrete, this shifting Dynamic terminal also includes following virtual functions module:
Data obtaining module 301, in time touch gestures being detected on the touchscreen, obtains described in continuous print multiple moment The touch information of touch gestures, described touch information includes all touch points in touch area and the matter of described touch area The heart;
Identification module 302, all touch points in the touch area the most corresponding according to the plurality of moment and matter Whether touch gestures described in heart identification is long by rotating gesture.
In the mobile terminal shown in Fig. 1, output unit 150 also includes touching chip 153, this touch chip 153 with Touch screen connects, and above-mentioned data obtaining module 301 is realized by this touch chip 153, and user performs to touch hands on the touchscreen During gesture, touch data is sent to touch chip 153 by touch screen, touches chip 153 and touches area by carrying out touch data Determine, remove interference, the process of calculating barycenter, and it is many to obtain continuous print by the data obtaining module 301 in touch chip 153 The touch information of the touch gestures in individual moment.
Wherein, touch chip 153 is after getting the touch information of touch gestures in continuous print multiple moment, by this even The touch information of the touch gestures in continuous multiple moment reports controller, and the virtual module comprised in this controller i.e. identifies mould Block 302, is known according to all touch points in the touch area of correspondence respectively of the plurality of moment and barycenter by this identification module 302 Whether the most described touch gestures is long by rotating gesture.
As shown in Figure 1 mobile terminal 100 may be constructed such that utilize via frame or packet transmission data all if any Line and wireless communication system and satellite-based communication system operate.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, communication system use Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face relates to cdma communication system, but such teaching is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to and the BSC275 formation interface that can be couple to base station 270 via back haul link. If back haul link can construct according to any one in the interface that Ganji knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC275.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or the sky of sensing specific direction Each subregion that line covers is radially away from BS270.Or, each subregion can be by for two or more of diversity reception Antenna covers.Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal operated by broadcsting transmitter (BT) 295 100.Broadcast reception module 111 is arranged on mobile terminal 100 and sentences the broadcast that reception is sent by BT295 as shown in Figure 1 Signal.In fig. 2 it is shown that several global positioning systems (GPS) satellite 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtain useful Location information.As shown in Figure 1 positional information module 115 is generally configured to coordinate with satellite 300 and wants to obtain Location information, the typical case of this positional information module 115 is GPS.Substitute GPS tracking technique or GPS tracking technique it Outward, it is possible to use other technology of the position of mobile terminal can be followed the tracks of.It addition, at least one gps satellite 300 can be with selectivity Ground or the extraly transmission of process satellite dmb.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Certain base station 270 receive each instead Processed in specific BS270 to link signal.The data obtained are forwarded to the BSC275 being correlated with.BSC provides call Resource distribution and the mobile management function of the coordination of soft switching process included between BS270.The number that BSC275 also will receive According to being routed to MSC280, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, MSC Yu BSC275 forms interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Long by rotating gesture owing to prior art cannot effectively identify, cause utilizing length to trigger spy by rotating gesture Fixed function.
In order to solve above-mentioned technical problem, the present invention proposes a kind of mobile terminal, it is possible to touch based on continuous print multiple moment Touch the barycenter of all of touch point and touch area in the touch area of gesture and carry out gesture identification, enabling based on Petting Area All touch points and barycenter in territory effectively identify whether touch gestures is long by rotating gesture, enabling based on long by rotation Change hands gesture and trigger specific function.
Referring to Fig. 3, Fig. 3 is the schematic diagram of the functional module of mobile terminal in first embodiment of the invention, and this moves end End includes: data obtaining module 301 and identification module 302.
Wherein, data obtaining module 301, in time touch gestures being detected on the touchscreen, when acquisition continuous print is multiple Carving the touch information of described touch gestures, described touch information includes all touch points in touch area and described touch area Barycenter;
Identification module 302, all touch points in the touch area the most corresponding according to the plurality of moment and matter Whether touch gestures described in heart identification is long by rotating gesture.
In embodiments of the present invention, this mobile terminal is the terminal with touch screen, and user can be at this mobile terminal Touch gestures is performed on touch screen.For example, it may be long-pressing gesture, click gesture, slip gesture, length are by rotating gesture etc..
Wherein, by rotating gesture, length refers to that finger is pressed on the touchscreen by user, and in the position of this pressing, by suitable Hour hands or mode counterclockwise rotate, and user is when executive chairman is by rotation gesture, and the touch area of its finger is relatively Change in little scope.
In embodiments of the present invention, the touch screen of mobile terminal is detecting that user performs touch gestures on this touch screen Time, data obtaining module 301 obtains the touch information of this touch gestures of continuous print multiple moment, comprises touch in this touch information All touch points in region and the barycenter of this touch area.
Wherein, above-mentioned continuous print multiple moment refers to the touch gestures time upon execution, as long as and touch gestures not Terminate, all will detect the touch information of this touch gestures each moment correspondence respectively in real time.
Wherein, touch area refers to the contact area of finger and touch screen, and it should be noted that this touch area be through Cross the touch area after pretreatment, i.e. touch screen at the touch core data in initial touch region being sent in mobile terminal After sheet, this touch chip will first calculate initial touch region, then removal interference contact point obtains this touch area, and is obtaining After touch area, calculated the barycenter of this touch area by preset centroid algorithm.Specifically referring to Fig. 4, Fig. 4 is the present invention The handling process schematic diagram of touch area in embodiment, wherein, touch area is to be made up of touch point, and touch point can be passed through The form of square represents, wherein figure a is above-mentioned initial touch region, and figure b and figure c is initial touch region to be removed interference touch The touch area obtained after touching a little, figure d is the touch area being calculated barycenter, and in figure d, middle atrous square is matter The heart.
It should be noted that in embodiments of the present invention, if the principle removing interference includes the edge in a direction There is a touch point, then remove this touch point, i.e. touch area the most at least two touch points.
It should be noted that in embodiments of the present invention, after removing interference, mobile terminal can also once sieve Choosing, i.e. judges whether the touch area obtained is preset figure, and this preset figure can be rectangle, or convex polygon, If this touch area is preset figure, then continue executing with the process calculating barycenter, if this touch area is not preset figure, E.g. concave polygon, triangle, squares etc., then mobile terminal carries out barycenter by abandoning to this touch area in this moment Process, and the touch area being not based on this moment identifies whether touch gestures is long by rotating gesture.
In embodiments of the present invention, after getting the touch information of continuous print multiple moment touch gestures, identify mould Whether block 302 according to all touch points in corresponding respectively touch area of the plurality of moment and this touch gestures of barycenter identification is Long by rotating gesture.
In embodiments of the present invention, when touch gestures being detected on the touchscreen, data obtaining module 301 obtains continuous print The touch information of touch gestures described in multiple moment, described touch information include all touch points in touch area and described touch Touch the barycenter in region, and by identification module 302 according to all touch points in the touch area of correspondence respectively of the plurality of moment And whether touch gestures described in barycenter identification is long by rotating gesture, enabling touch gestures based on multiple continuous moment divide In not corresponding touch area, the barycenter of all of touch point and touch area carries out gesture identification, enabling based on long by rotation Change hands gesture and trigger specific function, and further, due to long less by rotating gesture occupied area, meet the small screen or requirement The required rotation mode of the mobile terminal of location.
Refer to showing of the refinement functional module that Fig. 5, Fig. 5 are identification module 302 in first embodiment shown in Fig. 3 of the present invention Being intended to, this identification module 302 includes: the first computing module the 501, second computing module the 502, the 3rd computing module 503 and gesture Identification module 504.
Wherein, the first computing module 501, be used in the touch area according to correspondence respectively of the plurality of moment is all tactile Touch an offset vector angle calculating each moment correspondence respectively;
Second computing module 502, offsets to for the offset vector angle calcu-lation corresponding respectively according to each moment described The mean change speed of amount angle;
3rd computing module 503, is used for the average of barycenter described in the centroid calculation according to correspondence respectively of the plurality of moment Movement rate and the side-play amount of described barycenter;
Gesture recognition module 504, for according to described mean change speed, the mean motion speed of described barycenter and described Whether touch gestures described in the side-play amount identification of barycenter is long by rotating gesture.
In embodiments of the present invention, the first computing module 501 can be according in the touch area of correspondence respectively of multiple moment All touch points calculate the offset vector angle of each moment correspondence respectively, specifically can utilize corresponding the owning of some moment Touch point, all touch points corresponding with a upper moment compare, to determine all touch points corresponding to this certain moment In, not overlapping with upper moment touch point, the region that this touch point is constituted was this certain moment relative to a upper moment Offset area, can calculate this certain moment offset vector angle relative to a upper moment based on this offset area.
Concrete, the first computing module 501 is for determining the offset vector angle corresponding to each moment respectively.Such as, If obtain be continuous print multiple moment be t1 to t10, owing to t1 is initial time, there is not migration included angle, therefore, will be respectively Determine offset vector angle corresponding to t2 to t10.
In embodiments of the present invention, the second computing module 502 is by the offset vector angle the most corresponding according to each moment Calculate the mean change speed of offset vector angle, concrete, for the i-th moment, by the offset vector angle in the i-th moment and the Business between difference and the time difference of the offset vector angle in i-1 moment is as the change of offset vector angle corresponding to the i-th moment Changing speed, described time difference is the time difference between described i-th moment and described i-th-1 moment, and the initial value of i is 2;And will be each The rate of change of the offset vector angle that the individual moment is corresponding respectively is averaged, and obtains the mean change of described offset vector angle Speed.
Wherein, the rate of change of the offset vector angle in each moment can use below equation to calculate:
vi=(ai-ai-1)/(ti-ti-1)
Wherein, viRepresent the rate of change of offset vector angle corresponding to the i-th moment, aiRepresent skew corresponding to the i-th moment Vector angle, ai-1Representing the offset vector angle in the i-th-1 moment, t represents the i-th moment, ti-1Represented for the i-th-1 moment.
It should be noted that owing to the 1st moment was initial time, there is not the change of offset vector angle, therefore, the 1st The rate of change of the offset vector angle in moment is 0, and the initial value of above-mentioned i is 2, i.e. when the 2nd moment started to calculate each Carve the rate of change of the most corresponding offset vector angle.
It is understood that after obtaining the rate of change of each moment offset vector angle of correspondence respectively, these are many Individual rate of change constitutes a continuous print rotation process, therefore, if it is too big, then with other rate of change gaps to there is rate of change Delete this rate of change, and from multiple moment, delete the moment that this rate of change is corresponding.Such as, 10 consecutive hours pointers have 10 Individual rate of change, wherein, the rate of change in the 5th moment is negative, and the rate of change in other moment is positive number, therefore, it can Determine that the rate of change in the 5th moment does not meets the overall variation trend of rate of change, the rate of change in the 5th moment will be deleted, And deleted for the 5th moment, the rate of change i.e. using remaining 9 moment corresponding respectively carries out the identification of touch gestures.
Be calculated the rate of change of each moment offset vector angle of correspondence respectively by above-mentioned formula after, then profit The meansigma methods of the rate of change of offset vector angle corresponding to the difference in this each moment, this meansigma methods is calculated with average algorithm It is the mean change speed of offset vector angle.
In embodiments of the present invention, the 3rd computing module 503 is by the centroid calculation barycenter the most corresponding according to multiple moment Mean motion speed and the side-play amount of barycenter, wherein, the side-play amount of barycenter can calculate as follows:
si=oi-oi-1
Wherein, siRepresent the side-play amount of the barycenter in the i-th moment, oiRepresent the position of the i-th moment barycenter, oi-1Represent i-th-1 The position of moment barycenter, wherein the initial value of i is 2.
After being calculated the side-play amount of each moment barycenter, by the offset addition of this each moment barycenter Side-play amount to above-mentioned barycenter.
Wherein, the mean motion speed of barycenter can calculate each again by first calculating the movement rate of each moment barycenter The meansigma methods of the movement rate of moment barycenter obtains.
In embodiments of the present invention, the mean change speed of offset vector angle is being obtained, the mean motion speed of barycenter And after the side-play amount of barycenter, gesture recognition module 504 will be according to this mean change speed, this mean motion speed and side-play amount Identify whether touch gestures is long by rotating gesture.
Concrete, the mean change speed of offset vector angle is carried out by gesture recognition module 504 with the first preset range Relatively, the mean motion speed of barycenter is compared with the second preset range, by the side-play amount of barycenter and the 3rd preset range Compare, when this mean change speed is in the first preset range, and the mean motion speed of barycenter is in second and presets model In enclosing, and when the side-play amount of barycenter is in three preset range, determine that touch gestures is long by rotating gesture.
In embodiments of the present invention, in first computing module 501 touch area according to correspondence respectively of the plurality of moment All touch points calculate each moment respectively corresponding offset vector angle, and by the second computing module 502 according to described respectively The mean change speed of the offset vector angle calcu-lation offset vector angle that the individual moment is the most corresponding, and by the 3rd computing module 503 distinguish mean motion speed and the skew of described barycenter of barycenter described in corresponding centroid calculation according to the plurality of moment Amount, finally by gesture recognition module 504 according to described mean change speed, the mean motion speed of described barycenter and described barycenter Side-play amount identification described in touch gestures be whether long by rotating gesture.Mean change speed based on offset vector angle, matter The mean motion speed of the heart and the side-play amount of barycenter can effectively identify whether touch gestures is long by rotating gesture so that energy Enough uses are long triggers specific function by rotation gesture, and meets the demand performing touch gestures in the small screen simultaneously.
Referring to Fig. 6, Fig. 6 is the schematic diagram of the refinement functional module of the first computing module 501 shown in Fig. 5, this first meter Calculate module 501 to be used for determining the offset vector angle that each moment is the most corresponding respectively, including: area determination module 601, barycenter Computing module 602, angle determine module 603.
Area determination module 601, for based on all touch points in touch area corresponding to the i-th moment and when i-th-1 Carving all touch points in corresponding touch area, determine offset area corresponding to described i-th moment, the initial value of described i is 2;
Centroid calculation module 602, for determining offset area corresponding to described i-th moment based on preset centroid algorithm Barycenter;
Angle determines module 603, for determining inclined corresponding with described i-th moment of barycenter corresponding to described i-th-1 moment Moving the line that the barycenter in region is constituted, the angle formed relative to preset coordinate axes by described line is as described i-th moment Corresponding offset vector angle.
In embodiments of the present invention, the first computing module 501 will calculate offseting to of correspondence respectively of the plurality of moment respectively Amount angle, concrete, area determination module 601 is by all touch points in the touch area corresponding based on the i-th moment and i-th-1 All touch points in the touch area that moment is corresponding, determine offset area corresponding to this i-th moment, and the initial value of this i is 2. Being wherein initial time due to the 1st moment, there is not the skew of touch area, therefore, the offset area in this 1 moment is 0.
Wherein, for touch area, each touch point all has coordinate figure, can be by corresponding for the i-th moment The coordinate of all touch points in the touch area that the coordinate figure of all touch points of touch area is corresponding with the i-th-1 moment respectively Value compares, if there is the touch point that coordinate figure is identical, then show this touch point belong simultaneously to the i-th moment touch area and The touch area in the i-th-1 moment, in this way, it may be determined that in all touch points of the touch area that the i-th moment is corresponding The region that not overlapping with the i-th-1 moment touch point is constituted, is offset area corresponding to the i-th moment.
In order to be better understood from, refer to Fig. 7, for the schematic diagram of offset area in the embodiment of the present invention, in the figure 7, void The region comprised in wire frame is the touch area in the i-th-1 moment, and the light gray areas that solid box comprises is the Petting Area in the i-th moment Territory, wherein, o1 is barycenter corresponding to the i-th-1 moment, and 02 is the barycenter in the i-th moment, it can be seen from figure 7 that the i-th moment is corresponding The region that offset area is oblique line place.
After determining offset area, based on preset centroid algorithm, centroid calculation module 602 will determine that the i-th moment is corresponding The barycenter of offset area, wherein, determine that barycenter is content of the prior art based on preset centroid algorithm, do not limit Fixed, refer to Fig. 7, in Fig. 7, o ' 2 is the barycenter of offset area corresponding to the i-th moment.
And after being calculated the barycenter of offset area in the i-th moment, angle determine module 603 determine this i-th-1 time Carve the line that the barycenter of the corresponding barycenter offset area corresponding with the i-th moment is constituted, by this line relative to preset coordinate The angle that axle is formed is as offset vector angle corresponding to this i-th moment.
Referring to Fig. 8, for the schematic diagram of offset vector angle in the embodiment of the present invention, wherein, o1 represents that the 1st moment is corresponding The coordinate figure of barycenter, o2 represents the coordinate figure of barycenter corresponding to the 2nd moment, and o3 represents the coordinate of barycenter corresponding to the 3rd moment Value, the coordinate figure of the barycenter of the offset area that o ' 2 the 2nd moment of expression is corresponding, the offset area that o ' 3 the 3rd moment of expression is corresponding The coordinate figure of barycenter.Wherein, the line between o1 with o ' 2 and the angle a1 that X-axis is constituted are i.e. offset vector corresponding to the 2nd moment Angle, the line between o2 with o ' 3 and the angle a2 that X-axis is constituted are i.e. offset vector angle corresponding to the 3rd moment.
In embodiments of the present invention, area determination module 601 is based on all touches in touch area corresponding to the i-th moment All touch points in point and touch area corresponding to the i-th-1 moment, determine offset area corresponding to described i-th moment, and by Centroid calculation module 602 determines the barycenter of offset area corresponding to described i-th moment based on preset centroid algorithm, and angle is true Cover half block 603 determines the company that the barycenter of the offset area that barycenter corresponding to described i-th-1 moment is corresponding with described i-th moment is constituted Line, the angle formed relative to preset coordinate axes by described line is as offset vector angle corresponding to described i-th moment.Logical Cross above-mentioned module and can effectively determine offset vector angle corresponding to each moment, long provide base by rotating gesture for identifying Plinth.
Refer to Fig. 9, for second embodiment of the invention identifies the long schematic flow sheet by the method rotating gesture, described Method includes step:
Step 901, when touch gestures being detected on the touchscreen, obtain touching of touch gestures described in continuous print multiple moment Touching information, described touch information includes all touch points in touch area and the barycenter of described touch area;
Step 902, according to all touch points in respectively corresponding touch area of the plurality of moment and barycenter identification institute State whether touch gestures is long by rotating gesture.
In embodiments of the present invention, this mobile terminal is the terminal with touch screen, and user can be at this mobile terminal Touch gestures is performed on touch screen.For example, it may be long-pressing gesture, click gesture, slip gesture, length are by rotating gesture etc..
Wherein, by rotating gesture, length refers to that finger is pressed on the touchscreen by user, and in the position of this pressing, by suitable Hour hands or mode counterclockwise rotate, and user is when executive chairman is by rotation gesture, and the touch area of its finger is relatively Change in little scope.
In embodiments of the present invention, the touch screen of mobile terminal is detecting that user performs touch gestures on this touch screen Time, obtain this touch gestures of continuous print multiple moment touch information, this touch information comprises in touch area all touch Touch a little and the barycenter of this touch area.
Wherein, touch area refers to the contact area of finger and touch screen, and it should be noted that this touch area be through Cross the touch area after pretreatment, i.e. touch screen at the touch core data in initial touch region being sent in mobile terminal After sheet, this touch chip will first calculate initial touch region, then removal interference contact point obtains this touch area, and is obtaining After touch area, calculated the barycenter of this touch area by preset centroid algorithm.Specifically referring to Fig. 4, Fig. 4 is the present invention The handling process schematic diagram of touch area in embodiment, wherein, touch area is to be made up of touch point, and touch point can be passed through The form of square represents, wherein figure a is above-mentioned initial touch region, and figure b and figure c is initial touch region to be removed interference touch The touch area obtained after touching a little, figure d is the touch area being calculated barycenter, and in figure d, middle atrous square is matter The heart.
It should be noted that in embodiments of the present invention, if the principle removing interference includes the edge in a direction There is a touch point, then remove this touch point, i.e. touch area the most at least two touch points.
It should be noted that in embodiments of the present invention, after removing interference, mobile terminal can also once sieve Choosing, i.e. judges whether the touch area obtained is preset figure, and this preset figure can be rectangle, or convex polygon, If this touch area is preset figure, then continue executing with the process calculating barycenter, if this touch area is not preset figure, E.g. concave polygon, triangle, squares etc., then mobile terminal carries out barycenter by abandoning to this touch area in this moment Process, and the touch area being not based on this moment identifies whether touch gestures is long by rotating gesture.
In embodiments of the present invention, after getting the touch information of continuous print multiple moment touch gestures, mobile whole Hold whether all touch points in the touch area according to correspondence respectively of the plurality of moment and this touch gestures of barycenter identification are long By rotating gesture.
In embodiments of the present invention, when touch gestures being detected on the touchscreen, when acquisition for mobile terminal continuous print is multiple Carving the touch information of described touch gestures, described touch information includes all touch points in touch area and described touch area Barycenter, and touch hands according to all touch points in respectively corresponding touch area of the plurality of moment and barycenter identification Whether gesture is long by rotating gesture, enabling institute in the touch area that touch gestures based on multiple continuous moment are the most corresponding The barycenter of some touch points and touch area carries out gesture identification, enabling based on long by rotating gesture triggering specific function, And further, due to long less by rotating gesture occupied area, meet the institute of the mobile terminal of the small screen or requirement location The rotation mode needed.
Refer to Figure 10, for the schematic flow sheet of the refinement step of step 902 in the second embodiment shown in Fig. 9 of the present invention, Above-mentioned steps 902 includes:
Step 1001, calculate each moment according to all touch points in corresponding respectively touch area of the plurality of moment The most corresponding offset vector angle;
Step 1002, average according to each moment described respectively corresponding offset vector angle calcu-lation offset vector angle Rate of change, and distinguish the mean motion speed of barycenter described in corresponding centroid calculation and described barycenter according to the plurality of moment Side-play amount;
Step 1003, according to described mean change speed, the mean motion speed of described barycenter and the skew of described barycenter Amount identifies whether described touch gestures is long by rotating gesture.
In embodiments of the present invention, mobile terminal is according to all touch points in the touch area of correspondence respectively of multiple moment Calculate the offset vector angle of each moment correspondence respectively, specifically can utilize all touch points that some moment is corresponding, with All touch points corresponding to a upper moment compare, to determine in all touch points corresponding to this certain moment, not with upper The touch point that one moment is overlapping, the region that this touch point is constituted was this certain moment offset area relative to a upper moment, This certain moment offset vector angle relative to a upper moment can be calculated based on this offset area.
Concrete, mobile terminal is for determining the offset vector angle corresponding to each moment respectively.Such as, if obtain Be continuous print multiple moment be t1 to t10, owing to t1 is initial time, there is not migration included angle, therefore, will determine that t2 is extremely respectively The offset vector angle that t10 is the most corresponding.
In embodiments of the present invention, mobile terminal is by the offset vector angle calcu-lation skew the most corresponding according to each moment The mean change speed of vector angle is concrete, for the i-th moment, by offset vector angle and i-th-1 moment in the i-th moment Offset vector angle difference and time difference between business as the rate of change of offset vector angle corresponding to the i-th moment, Described time difference is the time difference between described i-th moment and described i-th-1 moment, and the initial value of i is 2;And by each moment The rate of change of offset vector angle corresponding respectively is averaged, and obtains the mean change speed of described offset vector angle.
Wherein, the rate of change of the offset vector angle in each moment can use below equation to calculate:
vi=(ai-ai-1)/(ti-ti-1)
Wherein, viRepresent the rate of change of offset vector angle corresponding to the i-th moment, aiRepresent skew corresponding to the i-th moment Vector angle, ai-1Representing the offset vector angle in the i-th-1 moment, t represents the i-th moment, ti-1Represented for the i-th-1 moment.
It should be noted that owing to the 1st moment was initial time, there is not the change of offset vector angle, therefore, the 1st The rate of change of the offset vector angle in moment is 0, and the initial value of above-mentioned i is 2, i.e. when the 2nd moment started to calculate each Carve the rate of change of the most corresponding offset vector angle.
It is understood that after obtaining the rate of change of each moment offset vector angle of correspondence respectively, these are many Individual rate of change constitutes a continuous print rotation process, therefore, if it is too big, then with other rate of change gaps to there is rate of change Delete this rate of change, and from multiple moment, delete the moment that this rate of change is corresponding.Such as, 10 consecutive hours pointers have 10 Individual rate of change, wherein, the rate of change in the 5th moment is negative, and the rate of change in other moment is positive number, therefore, it can Determine that the rate of change in the 5th moment does not meets the overall variation trend of rate of change, the rate of change in the 5th moment will be deleted, And deleted for the 5th moment, the rate of change i.e. using remaining 9 moment corresponding respectively carries out the identification of touch gestures.
Be calculated the rate of change of each moment offset vector angle of correspondence respectively by above-mentioned formula after, then profit The meansigma methods of the rate of change of offset vector angle corresponding to the difference in this each moment, this meansigma methods is calculated with average algorithm It is the mean change speed of offset vector angle.
In embodiments of the present invention, mobile terminal is by the average fortune of the centroid calculation barycenter the most corresponding according to multiple moment Dynamic speed and the side-play amount of barycenter, wherein, the side-play amount of barycenter can calculate as follows:
si=oi-oi-1
Wherein, siRepresent the side-play amount of the barycenter in the i-th moment, oiRepresent the position of the i-th moment barycenter, oi-1Represent i-th-1 The position of moment barycenter, wherein the initial value of i is 2.
After being calculated the side-play amount of each moment barycenter, by the offset addition of this each moment barycenter Side-play amount to above-mentioned barycenter.
Wherein, the mean motion speed of barycenter can calculate each again by first calculating the movement rate of each moment barycenter The meansigma methods of the movement rate of moment barycenter obtains.
In embodiments of the present invention, the mean change speed of offset vector angle is being obtained, the mean motion speed of barycenter And after the side-play amount of barycenter, mobile terminal is according to this mean change speed, and this mean motion speed and side-play amount identification touch Whether gesture is long by rotating gesture.
Concrete, the mean change speed of offset vector angle is compared by mobile terminal with the first preset range, will The mean motion speed of barycenter compares with the second preset range, the side-play amount of barycenter is compared with the 3rd preset range Relatively, when this mean change speed is in the first preset range, and the mean motion speed of barycenter is in the second preset range, and When the side-play amount of barycenter is in three preset range, determine that touch gestures is long by rotating gesture.
In embodiments of the present invention, mobile terminal touches according to all in respectively corresponding touch area of the plurality of moment Touch an offset vector angle calculating each moment correspondence respectively, and according to the offset vector folder of each moment described correspondence respectively Angle calculates the mean change speed of offset vector angle, and according to barycenter described in the centroid calculation of correspondence respectively of the plurality of moment Mean motion speed and the side-play amount of described barycenter, finally according to described mean change speed, the mean motion of described barycenter Whether touch gestures described in the side-play amount identification of speed and described barycenter is long by rotating gesture.Based on offset vector angle flat All side-play amounts of rate of change, the mean motion speed of barycenter and barycenter can effectively identify whether touch gestures is long by rotation Change hands gesture, enabling use long by rotating the gesture specific function of triggering, and meet execution touch gestures in the small screen simultaneously Demand.
Referring to Figure 11, for the schematic flow sheet of the refinement step of step 1001 shown in Figure 10, above-mentioned steps 1001 is used for Determine the offset vector angle of each moment correspondence respectively, and above-mentioned steps 1001 specifically include:
Step 1101, based on touch corresponding to all touch points in touch area corresponding to the i-th moment and the i-th-1 moment All touch points in region, determine offset area corresponding to described i-th moment, and the initial value of described i is 2;
Step 1102, determine the barycenter of offset area corresponding to described i-th moment based on preset centroid algorithm;
Step 1103, determine the barycenter of the offset area that barycenter corresponding to described i-th-1 moment is corresponding with described i-th moment The line constituted, the angle formed relative to preset coordinate axes by described line is as described i-th moment corresponding offseting to Amount angle.
In embodiments of the present invention, mobile terminal will calculate the offset vector angle of correspondence respectively of the plurality of moment respectively, Concrete, by touch area corresponding to all touch points in the touch area corresponding based on the i-th moment and the i-th-1 moment All touch points, determine offset area corresponding to this i-th moment, and the initial value of this i is 2.Wherein due to the 1st moment be initial time Carving, there is not the skew of touch area, therefore, the offset area in this 1 moment is 0.
Wherein, for touch area, each touch point all has coordinate figure, can be by corresponding for the i-th moment The coordinate of all touch points in the touch area that the coordinate figure of all touch points of touch area is corresponding with the i-th-1 moment respectively Value compares, if there is the touch point that coordinate figure is identical, then show this touch point belong simultaneously to the i-th moment touch area and The touch area in the i-th-1 moment, in this way, it may be determined that in all touch points of the touch area that the i-th moment is corresponding The region that not overlapping with the i-th-1 moment touch point is constituted, is offset area corresponding to the i-th moment.
In order to be better understood from, refer to Fig. 7, for the schematic diagram of offset area in the embodiment of the present invention, in the figure 7, void The region comprised in wire frame is the touch area in the i-th-1 moment, and the light gray areas that solid box comprises is the Petting Area in the i-th moment Territory, wherein, o1 is barycenter corresponding to the i-th-1 moment, and 02 is the barycenter in the i-th moment, it can be seen from figure 7 that the i-th moment is corresponding The region that offset area is oblique line place.
After determining offset area, mobile terminal determines skew district corresponding to the i-th moment based on preset centroid algorithm Based on preset centroid algorithm, the barycenter in territory, wherein, determines that barycenter is content of the prior art, does not limits, please join Readding Fig. 7, in Fig. 7, o ' 2 is the barycenter of offset area corresponding to the i-th moment.
And after being calculated the barycenter of offset area in the i-th moment, mobile terminal determines that this i-th-1 moment is corresponding The line that the barycenter of the offset area that barycenter is corresponding with the i-th moment is constituted, is formed this line relative to preset coordinate axes Angle is as offset vector angle corresponding to this i-th moment.
Referring to Fig. 8, for the schematic diagram of offset vector angle in the embodiment of the present invention, wherein, o1 represents that the 1st moment is corresponding The coordinate figure of barycenter, o2 represents the coordinate figure of barycenter corresponding to the 2nd moment, and o3 represents the coordinate of barycenter corresponding to the 3rd moment Value, the coordinate figure of the barycenter of the offset area that o ' 2 the 2nd moment of expression is corresponding, the offset area that o ' 3 the 3rd moment of expression is corresponding The coordinate figure of barycenter.Wherein, the line between o1 with o ' 2 and the angle a1 that X-axis is constituted are i.e. offset vector corresponding to the 2nd moment Angle, the line between o2 with o ' 3 and the angle a2 that X-axis is constituted are i.e. offset vector angle corresponding to the 3rd moment.
In embodiments of the present invention, mobile terminal is based on all touch points and in touch area corresponding to the i-th moment All touch points in the touch area that the i-1 moment is corresponding, determine offset area corresponding to described i-th moment, and based on preset Centroid algorithm determine the barycenter of offset area corresponding to described i-th moment, and determine barycenter corresponding to described i-th-1 moment with The line that the barycenter of the offset area that described i-th moment is corresponding is constituted, is formed described line relative to preset coordinate axes Angle is as offset vector angle corresponding to described i-th moment.Can effectively determine that each moment is corresponding by the way Offset vector angle, long provide basis by rotating gesture for identifying.
It is understood that press by the method identification length of rotation gesture based on the mobile terminal in above-described embodiment and identification are long After rotating gesture, can be based on the long triggering realizing specific function by rotation gesture so that mobile terminal can identify length After rotating gesture, perform corresponding process.Such as, can be by long by rotating gesture control smart mobile phone change display interface Show for transverse screen or perpendicular screen display, without by entering interface, drop-down hurdle and clicking on the rotary knob in interface, drop-down hurdle Mode realize interface rotate so that the simpler convenience of operation of user.And it is also based on long by rotating gesture control intelligence The terminals such as energy wrist-watch carry out (as shown in figure 12) such as the adjustment of time, timings, or control mobile terminal based on long by rotating hands The anglec of rotation of gesture carries out the adjustment etc. of display interface angle.
It should be noted that in this article, term " includes ", " comprising " or its any other variant are intended to non-row Comprising of his property, so that include that the process of a series of key element, method, article or device not only include those key elements, and And also include other key elements being not expressly set out, or also include intrinsic for this process, method, article or device Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this The process of key element, method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take Business device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skills Art field, is the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. a mobile terminal, it is characterised in that described mobile terminal includes:
Data obtaining module, in time touch gestures being detected on the touchscreen, obtains and touches hands described in continuous print multiple moment The touch information of gesture, described touch information includes all touch points in touch area and the barycenter of described touch area;
Identification module, all touch points in the touch area the most corresponding according to the plurality of moment and barycenter identification institute State whether touch gestures is long by rotating gesture.
Mobile terminal the most according to claim 1, it is characterised in that described identification module includes:
First computing module, all touch points in the touch area corresponding respectively according to the plurality of moment calculate each The offset vector angle that moment is the most corresponding;
Second computing module, for the offset vector angle calcu-lation offset vector angle the most corresponding according to each moment described Mean change speed;
3rd computing module, for the mean motion speed of barycenter described in the centroid calculation the most corresponding according to the plurality of moment And the side-play amount of described barycenter;
Gesture recognition module, for according to described mean change speed, the mean motion speed of described barycenter and described barycenter Whether touch gestures described in side-play amount identification is long by rotating gesture.
Mobile terminal the most according to claim 2, it is characterised in that described first computing module is for determining each respectively The offset vector angle that moment is the most corresponding, including:
Area determination module, all touch points and the i-th-1 moment in the touch area corresponding based on the i-th moment are corresponding All touch points in touch area, determine offset area corresponding to described i-th moment, and the initial value of described i is 2;
Centroid calculation module, for determining the barycenter of offset area corresponding to described i-th moment based on preset centroid algorithm;
Angle determines module, for determining offset area that barycenter corresponding to described i-th-1 moment is corresponding with described i-th moment The line that barycenter is constituted, the angle formed relative to preset coordinate axes by described line is as corresponding inclined of described i-th moment Move vector angle.
Mobile terminal the most according to claim 2, it is characterised in that described second computing module specifically for: for i-th Moment, by between offset vector angle and difference and the time difference of the offset vector angle in the i-th-1 moment in described i-th moment Business is as the rate of change of offset vector angle corresponding to described i-th moment, and described time difference is described i-th moment and described the Time difference between the i-1 moment, the initial value of i is 2;And the rate of change by the offset vector angle the most corresponding each moment Average, obtain the mean change speed of described offset vector angle.
5. according to the mobile terminal described in claim 2 to 4 any one, it is characterised in that described gesture recognition module is concrete For:
When described mean change speed is in the first preset range, and the mean motion speed of described barycenter is in second and presets model In enclosing, and the side-play amount of described barycenter is in the 3rd preset range, it is determined that described touch gestures rotates gesture for long pressing.
6. one kind identifies long by the method rotating gesture, it is characterised in that described method includes step:
When touch gestures being detected on the touchscreen, obtain the touch information of touch gestures described in continuous print multiple moment, described Touch information includes all touch points in touch area and the barycenter of described touch area;
According to touch gestures described in all touch points in the touch area that the plurality of moment is corresponding respectively and barycenter identification it is No pressing for length rotates gesture.
Method the most according to claim 6, it is characterised in that according in the touch area that the plurality of moment is the most corresponding All touch points and barycenter identification described in touch gestures be whether long by rotating gesture, including:
The inclined of each moment correspondence respectively is calculated according to all touch points in the touch area that the plurality of moment is corresponding respectively Move vector angle;
According to the mean change speed of each moment described offset vector angle calcu-lation offset vector angle of correspondence respectively, and root Mean motion speed and the side-play amount of described barycenter according to barycenter described in the centroid calculation that the plurality of moment is the most corresponding;
Touch described in side-play amount identification according to described mean change speed, the mean motion speed of described barycenter and described barycenter Whether gesture is long by rotating gesture.
Method the most according to claim 7, it is characterised in that according in the touch area that the plurality of moment is the most corresponding All touch points calculate each moment respectively corresponding offset vector angle, including:
Determine each moment respectively corresponding offset vector angle the most in accordance with the following steps:
Based on owning in the touch area that all touch points in the touch area that the i-th moment is corresponding and the i-th-1 moment are corresponding Touch point, determines offset area corresponding to described i-th moment, and the initial value of described i is 2;
The barycenter of offset area corresponding to described i-th moment is determined based on preset centroid algorithm;
Determine the line that the barycenter of the offset area that barycenter corresponding to described i-th-1 moment is corresponding with described i-th moment is constituted, will The angle that described line is formed relative to preset coordinate axes is as offset vector angle corresponding to described i-th moment.
Method the most according to claim 7, it is characterised in that according to the offset vector folder that each moment described is the most corresponding Angle calculates the mean change speed of offset vector angle, including:
For the i-th moment, by the offset vector angle in described i-th moment and the difference of the offset vector angle in the i-th-1 moment with Business between time difference is as the rate of change of offset vector angle corresponding to described i-th moment, and described time difference is described i-th Time difference between moment and described i-th-1 moment, the initial value of i is 2;
The rate of change of the offset vector angle corresponding respectively each moment is averaged, obtains described offset vector angle Mean change speed.
10. according to the method described in claim 7 to 9 any one, it is characterised in that according to described mean change speed, institute State whether touch gestures described in the mean motion speed of barycenter and the side-play amount identification of described barycenter is long by rotating gesture, bag Include:
When described mean change speed is in the first preset range, and the mean motion speed of described barycenter is in second and presets model In enclosing, and the side-play amount of described barycenter is in the 3rd preset range, it is determined that described touch gestures rotates gesture for long pressing.
CN201610387188.9A 2016-06-01 2016-06-01 The method of mobile terminal and identification long-pressing rotation gesture Active CN106055258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610387188.9A CN106055258B (en) 2016-06-01 2016-06-01 The method of mobile terminal and identification long-pressing rotation gesture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610387188.9A CN106055258B (en) 2016-06-01 2016-06-01 The method of mobile terminal and identification long-pressing rotation gesture

Publications (2)

Publication Number Publication Date
CN106055258A true CN106055258A (en) 2016-10-26
CN106055258B CN106055258B (en) 2019-05-10

Family

ID=57172748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610387188.9A Active CN106055258B (en) 2016-06-01 2016-06-01 The method of mobile terminal and identification long-pressing rotation gesture

Country Status (1)

Country Link
CN (1) CN106055258B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667089A (en) * 2008-09-04 2010-03-10 比亚迪股份有限公司 Method and device for identifying touch gestures
CN101984396A (en) * 2010-10-19 2011-03-09 中兴通讯股份有限公司 Method for automatically identifying rotation gesture and mobile terminal thereof
CN102736838A (en) * 2011-03-31 2012-10-17 比亚迪股份有限公司 Method and device for identifying multi-point rotation motion
US8823670B2 (en) * 2011-11-07 2014-09-02 Benq Corporation Method for screen control on touch screen
CN104471518A (en) * 2012-07-15 2015-03-25 苹果公司 Disambiguation of multitouch gesture recognition for 3d interaction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667089A (en) * 2008-09-04 2010-03-10 比亚迪股份有限公司 Method and device for identifying touch gestures
CN101984396A (en) * 2010-10-19 2011-03-09 中兴通讯股份有限公司 Method for automatically identifying rotation gesture and mobile terminal thereof
CN102736838A (en) * 2011-03-31 2012-10-17 比亚迪股份有限公司 Method and device for identifying multi-point rotation motion
US8823670B2 (en) * 2011-11-07 2014-09-02 Benq Corporation Method for screen control on touch screen
CN104471518A (en) * 2012-07-15 2015-03-25 苹果公司 Disambiguation of multitouch gesture recognition for 3d interaction

Also Published As

Publication number Publication date
CN106055258B (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN104750420B (en) Screenshotss method and device
CN106130734A (en) The control method of mobile terminal and control device
CN106775388A (en) A kind of application program launching method and mobile terminal based on edge gesture
CN106843724A (en) A kind of mobile terminal screen anti-error-touch device and method, mobile terminal
CN106775372A (en) A kind of display adjusting method of suspension procedure disk, device and terminal
CN106873895A (en) The implementation method and device of a kind of edge gesture operation
CN106843723A (en) A kind of application program associates application method and mobile terminal
CN106657602A (en) Conversation screen-off system based on proximity sensor and mobile terminal
CN106897018A (en) Gesture operation method, device and mobile terminal
CN106066766A (en) A kind of mobile terminal and control method thereof
CN106371682A (en) Gesture recognition system based on proximity sensor and method thereof
CN106682474A (en) Icon hiding terminal and method
CN106873887A (en) It is a kind of that the system and method for application function is controlled based on gesture
CN106383707A (en) Picture display method and system
CN106095264B (en) Special display effect device and method
CN106095307A (en) Rotate gesture identifying device and method
CN106406621A (en) Mobile terminal and method of processing touch control operation for mobile terminal
CN106572254A (en) Gesture interaction device and method
CN104636044B (en) The method and mobile terminal of one-handed performance
CN106648052A (en) Application triggering system based on proximity detector and mobile terminal
CN106843684A (en) A kind of device and method, the mobile terminal of editing screen word
CN106484271A (en) A kind of device, method and mobile terminal controlling mobile terminal based on user gesture
CN106254596A (en) A kind of kneading identification system based on proximity transducer and mobile terminal
CN106325503A (en) Interactive operation identification device and method
CN106406874A (en) Commenting device and method

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