CN108965575A - A kind of gesture motion recognition methods, device and terminal device - Google Patents

A kind of gesture motion recognition methods, device and terminal device Download PDF

Info

Publication number
CN108965575A
CN108965575A CN201810408449.XA CN201810408449A CN108965575A CN 108965575 A CN108965575 A CN 108965575A CN 201810408449 A CN201810408449 A CN 201810408449A CN 108965575 A CN108965575 A CN 108965575A
Authority
CN
China
Prior art keywords
track data
preset
gesture
gesture motion
coordinate information
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
CN201810408449.XA
Other languages
Chinese (zh)
Other versions
CN108965575B (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201810408449.XA priority Critical patent/CN108965575B/en
Publication of CN108965575A publication Critical patent/CN108965575A/en
Application granted granted Critical
Publication of CN108965575B publication Critical patent/CN108965575B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of gesture motion recognition methods, when responding gesture motion on the screen, obtain the track data of the gesture motion and determine the corresponding gesture information of the gesture motion;Obtain the coordinate information of several presets in the corresponding track data of the gesture information;Judge whether the coordinate information of the preset meets preset condition;If so, determining the track data for reverse orbit data;If it is not, then determining the track data for positive track data.The present invention also provides a kind of gesture motion identification device and a kind of terminal devices.Using the embodiment of the present invention, it is capable of the gesture motion of reversal of identification user, is more flexible gesture identification process.

Description

A kind of gesture motion recognition methods, device and terminal device
Technical field
The present invention relates to technical field of touch control more particularly to a kind of gesture motion recognition methods, device and terminal device.
Background technique
It is substantially all on present smart phone configured with blank screen gesture function, including VIVO, OPPO and Huawei's mobile phone Etc..After increasing blank screen gesture function, user, can be by drawing specific track under the situation for not pressing power key on the screen The application on some mobile phones is quickly opened, for example can quickly open camera applications etc. by drawing " O " on the screen.This is not only Keep user easy to operate, while also the user experience is improved.
Terminal device in the prior art is substantially all configured with blank screen gesture function, but its gesture identification can only be realized The positive identification of gesture can only identify that user draws " W " gesture from the left end of screen to right end, cannot identify such as " W " gesture User draws this gesture from mobile phone screen right end to left end.Since the use habit of user is different, user is caused to draw the habit of gesture Also different, if terminal device can only identify positive gesture, limitation is larger, cannot flexibly identify the gesture of user.
Summary of the invention
The purpose of the embodiment of the present invention is that a kind of gesture motion recognition methods, device and terminal device are provided, it can be reversed The gesture motion for identifying user, is more flexible gesture identification process.
To achieve the above object, the embodiment of the invention provides a kind of gesture motion recognition methods, comprising:
When responding gesture motion on the screen, obtains the track data of the gesture motion and determine the gesture motion Corresponding gesture information;
Obtain the coordinate information of several presets in the corresponding track data of the gesture information;
Judge whether the coordinate information of the preset meets preset condition;
If so, determining the track data for reverse orbit data;If it is not, then determining the track data for positive rail Mark data.
Compared with prior art, a kind of gesture motion recognition methods disclosed by the invention passes through the hand in response on the screen When gesture acts, obtains the track data of the gesture motion and determine the corresponding gesture information of the gesture motion, then obtain again The coordinate information of several presets in the track data is taken, so that it is default to judge whether the coordinate information of the preset meets Condition determines the track data for reverse orbit data when the coordinate information of the preset meets preset condition.It solves In the prior art since the use habit of user is different, the habit for causing user to draw gesture is also different, and terminal device can only know The problem of not positive gesture, limitation is larger, cannot flexibly identify the gesture of user, the gesture for capableing of reversal of identification user is dynamic Make, is more flexible gesture identification process.
As an improvement of the above scheme, when the corresponding track data of the gesture information is not close track data, institute The coordinate information for stating several presets in the corresponding track data of the acquisition gesture information specifically includes:
Obtain the coordinate information for not closing the beginning and end in track data;
When the corresponding track data of the gesture information is closing track data, the acquisition gesture information is corresponding The track data in the coordinate informations of several presets specifically include:
The coordinate information of several presets in the track data is obtained according to the moving direction of the gesture motion.
As an improvement of the above scheme, the gesture motion recognition methods further include:
When determining the track data for reverse orbit data, determined according to the moving direction of the gesture motion described in The acquisition sequence of several touch points of reverse orbit data, and it is successively read the touch point according to reversed acquisition sequence, it obtains To final track data;
When determining the track data for positive track data, it is successively read according to the moving direction of the gesture motion The acquisition sequence of several touch points of the forward direction track data, obtains final track data.
As an improvement of the above scheme, when the track data is the track data do not closed and extended along horizontal direction When, the preset condition is that the abscissa value of the starting point is greater than the abscissa value of the terminal;
When the track data be do not close and extend along vertical direction track data when, the preset condition is institute The ordinate value for stating starting point is greater than the ordinate value of the terminal.
As an improvement of the above scheme, when the track data is closing track data, according to the gesture motion Moving direction determines the coordinate information of the first preset in the track data, the second preset and third preset;
Then the preset condition is that the coordinate of first preset, second preset and the third preset is believed Breath meets (x2-x1) * (y3-y2)-(y2-y1) * (x3-x2)) < 0;Wherein, x1 is the abscissa of first preset, and y1 is The ordinate of first preset;X2 is the abscissa of second preset, and y2 is the ordinate of second preset; X3 is the abscissa of the third preset, and y3 is the ordinate of the third preset.
The embodiment of the invention also provides a kind of gesture motion identification devices, comprising:
Information acquisition unit when for responding gesture motion on the screen, obtains the track data of the gesture motion And determine the corresponding gesture information of the gesture motion;
Coordinate information acquiring unit, for obtaining several presets in the corresponding track data of the gesture information Coordinate information;
Judging unit, for judging whether the coordinate information of the preset meets preset condition;If so, described in determining Track data is reverse orbit data;If it is not, then determining the track data for positive track data.
Compared with prior art, a kind of gesture motion identification device disclosed by the invention is being responded by information acquisition unit When gesture motion on the screen, obtains the track data of the gesture motion and determine the corresponding gesture letter of the gesture motion Breath, then obtains the coordinate information of several presets in the track data, to pass through by coordinate information acquiring unit again Judging unit judges whether the coordinate information of the preset meets preset condition, when the coordinate information of the preset meets in advance If when condition, determining the track data for reverse orbit data.Solve in the prior art due to the use habit of user not Together, the habit for causing user to draw gesture is also different, and terminal device can only identify positive gesture, and limitation is larger, cannot flexibly know The problem of gesture of other user, is capable of the gesture motion of reversal of identification user, is more flexible gesture identification process.
As an improvement of the above scheme, when the corresponding track data of the gesture information is not close track data, institute Coordinate information acquiring unit is stated to be specifically used for obtaining the coordinate information for not closing the beginning and end in track data;
When the corresponding track data of the gesture information is closing track data, the coordinate information acquiring unit is specific For obtaining the coordinate information of several presets in the track data according to the moving direction of the gesture motion.
As an improvement of the above scheme, the gesture motion identification device further includes final track data acquiring unit;
When determining the track data for reverse orbit data, the final track data acquiring unit is used for according to institute State gesture motion moving direction determine the reverse orbit data several touch points acquisition sequence, and obtained according to reversed It takes sequence to be successively read the touch point, obtains final track data;
When determining the track data for positive track data, the final track data acquiring unit is used for according to institute State gesture motion moving direction be successively read the positive track data several touch points acquisition sequence, obtain final Track data.
As an improvement of the above scheme, when the track data is the track data do not closed and extended along horizontal zone When, the preset condition is that the abscissa value of the starting point is greater than the abscissa value of the terminal;
When the track data be do not close and along vertical region extend track data when, the preset condition is institute The ordinate value for stating starting point is greater than the ordinate value of the terminal;
When the track data is closing track data, the track is determined according to the moving direction of the gesture motion The coordinate information of the first preset, the second preset and third preset in data;Then the preset condition is described first The coordinate information of preset, second preset and the third preset meets (x2-x1) * (y3-y2)-(y2-y1) * (x3-x2))<0;Wherein, x1 is the abscissa of first preset, and y1 is the ordinate of first preset;X2 is institute The abscissa of the second preset is stated, y2 is the ordinate of second preset;X3 is the abscissa of the third preset, y3 For the ordinate of the third preset.
To achieve the above object, the embodiment of the invention also provides a kind of terminal device, including processor, memory and The computer program executed by the processor is stored in the memory and is configured as, the processor executes the meter The gesture motion recognition methods as described in any one of above-described embodiment is realized when calculation machine program.
Detailed description of the invention
Fig. 1 is a kind of flow chart of gesture motion recognition methods provided in an embodiment of the present invention;
Fig. 2 is not close in a kind of gesture motion recognition methods provided in an embodiment of the present invention and extend along horizontal direction Track data schematic diagram;
Fig. 3 is not close in a kind of gesture motion recognition methods provided in an embodiment of the present invention and extend along vertical direction Track data schematic diagram;
Fig. 4 is the schematic diagram that track data is closed in a kind of gesture motion recognition methods provided in an embodiment of the present invention;
Fig. 5 is the signal of the touch point of track data in a kind of gesture motion recognition methods provided in an embodiment of the present invention Figure;
Fig. 6 is a kind of structural schematic diagram of gesture motion identification device 10 provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of terminal device 20 provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Embodiment one
It is a kind of flow chart of gesture motion recognition methods in the embodiment of the present invention referring to Fig. 1, Fig. 1;Include:
When S1, response gesture motion on the screen, obtains the track data of the gesture motion and determine the gesture Act corresponding gesture information;
S2, the coordinate information for obtaining several presets in the corresponding track data of the gesture information;
S3, judge whether the coordinate information of the preset meets preset condition;
S4, if so, determining the track data for reverse orbit data;If it is not, then determining that the track data is positive To track data.
Specifically, in step sl, when screen blank screen, detection screen surface whether there is gesture motion, it is preferred that when There are when gesture motion, it can be determined that whether the gesture motion is identifiable, such as the sliding trace of the gesture motion Lines be clearly, then the gesture motion be it is identifiable, so as to be got accordingly according to the gesture motion Track data, for example the sliding trace of the gesture motion is fuzzy at this time and there are the lines of multiple intersection points, then institute at this time It is unrecognizable to state gesture motion.
Preferably, when the gesture motion can recognize, gesture information corresponding with the gesture motion is obtained, preferably , the gesture information can be ID value, it is preferred that when the track data of the gesture motion meets preset track data When, no matter the track data is positive track data or reverse orbit data, and the gesture information of the gesture motion is all It is identical, then the track data is write in corresponding ID register again, the track data is the gesture motion Sliding trace.Such as have the preset track data of " W " in terminal device in advance, at this time when user on the screen either from Left-to-right picture " W " still draws " W " from right to left, and the corresponding gesture information of the gesture motion of " W " is all identical.
Specifically, in step S2~S3, according to touch screen industry and the default rule of touch IC supplier, generally all It is using screen upper left endpoint as coordinate origin, the coordinate value of bottom right endpoint is maximum value, to establish screen coordinate system.It obtains The coordinate information of several presets in the corresponding track data of the gesture information;Judge the coordinate information of the preset Whether preset condition is met.
Preferably, referring to fig. 2, when the corresponding track data of the gesture information is not close and extend along horizontal direction Track data when, such as " V ", " ^ ", "-" gesture, it is preferred that when the straight line that the Origin And Destination of the track data is formed When with the acute angle in the angle of X-axis less than 45 °, or the straight line and X-axis that are formed when the Origin And Destination of the track data When angle is 0 ° (parallel), it can determine that the track data is to extend along horizontal direction.At this time according to fig. 2 in the hand The moving direction of gesture movement determines that the preset is starting point a and terminal b, then the preset condition is the horizontal seat of the starting point a Scale value is greater than the abscissa value of the terminal b.The coordinate information of the starting point a and the terminal b are obtained, at this point, in the screen In curtain coordinate system, when the abscissa value of the starting point a is greater than the abscissa value of the terminal a, then the coordinate of the preset Information meets the preset condition, when the abscissa value of the starting point a is less than the abscissa value of the terminal a, then described pre- The coordinate information to set up an office is unsatisfactory for the preset condition.
Preferably, referring to Fig. 3, when the track data be do not close and extend along vertical direction track data when, Such as ">", "<", " | " gesture, it is preferred that when in the Origin And Destination straight line formed of the track data and the angle of X-axis Acute angle when being greater than 45 °, or (hang down when the Origin And Destination straight line formed of the track data and the angle of X-axis are 90 ° When directly), it can determine that the track data extends along vertical direction.At this time according to the shifting of the gesture motion in Fig. 3 Dynamic direction determines that the preset is starting point c and terminal d, then the preset condition is greater than institute for the ordinate value of the starting point c State the ordinate value of terminal d.The coordinate information of the starting point c and the terminal d are obtained, at this point, in the screen coordinate system, When the ordinate value of the starting point c is greater than the ordinate value of the terminal d, then described in the coordinate information satisfaction of the preset Preset condition, when the ordinate value of the starting point c is less than the ordinate value of the terminal d, then the coordinate of the preset is believed Breath is unsatisfactory for the preset condition.
Preferably, referring to fig. 4, when the track data is closing track data, such as "○", " " gesture, work as institute When the starting point for stating gesture motion is o, determine that the preset is the according to the moving direction of the gesture motion in Fig. 4 at this time One preset e, the second preset f and third preset g;Preferably, the starting point can also be used as the preset, then described Preset condition is that the coordinate information of first preset, second preset and the third preset meets (x2-x1) * (y3-y2)-(y2-y1)*(x3-x2))<0。
The coordinate information for obtaining the first preset e, the second preset f and the third preset g, in figure Shown, the coordinate information of the first preset e is (x1, y1), and the coordinate information of the second preset f is (x2, y2), institute The coordinate information for stating third preset g is (x3, y3).When first preset, second preset and the third are pre- The coordinate information that sets up an office meets (x2-x1) * (y3-y2)-(y2-y1) * (x3-x2)) < 0 when, then the coordinate information of the preset Meet the preset condition (track data is track data counterclockwise at this time);When first preset, described second The coordinate information of preset and the third preset meets (x2-x1) * (y3-y2)-(y2-y1) * (x3-x2)) > 0 when, then institute The coordinate information for stating preset is unsatisfactory for the preset condition (track data is track data clockwise at this time).
Specifically, in step s 4, when the coordinate information of the preset meets the preset condition, determining the rail Mark data are reverse orbit data;When the coordinate information of the preset is unsatisfactory for the preset condition, the track is determined Data are positive track data.
Preferably, when determining the track data for reverse orbit data, according to the moving direction of the gesture motion It determines the acquisition sequence of several touch points of the reverse orbit data, and is successively read the touching according to reversed acquisition sequence Point is controlled, final track data is obtained.When determining the track data for positive track data, according to the gesture motion Moving direction is successively read the acquisition sequence of several touch points of the positive track data, obtains final track data.
Preferably, the touch point can be selected according to the concrete shape of the track data, when the gesture information The corresponding track data is not close and when track data without inflection point, and the touch point is described do not close and without inflection point Track data Origin And Destination;When the corresponding track data of the gesture information is the track for not closing and having inflection point When data, the touch point is starting point, terminal and the inflection point of the track data for not closing and having inflection point;When the gesture is believed When ceasing the corresponding track data to close track data, the touch point can be described in above-mentioned closing track data Preset.
It is described when the track data is positive track data referring to Fig. 5 such as when the gesture motion is " W " Touch point be starting point h, terminal i, the first inflection point j, Second Inflexion Point k and third inflection point l, then at this time the touch point acquisition sequence For h → j → k → l → i, to obtain final track data.Preferably, when the track data is positive track data, Can be by the mark position flag 0 in code, while the acquisition sequence of the touch point is reported, so as to receive the flag mark When the acquisition sequence of will position and the touch point, corresponding gesture event is responded.
Preferably, when the track data is reverse orbit data, the touch point is starting point i, terminal h, first turns Point l, Second Inflexion Point k and third inflection point j, then the acquisition sequence of the touch point is i → l → k → j → h at this time, according to reversed Acquisition sequence is successively read the touch point, then the acquisition of the touch point is sequentially converted into h → j → k → l → i at this time, thus Obtain final track data.Preferably, when the track data is reverse orbit data, flag can be marked in code Will position 1, while the acquisition sequence after the touch point conversion is reported, so as to receive the flag flag bit and the touch-control When putting the acquisition sequence after converting, corresponding gesture event is responded.
When it is implemented, obtaining the track data of the gesture motion by when responding gesture motion on the screen And determine the corresponding gesture information of the gesture motion, the coordinate letter of several presets in the track data is then obtained again Breath, to judge whether the coordinate information of the preset meets preset condition, when the coordinate information of the preset meets in advance If when condition, determining the track data for reverse orbit data.
Compared with prior art, a kind of gesture motion recognition methods disclosed by the invention solve in the prior art due to The use habit at family is different, and the habit for causing user to draw gesture is also different, and terminal device can only identify positive gesture, limitation compared with Greatly, the problem of cannot flexibly identifying the gesture of user, it is capable of the gesture motion of reversal of identification user, has more gesture identification process Flexibility.
Embodiment two
It is a kind of structural schematic diagram of gesture motion identification device 10 provided in an embodiment of the present invention referring to Fig. 6, Fig. 6;Packet It includes:
Information acquisition unit 1 when for responding gesture motion on the screen, obtains the track data of the gesture motion And determine the corresponding gesture information of the gesture motion;
Coordinate information acquiring unit 2, for obtaining several presets in the corresponding track data of the gesture information Coordinate information;
Judging unit 3, for judging whether the coordinate information of the preset meets preset condition;If so, determining institute Stating track data is reverse orbit data;If it is not, then determining the track data for positive track data.
Specifically, detection screen surface whether there is gesture motion when screen blank screen, it is preferred that when there are gestures to move When making, it can be determined that whether the gesture motion is identifiable, for example the lines of sliding trace of the gesture motion are clear , then the gesture motion be it is identifiable, so as to get corresponding track data according to the gesture motion, than The sliding trace of gesture motion as described at this time is fuzzy and there are the lines of multiple intersection points, then the gesture motion is not at this time It is identifiable.
Preferably, when the gesture motion can recognize, the information acquisition unit 1 obtains corresponding with the gesture motion Gesture information, it is preferred that the gesture information can be ID value, it is preferred that when the gesture motion track data meet When preset track data, no matter the track data is positive track data or reverse orbit data, the gesture motion Gesture information be all it is identical, then the track data is write in corresponding ID register again, the track data is The sliding trace of the gesture motion.For example have the preset track data of " W " in terminal device in advance, at this time when user exists " W " is either from left to right drawn on screen and still draws " W " from right to left, and the corresponding gesture information of the gesture motion of " W " is all phase With.
Specifically, according to touch screen industry and the default rule of touch IC supplier, typically by screen left upper end Point is used as coordinate origin, and the coordinate value of bottom right endpoint is maximum value, to establish screen coordinate system.The coordinate information obtains single Member 2 obtains the coordinate information of several presets in the corresponding track data of the gesture information;The judging unit 3 judges Whether the coordinate information of the preset meets preset condition.
Preferably, referring to fig. 2, when the corresponding track data of the gesture information is not close and extend along horizontal direction Track data when, such as " V ", " ^ ", "-" gesture, it is preferred that when the straight line that the Origin And Destination of the track data is formed When with the acute angle in the angle of X-axis less than 45 °, or the straight line and X-axis that are formed when the Origin And Destination of the track data When angle is 0 ° (parallel), it can determine that the track data is to extend along horizontal direction.At this time according to fig. 2 in the hand The moving direction of gesture movement determines that the preset is starting point a and terminal b, then the preset condition is the horizontal seat of the starting point a Scale value is greater than the abscissa value of the terminal b.The coordinate information of the starting point a and the terminal b are obtained, at this point, in the screen In curtain coordinate system, when the abscissa value of the starting point a is greater than the abscissa value of the terminal a, then the judging unit 3 determines The coordinate information of the preset meets the preset condition, when the abscissa value of the starting point a is less than the horizontal seat of the terminal a When scale value, then the judging unit 3 determines that the coordinate information of the preset is unsatisfactory for the preset condition.
Preferably, referring to Fig. 3, when the track data be do not close and extend along vertical direction track data when, Such as ">", "<", " | " gesture, it is preferred that when in the Origin And Destination straight line formed of the track data and the angle of X-axis Acute angle when being greater than 45 °, or (hang down when the Origin And Destination straight line formed of the track data and the angle of X-axis are 90 ° When directly), it can determine that the track data extends along vertical direction.At this time according to the shifting of the gesture motion in Fig. 3 Dynamic direction determines that the preset is starting point c and terminal d, then the preset condition is greater than institute for the ordinate value of the starting point c State the ordinate value of terminal d.The coordinate information of the starting point c and the terminal d are obtained, at this point, in the screen coordinate system, When the ordinate value of the starting point c is greater than the ordinate value of the terminal d, then the judging unit 3 determines the preset Coordinate information meet the preset condition, when the ordinate value of the starting point c be less than the terminal d ordinate value when, then The judging unit 3 determines that the coordinate information of the preset is unsatisfactory for the preset condition.
Preferably, referring to fig. 4, when the track data is closing track data, such as "○", " " gesture, work as institute When the starting point for stating gesture motion is o, determine that the preset is the according to the moving direction of the gesture motion in Fig. 4 at this time One preset e, the second preset f and third preset g;Preferably, the starting point can also be used as the preset, then described Preset condition is that the coordinate information of first preset, second preset and the third preset meets (x2-x1) * (y3-y2)-(y2-y1)*(x3-x2))<0。
The coordinate information for obtaining the first preset e, the second preset f and the third preset g, in figure Shown, the coordinate information of the first preset e is (x1, y1), and the coordinate information of the second preset f is (x2, y2), institute The coordinate information for stating third preset g is (x3, y3).When first preset, second preset and the third are pre- The coordinate information that sets up an office meets (x2-x1) * (y3-y2)-(y2-y1) * (x3-x2)) < 0 when, then the judging unit 3 determines institute The coordinate information for stating preset meets the preset condition (track data is track data clockwise at this time);When described The coordinate information of one preset, second preset and the third preset meets (x2-x1) * (y3-y2)-(y2-y1) * (x3-x2)) when > 0, then the judging unit 3 determines that the coordinate information of the preset is unsatisfactory for the preset condition (institute at this time Stating track data is track data counterclockwise).
Specifically, the judging unit 3 determines described when the coordinate information of the preset meets the preset condition Track data is reverse orbit data;When the coordinate information of the preset is unsatisfactory for the preset condition, the judgement is single Member 3 determines that the track data is positive track data.
Preferably, the gesture motion identification device further includes final track data acquiring unit 4.When the judging unit 3 when determining the track datas for reverse orbit data, and the final track data acquiring unit 4 is according to the gesture motion Moving direction determines the acquisition sequence of several touch points of the reverse orbit data, and successively reads according to reversed acquisition sequence The touch point is taken, final track data is obtained.When the judging unit 3 determines the track data for positive track data When, the final track data acquiring unit 4 is successively read the positive track number according to the moving direction of the gesture motion According to several touch points acquisition sequence, obtain final track data.
Preferably, the touch point can be selected according to the concrete shape of the track data, when the gesture information The corresponding track data is not close and when track data without inflection point, and the touch point is described do not close and without inflection point Track data Origin And Destination;When the corresponding track data of the gesture information is the track for not closing and having inflection point When data, the touch point is starting point, terminal and the inflection point of the track data for not closing and having inflection point;When the gesture is believed When ceasing the corresponding track data to close track data, the touch point can be described in above-mentioned closing track data Preset.
It is described when the track data is positive track data referring to Fig. 5 such as when the gesture motion is " W " Touch point be starting point h, terminal i, the first inflection point j, Second Inflexion Point k and third inflection point l, then at this time the touch point acquisition sequence For h → j → k → l → i, to obtain final track data.Preferably, when the track data is positive track data, Can be by the mark position flag 0 in code, while the acquisition sequence of the touch point is reported, so as to receive the flag mark When the acquisition sequence of will position and the touch point, corresponding gesture event is responded.
Preferably, when the track data is reverse orbit data, the touch point is starting point i, terminal h, first turns Point l, Second Inflexion Point k and third inflection point j, then the acquisition sequence of the touch point is i → l → k → j → h at this time, according to reversed Acquisition sequence is successively read the touch point, then the acquisition of the touch point is sequentially converted into h → j → k → l → i at this time, thus Obtain final track data.Preferably, when the track data is reverse orbit data, flag can be marked in code Will position 1, while the acquisition sequence after the touch point conversion is reported, so as to receive the flag flag bit and the touch-control When putting the acquisition sequence after converting, corresponding gesture event is responded.
When it is implemented, it is dynamic to obtain the gesture through information acquisition unit 1 when responding gesture motion on the screen The track data of work simultaneously determines the corresponding gesture information of the gesture motion, is then obtained again by coordinate information acquiring unit 2 The coordinate information of several presets in the track data, to judge the coordinate information of the preset by judging unit 3 Whether meet preset condition, when the coordinate information of the preset meets preset condition, determines that the track data is reversed Track data.
Compared with prior art, a kind of gesture motion identification device disclosed by the invention solve in the prior art due to The use habit at family is different, and the habit for causing user to draw gesture is also different, and terminal device can only identify positive gesture, limitation compared with Greatly, the problem of cannot flexibly identifying the gesture of user, it is capable of the gesture motion of reversal of identification user, has more gesture identification process Flexibility.
Embodiment three
It is a kind of structural schematic diagram of terminal device 20 provided in an embodiment of the present invention referring to Fig. 7, Fig. 7;The embodiment Terminal device 20 includes: processor 21, memory 22 and is stored in the memory 22 and can be on the processor 21 The computer program of operation.The processor 21 realizes above-mentioned each gesture motion recognition methods when executing the computer program Step in embodiment, such as step S1~S4 shown in FIG. 1.Alternatively, when the processor 21 executes the computer program Realize the function of each unit in above-mentioned each Installation practice, such as the function of the information acquisition unit 1.
Illustratively, the computer program can be divided into one or more module/units, one or more A module/unit is stored in the memory, and is executed by the processor 21, to complete the present invention.It is one or Multiple module/units can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing Implementation procedure of the computer program in the terminal device 20.For example, the computer program can be divided into letter Cease acquiring unit 1, coordinate information acquiring unit 2, judging unit 3 and final track data acquiring unit 4, each specific function of module Can be with reference to the function of modules in gesture motion identification device 10 in above-described embodiment, details are not described herein.
The terminal device 20 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device 20 may include, but be not limited only to, processor 21, memory 22.It will be understood by those skilled in the art that The schematic diagram is only the example of terminal device 20, does not constitute the restriction to terminal device 20, may include than illustrating more More or less component perhaps combines certain components or different components, such as the terminal device 20 can also include defeated Enter output equipment, network access equipment, bus etc..
The processor 21 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng the processor 21 is the control centre of the terminal device 20, utilizes various interfaces and the entire terminal device of connection 20 various pieces.
The memory 22 can be used for storing the computer program and/or module, the processor 22 by operation or Computer program and/or the module stored in the memory is executed, and calls the data being stored in memory, is realized The various functions of the terminal device 20.The memory 22 can mainly include storing program area and storage data area, wherein deposit Application program needed for storage program area can store operating device, at least one function (for example sound-playing function, image play function Energy is equal) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to mobile phone. In addition, the memory 22 may include high-speed random access memory, it can also include nonvolatile memory, such as firmly Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states Part.
Wherein, if module/unit that the terminal device 20 integrates is realized in the form of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally The all or part of the process in above-described embodiment method is realized in invention, and relevant hardware can also be instructed by computer program It completes, the computer program can be stored in a computer readable storage medium, the computer program is by processor When execution, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, The computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..Institute State computer-readable medium may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs It is bright, the content that the computer-readable medium includes can according in jurisdiction make laws and patent practice requirement into Row increase and decrease appropriate, such as do not include electric load according to legislation and patent practice, computer-readable medium in certain jurisdictions Wave signal and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention In embodiment attached drawing, the connection relationship between module indicate between them have communication connection, specifically can be implemented as one or A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand And implement.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (10)

1. a kind of gesture motion recognition methods characterized by comprising
When responding gesture motion on the screen, obtains the track data of the gesture motion and determine that the gesture motion is corresponding Gesture information;
Obtain the coordinate information of several presets in the corresponding track data of the gesture information;
Judge whether the coordinate information of the preset meets preset condition;
If so, determining the track data for reverse orbit data;If it is not, then determining the track data for positive track number According to.
2. gesture motion recognition methods as described in claim 1, which is characterized in that
When the corresponding track data of the gesture information is not close track data, the acquisition gesture information is corresponding The coordinate information of several presets specifically includes in the track data:
Obtain the coordinate information for not closing the beginning and end in track data;
It is described to obtain the corresponding institute of the gesture information when the corresponding track data of the gesture information is closing track data The coordinate information for stating several presets in track data specifically includes:
The coordinate information of several presets in the track data is obtained according to the moving direction of the gesture motion.
3. gesture motion recognition methods as described in claim 1, which is characterized in that the gesture motion recognition methods is also wrapped It includes:
When determining the track data for reverse orbit data, determined according to the moving direction of the gesture motion described reversed The acquisition sequence of several touch points of track data, and it is successively read the touch point according to reversed acquisition sequence, it obtains most Whole track data;
When determining the track data for positive track data, it is successively read according to the moving direction of the gesture motion described The acquisition sequence of several touch points of positive track data, obtains final track data.
4. gesture motion recognition methods as claimed in claim 2, which is characterized in that when the track data is not close and edge Horizontal direction extend track data when, the preset condition be the starting point abscissa value be greater than the terminal horizontal seat Scale value;
When the track data be do not close and extend along vertical direction track data when, the preset condition is described rises The ordinate value of point is greater than the ordinate value of the terminal.
5. gesture motion recognition methods as claimed in claim 2, which is characterized in that when the track data is closing track number According to when, the first preset, the second preset and in the track data are determined according to the moving direction of the gesture motion The coordinate information of three presets;
Then the preset condition is that the coordinate information of first preset, second preset and the third preset is full Foot (x2-x1) * (y3-y2)-(y2-y1) * (x3-x2)) < 0;Wherein, x1 is the abscissa of first preset, and y1 is described The ordinate of first preset;X2 is the abscissa of second preset, and y2 is the ordinate of second preset;X3 is The abscissa of the third preset, y3 are the ordinate of the third preset.
6. a kind of gesture motion identification device characterized by comprising
Information acquisition unit when for responding gesture motion on the screen, obtains the track data of the gesture motion and true Determine the corresponding gesture information of the gesture motion;
Coordinate information acquiring unit, for obtaining the coordinate of several presets in the corresponding track data of the gesture information Information;
Judging unit, for judging whether the coordinate information of the preset meets preset condition;If so, determining the track Data are reverse orbit data;If it is not, then determining the track data for positive track data.
7. gesture motion identification device as claimed in claim 6, which is characterized in that when the corresponding track number of the gesture information When according to not close track data, the coordinate information acquiring unit is specifically used for obtaining not closed in track data The coordinate information of point and terminal;
When the corresponding track data of the gesture information is closing track data, the coordinate information acquiring unit is specifically used for The coordinate information of several presets in the track data is obtained according to the moving direction of the gesture motion.
8. gesture motion identification device as claimed in claim 7, which is characterized in that the gesture motion identification device further includes Final track data acquiring unit;
When determining the track data for reverse orbit data, the final track data acquiring unit is used for according to the hand The moving direction of gesture movement determines the acquisition sequence of several touch points of the reverse orbit data, and suitable according to reversed acquisition Sequence is successively read the touch point, obtains final track data;
When determining the track data for positive track data, the final track data acquiring unit is used for according to the hand The moving direction of gesture movement is successively read the acquisition sequence of several touch points of the positive track data, obtains final track Data.
9. gesture motion identification device as claimed in claim 7, which is characterized in that when the track data is not close and edge Horizontal zone extend track data when, the preset condition be the starting point abscissa value be greater than the terminal horizontal seat Scale value;
When the track data be do not close and extend along vertical region track data when, the preset condition is described rises The ordinate value of point is greater than the ordinate value of the terminal;
When the track data is closing track data, the track data is determined according to the moving direction of the gesture motion In the first preset, the second preset and third preset coordinate information;Then the preset condition is described first default The coordinate information of point, second preset and the third preset meets (x2-x1) * (y3-y2)-(y2-y1) * (x3- x2))<0;Wherein, x1 is the abscissa of first preset, and y1 is the ordinate of first preset;X2 is described the The abscissa of two presets, y2 are the ordinate of second preset;X3 is the abscissa of the third preset, and y3 is institute State the ordinate of third preset.
10. a kind of terminal device, which is characterized in that including processor, memory and store in the memory and matched It is set to the computer program executed by the processor, the processor realizes such as claim when executing the computer program Gesture motion recognition methods described in any one of 1 to 5.
CN201810408449.XA 2018-05-02 2018-05-02 Gesture action recognition method and device and terminal equipment Expired - Fee Related CN108965575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810408449.XA CN108965575B (en) 2018-05-02 2018-05-02 Gesture action recognition method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810408449.XA CN108965575B (en) 2018-05-02 2018-05-02 Gesture action recognition method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN108965575A true CN108965575A (en) 2018-12-07
CN108965575B CN108965575B (en) 2020-07-28

Family

ID=64498829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810408449.XA Expired - Fee Related CN108965575B (en) 2018-05-02 2018-05-02 Gesture action recognition method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN108965575B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046603A (en) * 2019-04-25 2019-07-23 合肥工业大学 A kind of gesture motion recognition methods of the general musician's language coding of China
CN110908581A (en) * 2019-11-20 2020-03-24 网易(杭州)网络有限公司 Gesture recognition method and device, computer storage medium and electronic equipment
CN111104886A (en) * 2019-12-10 2020-05-05 北京集创北方科技股份有限公司 Gesture recognition method, device, equipment and storage medium
CN112363613A (en) * 2020-09-25 2021-02-12 惠州市德赛西威汽车电子股份有限公司 Infrared sliding gesture induction recognition method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110074719A1 (en) * 2009-09-30 2011-03-31 Higgstec Inc. Gesture detecting method for touch panel
CN102819331A (en) * 2011-06-07 2012-12-12 联想(北京)有限公司 Mobile terminal and touch input method thereof
CN104991687A (en) * 2015-06-09 2015-10-21 惠州Tcl移动通信有限公司 Method and system for acquiring curve operating track of touch-screen device
CN106293729A (en) * 2016-08-01 2017-01-04 珠海格力电器股份有限公司 Method and device for controlling application program in mobile terminal and mobile equipment
CN107463331A (en) * 2017-08-15 2017-12-12 上海闻泰电子科技有限公司 Gesture path analogy method, device and electronic equipment
CN107479816A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Recognition methods, device, storage medium and the mobile terminal of blank screen gesture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110074719A1 (en) * 2009-09-30 2011-03-31 Higgstec Inc. Gesture detecting method for touch panel
CN102819331A (en) * 2011-06-07 2012-12-12 联想(北京)有限公司 Mobile terminal and touch input method thereof
CN104991687A (en) * 2015-06-09 2015-10-21 惠州Tcl移动通信有限公司 Method and system for acquiring curve operating track of touch-screen device
CN106293729A (en) * 2016-08-01 2017-01-04 珠海格力电器股份有限公司 Method and device for controlling application program in mobile terminal and mobile equipment
CN107479816A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Recognition methods, device, storage medium and the mobile terminal of blank screen gesture
CN107463331A (en) * 2017-08-15 2017-12-12 上海闻泰电子科技有限公司 Gesture path analogy method, device and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046603A (en) * 2019-04-25 2019-07-23 合肥工业大学 A kind of gesture motion recognition methods of the general musician's language coding of China
CN110908581A (en) * 2019-11-20 2020-03-24 网易(杭州)网络有限公司 Gesture recognition method and device, computer storage medium and electronic equipment
CN111104886A (en) * 2019-12-10 2020-05-05 北京集创北方科技股份有限公司 Gesture recognition method, device, equipment and storage medium
CN112363613A (en) * 2020-09-25 2021-02-12 惠州市德赛西威汽车电子股份有限公司 Infrared sliding gesture induction recognition method

Also Published As

Publication number Publication date
CN108965575B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN108965575A (en) A kind of gesture motion recognition methods, device and terminal device
CN105353936B (en) A kind of display methods and electronic equipment
CN106575291A (en) Detecting selection of digital ink
CN107688824A (en) Picture match method and terminal device
CN109871800A (en) A kind of estimation method of human posture, device and storage medium
CN108205685A (en) Video classification methods, visual classification device and electronic equipment
CN110427232A (en) Page management method, device, computer equipment and storage medium
CN108460346B (en) Fingerprint identification method and device
CN108733296A (en) Method, device and equipment for erasing handwriting
CN108762740A (en) Generation method, device and the electronic equipment of page data
CN105183311A (en) Folder merging method and device
US20210390299A1 (en) Techniques to determine document recognition errors
CN104461545B (en) Content in mobile terminal is provided to the method and device of user
CN108399025A (en) Method and device for correcting identification deviation and terminal equipment
CN109698914A (en) A kind of lightning special efficacy rendering method, device, equipment and storage medium
TW201642115A (en) An icon adjustment method, an icon adjustment system and an electronic device thereof
CN104571904B (en) A kind of information processing method and electronic equipment
CN108845757A (en) Touch input method and device for intelligent interaction panel, computer readable storage medium and intelligent interaction panel
CN107734138A (en) The display methods and device of notification message, computer installation and storage medium
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN109407955A (en) User interface interaction method, computer installation, computer readable storage medium
CN104093010B (en) A kind of image processing method and device
CN108416300A (en) Method and device for recognizing writing track and terminal equipment
CN107239194A (en) Interface display method and device
CN110264401A (en) Continuous type image magnification method, device and storage medium based on radial basis function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200728