WO2018068403A1 - Gesture recognition method and apparatus based on touch control remote controller - Google Patents

Gesture recognition method and apparatus based on touch control remote controller Download PDF

Info

Publication number
WO2018068403A1
WO2018068403A1 PCT/CN2016/112399 CN2016112399W WO2018068403A1 WO 2018068403 A1 WO2018068403 A1 WO 2018068403A1 CN 2016112399 W CN2016112399 W CN 2016112399W WO 2018068403 A1 WO2018068403 A1 WO 2018068403A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
touch
distance
gesture recognition
smoothed
Prior art date
Application number
PCT/CN2016/112399
Other languages
French (fr)
Chinese (zh)
Inventor
杨斌
Original Assignee
深圳Tcl新技术有限公司
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 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2018068403A1 publication Critical patent/WO2018068403A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42201Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] biosensors, e.g. heat sensor for presence detection, EEG sensors or any limb activity sensors worn by the user
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42224Touch pad or touch panel provided on the remote control

Definitions

  • the present invention relates to the field of remote control technologies, and in particular, to a gesture recognition method and apparatus based on a touch remote controller.
  • the existing touch-type remote controller often performs software algorithm processing when the user's finger raises the end sliding motion, and then sends a control signal indicating the recognized gesture motion to the control signal. Smart TV.
  • the touch remote control transmission time is generally 20 milliseconds, and the finger operation time varies from 180 milliseconds to 800 milliseconds, it takes at least 200 milliseconds from the user sliding the touchpad to the smart TV interface to respond to the operation command, if the finger manipulation is compared. Slow, the response time will be longer. The user must feel that the touch action of the smart TV in response to the remote control is slow, which seriously affects the user experience.
  • the main purpose of the present invention is to provide a gesture recognition method and device based on a touch remote controller, which aims to solve the problem that the existing touch remote controller needs to wait for the user's finger to lift and end the sliding motion, and then perform the gesture motion recognition to make the smart television Responding to the problem that the remote control's touch action is slow.
  • the present invention provides a gesture recognition method based on a touch remote controller, which includes the following steps:
  • Step A During the touch operation, the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine whether the touch distance reaches the threshold. distance;
  • Step B When the touch distance reaches a threshold distance, perform gesture recognition according to the smoothed touch motion track, and output a gesture recognition result.
  • the smoothing process includes linear smoothing, function fitting smoothing, and exponential smoothing.
  • the step A comprises:
  • Step A1 When collecting the point information of the second point, determine a point from the line connecting the first point and the second point as a smoothed point according to a preset rule, and smooth the processed The point as the starting point for smoothing the trajectory;
  • Step A2 Determine a point from the line between the subsequently collected point and the adjacent previous point as a smoothed point according to a preset rule, and use the smoothed point as an intermediate point of the smoothed processing track;
  • Step A3 Calculate the distance from the intermediate point to the starting point, and use the distance as the touch distance;
  • step A4 it is determined whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, the process returns to step A2. When the touch distance reaches the threshold distance, the process proceeds to step B.
  • the method further includes:
  • Step A5 When the distance between the intermediate point and the starting point is less than the threshold distance, predict the smoothing of the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point;
  • Step A6 Calculate the distance from the predicted point to the starting point, and use the distance as the touch distance;
  • Step A 7 Determine whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, return to step A2. When the touch distance reaches the threshold distance, proceed to step B.
  • the step B comprises:
  • Step B1 calculating an angle formed by the line connecting the starting point to the predicted point and the reference line, and using the angle as a linear motion angle;
  • Step B2 when the linear motion angle is within the first angular range, determining that the touch motion is an upward shift, and when the linear motion angle is within a second angular range, determining that the touch motion is a left shift And determining that the touch motion is a downward shift when the linear motion angle is within a third angular range, and determining that the touch motion is a right shift when the linear motion angle is within a fourth angular range.
  • the method further includes:
  • the starting point on the smoothing processing track is the center of the circle, and the threshold distance is used as the radius.
  • the intermediate point or the predicted point exceeds the range of the circle, it indicates that the touch distance reaches the threshold distance.
  • the method further includes:
  • the direction of the touch motion is identified as left shift, right shift, up shift or down shift, and the gesture recognition result is output.
  • the method further includes:
  • Step C When the touch distance reaches the threshold distance, the number of points from the starting point to the predicted point is N, and the N+1th point collected on the touch motion track is taken as the first point of the next piece of the touch motion track.
  • the present invention further provides a gesture recognition device based on a touch remote controller, including:
  • the calculation module is configured to smooth the touch motion track according to the point information on the touch motion track collected in real time during the touch operation, and calculate the touch distance according to the smoothed touch motion track to determine whether the touch distance is Reaching the threshold distance;
  • the identification module is configured to perform gesture recognition according to the smoothed touch motion track when the touch distance reaches a threshold distance, and output a gesture recognition result.
  • the smoothing process includes linear smoothing, function fitting smoothing, and exponential smoothing.
  • the calculation module comprises:
  • a smoothing unit configured to determine a point from the line connecting the first point and the second point as a smoothed point according to a preset rule when collecting the point information of the second point, and smooth the point
  • the processed point serves as the starting point for smoothing the trajectory
  • a calculating unit configured to calculate a distance from the intermediate point to the starting point, and use the distance as the touch distance
  • the comparing unit is configured to determine whether the touch distance reaches a threshold distance.
  • the calculation module further includes a prediction unit
  • the prediction unit is configured to: when the distance between the intermediate point and the starting point is less than the threshold distance, predict the smoothing of the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point;
  • the calculating unit is further configured to calculate a distance from the predicted point to the starting point, and use the distance as the touch distance;
  • the comparing unit is further configured to determine whether the touch distance reaches a threshold distance.
  • the identification module comprises:
  • An angle unit configured to calculate an angle formed by a line connecting the starting point to the predicted point and a reference line, and using the angle as a linear motion angle
  • a determining unit configured to: when the linear motion angle is within a first angular range, determine that the touch motion is an upward shift, and when the linear motion angle is within a second angular range, determine that the touch motion is Moving to the left, when the linear motion angle is within the third angular range, determining that the touch motion is a downward shift, and when the linear motion angle is within the fourth angular range, determining that the touch motion is a right shift .
  • the identification module is further configured to use a starting point on the smoothing processing track as a center, and a threshold distance as a radius as a circle.
  • a threshold distance as a radius as a circle.
  • the identification module is further configured to identify, according to a position of the line connecting the first point and the center of the circle beyond the circle, the direction of the touch motion is left shift, right shift, up shift or down Move and output the gesture recognition result.
  • the touch remote controller-based gesture recognition device further includes:
  • a starting point module when the touch distance reaches a threshold distance, the number of points from the starting point to the predicted point is N, and the N+1th point collected on the touch motion track is taken as the first point of the next piece of the touch motion track .
  • the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine whether the touch distance reaches the threshold. a distance; when the touch distance reaches a threshold distance, gesture recognition is performed according to the smoothed touch motion track, and the gesture recognition result is output.
  • the gesture recognition is performed, so that the smart TV synchronizes the touch action of the touch remote controller in the process of sliding the touch panel, and the response is rapid.
  • FIG. 1 is a schematic flow chart of a first embodiment of a gesture recognition method based on a touch remote controller according to the present invention
  • FIG. 2 is a schematic flow chart of the refinement of the first embodiment of step S10 of FIG. 1;
  • FIG. 3 is a schematic diagram of a smoothing process of a touch motion track according to an embodiment of the present invention
  • step S10 of FIG. 1 is a schematic flow chart of the second embodiment of step S10 of FIG. 1;
  • FIG. 5 is a schematic diagram of determining whether a touch distance reaches a threshold distance according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram showing the refinement process of an embodiment of step S20 in FIG. 1;
  • FIG. 7 is a schematic flow chart of a second embodiment of a gesture recognition method based on a touch remote controller according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a first embodiment of a gesture recognition device based on a touch remote controller according to the present invention.
  • FIG. 9 is a schematic diagram of a refinement function module of the first embodiment of the computing module of FIG. 8;
  • FIG. 10 is a schematic diagram of a refinement function module of the second embodiment of the computing module of FIG. 8;
  • FIG. 11 is a schematic diagram of a refinement function module of an embodiment of the identification module of FIG. 8;
  • FIG. 12 is a schematic diagram of functional modules of a second embodiment of a gesture recognition device based on a touch remote controller of the present invention.
  • the main solution of the embodiment of the present invention is: during the touch operation, the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine Whether the touch distance reaches a threshold distance; when the touch distance reaches a threshold distance, the gesture recognition is performed according to the smoothed touch motion track, and the gesture recognition result is output.
  • the gesture recognition is performed, so that the smart TV synchronizes the touch action of the touch remote controller in the process of sliding the touch panel, and the response is rapid.
  • the gesture motion recognition is performed, so that the touch action of the smart television in response to the touch remote controller is slow.
  • the present invention provides a gesture recognition method based on a touch remote controller.
  • FIG. 1 is a schematic flow chart of a first embodiment of a gesture recognition method based on a touch remote controller according to the present invention.
  • the touch remote controller-based gesture recognition method includes:
  • Step S10 During the touch operation, the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine whether the touch distance reaches the threshold. distance;
  • the touch remote controller includes a touch panel, and the touch panel may also be a touch screen, and may be a touch panel capable of detecting touch points, such as a resistive touch panel or a capacitive inductive touch panel.
  • the touch remote controller detects the number of touched points, and acquires the sliding of the user's finger according to the sequence of the detected touched points. Touch the motion track. Since the detected touched point may have interference or hopping, the obtained touch motion trajectory may be very unsmooth, and the speed and accuracy of the gesture recognition are greatly reduced. Therefore, an embodiment of the present invention smoothes the touch motion trajectory. To improve the speed and accuracy of gesture recognition.
  • FIG. 2 is a schematic diagram of a refinement process of the first embodiment of step S10 of FIG.
  • Step S11 when collecting the point information of the second point, determining a point from the line connecting the first point and the second point as a smoothed point according to a preset rule, and smoothing the point The point as the starting point for smoothing the trajectory;
  • Step S12 determining, according to a preset rule, a point from the line of the subsequently collected point and the adjacent previous point as the smoothed point, and using the smoothed point as the intermediate point of the smoothing processing track;
  • Step S13 calculating a distance from the intermediate point to the starting point, and using the distance as the touch distance;
  • Step S14 determining whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, the process returns to step S12. When the touch distance reaches the threshold distance, the process proceeds to step S20.
  • an embodiment of the present invention adopts linear smoothing as a preset rule of smoothing processing, and when the point information of two points is collected, the first point and the first point to be collected are collected.
  • a point determined on the two points is used as a smoothed point, and the smoothed point is used as a starting point of the smoothing processing track; and the subsequently collected point is connected to the adjacent previous point.
  • the point is used as a smoothed point, and the smoothed point is used as an intermediate point of the smoothed processed track; preferably, the midpoint of two adjacent points is used as the smoothed point.
  • the smoothing process is performed in real time, and when the intermediate point is obtained, the distance between the intermediate point and the starting point is calculated, and the distance is used as the touch distance to determine whether the distance of the touch motion is reachable for gesture recognition.
  • the subsequent collected points are further smoothed to obtain an intermediate point of the smoothed processed track, and the touch distance is calculated until the touch distance reaches the threshold distance, indicating that the condition for performing gesture recognition is reached.
  • Gesture recognition is available.
  • FIG. 4 is a schematic diagram of a refinement process of the second embodiment of step S10 of FIG. Based on the first embodiment of step S10, the step S10 further includes:
  • Step S15 when the distance between the intermediate point and the starting point is less than the threshold distance, predicting the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point prediction;
  • Step S16 calculating a distance from the predicted point to the starting point, and using the distance as the touch distance;
  • Step S17 determining whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, the process returns to step S12. When the touch distance reaches the threshold distance, the process proceeds to step S20.
  • the smoothed points are obtained by smoothing the adjacent two points. For example, when the points P0 and P1 are collected, the starting point Q0 of the smoothed processing track is obtained, and when the point P2 is collected, The intermediate point Q1 is obtained, and so on, when the point P8 is collected, the intermediate point Q7 can be obtained, that is, the time of obtaining the smoothed point always lags behind the time when the same number of point information is collected, because one or two are collected. At the time of the point, the prediction accuracy of the touch motion track is low.
  • a point is taken as an predicted point Q8 on the extension line of the line connecting the intermediate point Q6 to the intermediate point Q7, and preferably, the distance from the predicted point Q8 to the intermediate point Q7 is the same as the distance from the intermediate point Q7 to the intermediate point Q6, and The distance from the predicted point Q8 to the starting point Q0 is calculated, and the distance is used as the touch distance to determine whether the distance of the touch motion reaches a distance at which the gesture recognition can be performed. When the predicted point-to-start distance is less than the threshold distance, the predicted point will be discarded.
  • the predicted point Q8 to the starting point Q0 is less than the threshold distance
  • the predicted point Q8 is discarded, and the point P9 is collected.
  • the intermediate point Q8 is obtained, and the touch point is continuously calculated and/or the next point on the smoothing processing track is predicted.
  • Step S20 When the touch distance reaches a threshold distance, perform gesture recognition according to the smoothed touch motion track, and output a gesture recognition result.
  • the threshold distance is a minimum distance required for gesture recognition.
  • gesture recognition is performed according to the smoothed touch motion track.
  • the starting point on the smooth processing track is The center of the circle, with a threshold distance MOV_LIMIT (for example, 80 or 90 points, etc.) as a radius, when the intermediate point or the predicted point exceeds the range of the circle, that is, the touch distance reaches a threshold distance, of course,
  • MOV_LIMIT for example, 80 or 90 points, etc.
  • the first point of the acquisition is the center of the circle.
  • the direction of the touch motion is identified as left shift, right shift, up shift or down shift, and the gesture recognition result is output.
  • FIG. 6 is a schematic diagram of a refinement process of an embodiment of step S20 in FIG.
  • Step S21 calculating an angle formed by a line connecting the starting point to the predicted point and a reference line, and using the angle as a linear motion angle;
  • Step S22 when the linear motion angle is within the first angular range, determining that the touch motion is an upward shift, and when the linear motion angle is within the second angular range, determining that the touch motion is a left shift And determining that the touch motion is a downward shift when the linear motion angle is within a third angular range, and determining that the touch motion is a right shift when the linear motion angle is within a fourth angular range.
  • the angle formed by the line connecting the starting point to the predicted point and the reference line is the angle of the linear motion during the touch operation, and the two-dimensional coordinates can be established on the touch panel and selected.
  • a certain direction is a reference line, that is, a line representing 0° in two-dimensional coordinates, and an angle formed by a line connecting the starting point to the predicted point and the reference line is taken as a linear motion angle; of course, it may also be based on the starting point and the predicted point.
  • the coordinate information can calculate the linear motion angle from the starting point to the predicted point; the direction of the touch motion is divided into left shift, right shift, up shift and down shift, and as can be seen from FIG. 5, the direction of the touch motion is arbitrary.
  • an embodiment of the present invention indicates 0° or 360° horizontally to the right, and 45° to 135° as the upper shift, 135° to 225° is divided into left shift, 225° to 315° is divided into downward shift, and 0° to 45° and 315° to 360° are divided into right shifts, so that the touch motion in each direction can be recognized as Move left, right, up or down.
  • the touch motion track is smoothed in real time, and when the touch distance reaches the threshold distance, the gesture recognition is performed, so that the smart TV synchronizes during the sliding of the touch panel by the user. Responsive to the touch action of the touch remote control, the response is rapid.
  • FIG. 7 is a schematic flowchart diagram of a second embodiment of a gesture recognition method based on a touch remote controller according to the present invention. Based on the first embodiment of the above-described touch remote control-based gesture recognition method, the method further includes:
  • Step S30 when the touch distance reaches the threshold distance, the number of points from the starting point to the predicted point is N, and the N+1th point collected on the touch motion track is taken as the first point of the next piece of the touch motion track.
  • the gesture recognition is performed according to the smoothed touch motion track, and the gesture recognition result is output, indicating that the gesture recognition is completed in one stage; in actual use, the touch motion formed by the user's one gesture motion
  • the length of the track is different, and it is likely that it has not ended when the threshold distance is reached.
  • the process of the user's finger continuing to move there may even be a turn or even a change of direction, in order to make the situation of the smart TV screen switch and the user's finger swipe. Consistently, it is necessary to continuously identify the touch motion; in an embodiment of the present invention, the number of points collected and the number of points obtained by the smoothing process are calculated.
  • the touch distance When the touch distance reaches the threshold distance, the number of points from the starting point to the predicted point is N.
  • the N+1th point acquired on the touch motion track is used as the first point of the next touch motion track, and the touch motion track is smoothed, the gesture recognition, and the gesture recognition result are output.
  • the distance between the intermediate point obtained after the smoothing process and the starting point reaches the threshold distance, and there is no predicted point, the number of the starting point to the intermediate point is calculated as N, and the N+1th obtained on the touch motion track is obtained.
  • the point is the first point of the next touch motion track.
  • the embodiment continuously smoothes the touch motion track, recognizes the gesture, and outputs the gesture recognition result, determines the gesture motion of the entire touch motion, and causes the smart TV to perform screen switching following the user's finger swipe.
  • the touch remote controller transmits the point information on the collected touch motion track to the set top box of the smart TV in real time, and the touch remote controller and the set top box transmit information through Bluetooth. Since the Bluetooth protocol specifies that information is sent every 7 ms, the touch is set.
  • the control remote controller collects the point information on the touch motion track every 7ms. Since the point information is transmitted from the touch remote controller to the set top box, it takes about 1 to 2ms, and the touch remote controller needs to wait for the previous point information transmission to be completed.
  • the point information can be collected and transmitted again, so the point information is collected once every 8 to 12 ms. Each time the point information is collected, there are touch points on the touch panel, indicating that the touch motion continues, and vice versa indicates that the touch motion ends.
  • the touch motion track is smoothed in the set top box, and the midpoint of the collected point is used as the smoothed point, and each touch point on the touch panel may be coordinate-labeled in advance, and the smoothed point may also be touched by the touch panel.
  • the coordinates above indicate that Table 1 below gives information on the acquired points and the smoothed points (including predicted points).
  • Table 1 Information on collected points and smoothed points (including predicted points)
  • the time in Table 1 is the system time when the point is collected on the touch panel.
  • the value of the threshold distance MOV_LIMIT is set to 90.
  • the distance from the intermediate point Q1 to the starting point Q0 is 11 ⁇ 90, taking the predicted point Q2 from the starting point Q0 to the extension point of the intermediate point Q1, the distance from the predicted point Q2 to the intermediate point Q1 is the same as the distance from the intermediate point Q1 to the starting point Q0, and calculated from the predicted point Q2 to the starting point
  • the distance of Q0 is 22 ⁇ 90.
  • points P2, P3, P4, and P5 are continuously collected, and intermediate points Q2, Q3, and Q4 are obtained, and predicted points Q3, Q4, and Q5, due to intermediate points Q2, Q3,
  • the distance between Q4 and predicted points Q3, Q4 and Q5 to the starting point Q0 is less than 90.
  • the intermediate point Q5 is obtained, and the distance from the intermediate point Q5 to the starting point Q0 is still less than 90, so that gesture recognition is not possible yet.
  • the coordinates of the point Q6 obtained from the intermediate points Q4 and Q5 are (138, 235), and the distance from the predicted point Q6 to the starting point Q0 is 113. > 90, the condition for performing gesture recognition is reached, and the linear motion angle from the starting point Q0 to the predicted point Q6 is calculated.
  • the distance 113 from the predicted point Q6 to the starting point Q0 is the oblique side
  • the predicted point Q6 is The distance 3 of the starting point Q0 along the Y axis is the opposite side of the right triangle, and the angle of ⁇ is calculated to be 1.5°, that is, the direction of the touch motion from P0 to P6 is right shift.
  • P7 is the first point of the next touch motion trajectory. The above process is repeated to obtain the starting point Q7, the intermediate point Q8 and the predicted point Q9 of the smoothing trajectory, due to the intermediate point Q8 and the predicted point Q9.
  • the distance of Q7 is less than 90, so gesture recognition is not yet possible.
  • the intermediate point Q9 is obtained, and the distance from the intermediate point Q9 to the starting point Q7 is calculated. From the above table, the distance from the intermediate point Q9 to the starting point Q7 is 94. > 90, the condition for performing gesture recognition is reached, and the linear motion angle of the calculation starting point Q7 to the predicted point Q9 is 14.9°, that is, the direction of the touch motion from P7 to P10 is right shift, and P10 is the first touch motion track of the next segment. Repeat the above process.
  • the invention further provides a gesture recognition device based on a touch remote controller.
  • FIG. 8 is a schematic diagram of functional modules of a first embodiment of a gesture recognition apparatus based on a touch remote controller according to the present invention.
  • the touch remote controller-based gesture recognition apparatus includes: a calculation module 10 and an identification module 20.
  • the calculating module 10 is configured to perform smoothing on the touch motion track according to the point information on the touch motion track collected in real time during the touch operation, and calculate the touch distance according to the smoothed touch motion track to determine the Whether the touch distance reaches a threshold distance;
  • the touch remote controller includes a touch panel, and the touch panel may also be a touch screen, and may be a touch panel capable of detecting touch points, such as a resistive touch panel or a capacitive inductive touch panel.
  • the touch remote controller detects the number of touched points, and acquires the sliding of the user's finger according to the sequence of the detected touched points. Touch the motion track. Since the detected touched point may have interference or hopping, the obtained touch motion trajectory may be very unsmooth, and the speed and accuracy of the gesture recognition are greatly reduced. Therefore, an embodiment of the present invention smoothes the touch motion trajectory. To improve the speed and accuracy of gesture recognition.
  • FIG. 9 is a schematic diagram of a refinement function module of the first embodiment of the computing module 10 of FIG.
  • the calculation module 10 includes a smoothing unit 11, a calculating unit 12, and a comparing unit 13.
  • the smoothing unit 11 is configured to determine a point from the line connecting the first point and the second point as a smoothed point according to a preset rule when the point information of the second point is collected, and Using the smoothed point as a starting point of the smoothing track;
  • the calculating unit 12 is configured to calculate a distance from the intermediate point to the starting point, and use the distance as the touch distance;
  • the comparing unit 13 is configured to determine whether the touch distance reaches a threshold distance.
  • an embodiment of the present invention adopts linear smoothing as a preset rule of smoothing processing, and when the point information of two points is collected, the first point and the first point to be collected are collected.
  • a point determined on the two points is used as a smoothed point, and the smoothed point is used as a starting point of the smoothing processing track; and the subsequently collected point is connected to the adjacent previous point.
  • the point is used as a smoothed point, and the smoothed point is used as an intermediate point of the smoothed processed track; preferably, the midpoint of two adjacent points is used as the smoothed point.
  • the smoothing process is performed in real time, and when the intermediate point is obtained, the distance between the intermediate point and the starting point is calculated, and the distance is used as the touch distance to determine whether the distance of the touch motion is reachable for gesture recognition.
  • the subsequent collected points are further smoothed to obtain an intermediate point of the smoothed processed track, and the touch distance is calculated until the touch distance reaches the threshold distance, indicating that the condition for performing gesture recognition is reached.
  • Gesture recognition is available.
  • FIG. 10 is a schematic diagram of a refinement function module of the second embodiment of the computing module 10 of FIG. Based on the first embodiment of the computing module 10 described above, the computing module 10 further includes: a prediction unit 14.
  • the prediction unit 14 is configured to: when the distance between the intermediate point and the starting point is less than the threshold distance, predict the smoothing of the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point;
  • the calculating unit 12 is further configured to calculate a distance from the predicted point to the starting point, and use the distance as the touch distance;
  • the comparing unit 13 is further configured to determine whether the touch distance reaches a threshold distance.
  • the smoothed points are obtained by smoothing the adjacent two points. For example, when the points P0 and P1 are collected, the starting point Q0 of the smoothed processing track is obtained, and when the point P2 is collected, The intermediate point Q1 is obtained, and so on, when the point P8 is collected, the intermediate point Q7 can be obtained, that is, the time of obtaining the smoothed point always lags behind the time when the same number of point information is collected, because one or two are collected. At the time of the point, the prediction accuracy of the touch motion track is low.
  • a point is taken as an predicted point Q8 on the extension line of the line connecting the intermediate point Q6 to the intermediate point Q7, and preferably, the distance from the predicted point Q8 to the intermediate point Q7 is the same as the distance from the intermediate point Q7 to the intermediate point Q6, and The distance from the predicted point Q8 to the starting point Q0 is calculated, and the distance is used as the touch distance to determine whether the distance of the touch motion reaches a distance at which the gesture recognition can be performed. When the predicted point-to-start distance is less than the threshold distance, the predicted point will be discarded.
  • the predicted point Q8 to the starting point Q0 is less than the threshold distance
  • the predicted point Q8 is discarded, and the point P9 is collected.
  • the intermediate point Q8 is obtained, and the touch point is continuously calculated and/or the next point on the smoothing processing track is predicted.
  • the identification module 20 is configured to perform gesture recognition according to the smoothed touch motion track when the touch distance reaches a threshold distance, and output a gesture recognition result.
  • the threshold distance is a minimum distance required for gesture recognition.
  • gesture recognition is performed according to the smoothed touch motion track.
  • the starting point on the smooth processing track is The center of the circle, with a threshold distance MOV_LIMIT (for example, 80 or 90 points, etc.) as a radius, when the intermediate point or the predicted point exceeds the range of the circle, that is, the touch distance reaches a threshold distance, of course,
  • MOV_LIMIT for example, 80 or 90 points, etc.
  • the first point of the acquisition is the center of the circle.
  • the direction of the touch motion is identified as left shift, right shift, up shift or down shift, and the gesture recognition result is output.
  • FIG. 11 is a schematic diagram of a refinement function module of an embodiment of the identification module 20 of FIG.
  • the identification module 20 includes an angle unit 21 and a determination unit 22.
  • the angle unit 21 is configured to calculate an angle formed by a line connecting the starting point to the predicted point and a reference line, and use the angle as a linear motion angle;
  • the determining unit 22 is configured to: when the linear motion angle is within a first angular range, determine that the touch motion is upward, and when the linear motion angle is within a second angular range, determine the The touch motion is a left shift, and when the linear motion angle is within a third angle range, determining that the touch motion is a downward shift, and when the linear motion angle is within a fourth angular range, determining the touch motion Move to the right.
  • the touch motion track is smoothed in real time, and when the touch distance reaches the threshold distance, the gesture recognition is performed, and the gesture recognition result is output, so that the user slides the touch panel.
  • the smart TV immediately responds to the touch action of the touch remote controller and responds quickly.
  • FIG. 12 is a schematic diagram of functional modules of a second embodiment of a gesture recognition device based on a touch remote controller according to the present invention.
  • the gesture remote control based gesture recognition device further includes a starting point module 30.
  • the starting point module 30 is configured to calculate, when the touch distance reaches a threshold distance, the number of points from the starting point to the predicted point is N, and the N+1 points collected on the touch motion track are used as the one point.
  • the embodiment continuously smoothes the touch motion track, recognizes the gesture, and outputs the gesture recognition result, determines the gesture motion of the entire touch motion, and causes the smart TV to perform screen switching following the user's finger swipe.

Abstract

A gesture recognition method and apparatus based on a touch control remote controller. The method comprises the following steps: during a touch operation process, performing smoothing processing on a touch motion track according to point location information, collected in real time, on the touch motion track, and calculating a touch distance according to the touch motion track after the smoothing processing so as to determine whether the touch distance reaches a threshold distance (S10); and when the touch distance reaches the threshold distance, performing gesture recognition according to the touch motion track after the smoothing processing, and outputting a gesture recognition result (S20). Gesture recognition is performed during a touch motion process, so that during the process of a user sliding a touch pad, a smart television synchronously responds to a touch action of a touch control remote controller, and the reaction is rapid.

Description

基于触控遥控器的手势识别方法及装置  Gesture recognition method and device based on touch remote controller
技术领域Technical field
本发明涉及遥控技术领域,尤其涉及一种基于触控遥控器的手势识别方法及装置。The present invention relates to the field of remote control technologies, and in particular, to a gesture recognition method and apparatus based on a touch remote controller.
背景技术Background technique
随着科学技术的不断发展,电子技术也得到了飞速的发展,电子产品的种类也越来越多,人们也享受到了科技发展带来的各种便利。随着触控技术的普及与应用,越来越多的用户在使用触控设备,使得人机交互更人性化和智能化。比如,控制智能电视的遥控器,已经逐步由触控式遥控器替代传统的按键式遥控器。With the continuous development of science and technology, electronic technology has also developed rapidly, and there are more and more types of electronic products. People also enjoy the convenience brought by the development of science and technology. With the popularization and application of touch technology, more and more users are using touch devices, making human-computer interaction more human and intelligent. For example, the remote control that controls the smart TV has gradually replaced the traditional push button remote control with a touch remote controller.
但是,现有的触控式遥控器为了提升触控手势识别的准确率,往往是等用户手指抬起结束滑动动作时,才进行软件算法处理,再将识别的手势动作表示的控制信号发送给智能电视。However, in order to improve the accuracy of the touch gesture recognition, the existing touch-type remote controller often performs software algorithm processing when the user's finger raises the end sliding motion, and then sends a control signal indicating the recognized gesture motion to the control signal. Smart TV.
由于触控遥控器传输消耗时间一般20毫秒,手指操作时间从180毫秒到800毫秒不等,故从用户滑动触摸板到智能电视界面响应操作命令,耗时至少在200毫秒以上,如果手指操控比较慢,则响应时间会更长。用户必然感觉智能电视响应遥控器的触摸动作很迟钝,严重影响用户体验。Since the touch remote control transmission time is generally 20 milliseconds, and the finger operation time varies from 180 milliseconds to 800 milliseconds, it takes at least 200 milliseconds from the user sliding the touchpad to the smart TV interface to respond to the operation command, if the finger manipulation is compared. Slow, the response time will be longer. The user must feel that the touch action of the smart TV in response to the remote control is slow, which seriously affects the user experience.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种基于触控遥控器的手势识别方法及装置,旨在解决现有触控遥控器需等用户手指抬起结束滑动动作时,才进行手势动作识别,使智能电视响应遥控器的触摸动作很迟钝的问题。The main purpose of the present invention is to provide a gesture recognition method and device based on a touch remote controller, which aims to solve the problem that the existing touch remote controller needs to wait for the user's finger to lift and end the sliding motion, and then perform the gesture motion recognition to make the smart television Responding to the problem that the remote control's touch action is slow.
为实现上述目的,本发明提供的一种基于触控遥控器的手势识别方法,包括以下步骤:To achieve the above objective, the present invention provides a gesture recognition method based on a touch remote controller, which includes the following steps:
步骤A、触摸操作过程中,根据实时采集的触摸运动轨迹上的点位信息对触摸运动轨迹进行平滑处理,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断所述触摸距离是否达到阈值距离;Step A: During the touch operation, the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine whether the touch distance reaches the threshold. distance;
步骤B、当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果。Step B: When the touch distance reaches a threshold distance, perform gesture recognition according to the smoothed touch motion track, and output a gesture recognition result.
优选地,所述平滑处理包括线性平滑、函数拟合平滑及指数平滑。Preferably, the smoothing process includes linear smoothing, function fitting smoothing, and exponential smoothing.
优选地,所述步骤A包括:Preferably, the step A comprises:
步骤A1、在采集到第二个点的点位信息时,按照预设规则从第一个点和第二个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的起点;Step A1: When collecting the point information of the second point, determine a point from the line connecting the first point and the second point as a smoothed point according to a preset rule, and smooth the processed The point as the starting point for smoothing the trajectory;
步骤A2、按照预设规则从后续采集的点与相邻的前一个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的中间点;Step A2: Determine a point from the line between the subsequently collected point and the adjacent previous point as a smoothed point according to a preset rule, and use the smoothed point as an intermediate point of the smoothed processing track;
步骤A3、计算中间点至起点的距离,将该距离作为触摸距离;Step A3: Calculate the distance from the intermediate point to the starting point, and use the distance as the touch distance;
步骤A4、判断触摸距离是否达到阈值距离,当触摸距离未达到阈值距离时,返回步骤A2,当触摸距离达到阈值距离时,转入步骤B。In step A4, it is determined whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, the process returns to step A2. When the touch distance reaches the threshold distance, the process proceeds to step B.
优选地,所述步骤A3之后,还包括:Preferably, after the step A3, the method further includes:
步骤A5、当中间点与起点的距离小于阈值距离时,根据该中间点与相邻的前一个平滑处理后的点预测平滑处理轨迹上的下一个点;Step A5: When the distance between the intermediate point and the starting point is less than the threshold distance, predict the smoothing of the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point;
步骤A 6、计算预测的点至起点的距离,将该距离作为触摸距离;Step A6. Calculate the distance from the predicted point to the starting point, and use the distance as the touch distance;
步骤A 7、判断触摸距离是否达到阈值距离,当触摸距离未达到阈值距离时,返回步骤A2,当触摸距离达到阈值距离时,转入步骤B。Step A 7. Determine whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, return to step A2. When the touch distance reaches the threshold distance, proceed to step B.
优选地,所述步骤B包括:Preferably, the step B comprises:
步骤B1、计算所述起点到预测的点的连线与基准线形成的角度,将该角度作为直线运动角度;Step B1, calculating an angle formed by the line connecting the starting point to the predicted point and the reference line, and using the angle as a linear motion angle;
步骤B2、当所述直线运动角度处于第一角度范围内时,则判断所述触摸运动为上移,当所述直线运动角度处于第二角度范围内时,则判断所述触摸运动为左移,当所述直线运动角度处于第三角度范围内时,则判断所述触摸运动为下移,当所述直线运动角度处于第四角度范围内时,则判断所述触摸运动为右移。Step B2, when the linear motion angle is within the first angular range, determining that the touch motion is an upward shift, and when the linear motion angle is within a second angular range, determining that the touch motion is a left shift And determining that the touch motion is a downward shift when the linear motion angle is within a third angular range, and determining that the touch motion is a right shift when the linear motion angle is within a fourth angular range.
优选地,所述方法还包括:Preferably, the method further includes:
以平滑处理轨迹上的起点为圆心,以阈值距离为半径作圆,当中间点或预测的点超出了该圆的范围时,表示所述触摸距离达到阈值距离。The starting point on the smoothing processing track is the center of the circle, and the threshold distance is used as the radius. When the intermediate point or the predicted point exceeds the range of the circle, it indicates that the touch distance reaches the threshold distance.
优选地,所述方法还包括:Preferably, the method further includes:
根据超出该圆的范围的第一个点与圆心的连线在圆中的位置,识别该触摸运动的方向是左移、右移、上移或下移,并输出手势识别结果。According to the position of the line connecting the first point and the center of the circle beyond the circle in the circle, the direction of the touch motion is identified as left shift, right shift, up shift or down shift, and the gesture recognition result is output.
优选地,所述方法还包括:Preferably, the method further includes:
步骤C、当触摸距离达到阈值距离时,计算起点至预测的点的个数为N,将在触摸运动轨迹上采集的第N+1个点作为下一段触摸运动轨迹的第一个点。Step C: When the touch distance reaches the threshold distance, the number of points from the starting point to the predicted point is N, and the N+1th point collected on the touch motion track is taken as the first point of the next piece of the touch motion track.
此外,为实现上述目的,本发明还提供一种基于触控遥控器的手势识别装置,包括:In addition, in order to achieve the above object, the present invention further provides a gesture recognition device based on a touch remote controller, including:
计算模块,用于触摸操作过程中,根据实时采集的触摸运动轨迹上的点位信息对触摸运动轨迹进行平滑处理,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断所述触摸距离是否达到阈值距离;The calculation module is configured to smooth the touch motion track according to the point information on the touch motion track collected in real time during the touch operation, and calculate the touch distance according to the smoothed touch motion track to determine whether the touch distance is Reaching the threshold distance;
识别模块,用于当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果。The identification module is configured to perform gesture recognition according to the smoothed touch motion track when the touch distance reaches a threshold distance, and output a gesture recognition result.
优选地,所述平滑处理包括线性平滑、函数拟合平滑及指数平滑。Preferably, the smoothing process includes linear smoothing, function fitting smoothing, and exponential smoothing.
优选地,所述计算模块包括:Preferably, the calculation module comprises:
平滑单元,用于在采集到第二个点的点位信息时,按照预设规则从第一个点和第二个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的起点;及a smoothing unit, configured to determine a point from the line connecting the first point and the second point as a smoothed point according to a preset rule when collecting the point information of the second point, and smooth the point The processed point serves as the starting point for smoothing the trajectory; and
按照预设规则从后续采集的点与相邻的前一个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的中间点;Determining a point from the subsequently acquired point and the adjacent previous point as a smoothed point according to a preset rule, and using the smoothed point as an intermediate point of the smoothed processing track;
计算单元,用于计算中间点至起点的距离,将该距离作为触摸距离;a calculating unit, configured to calculate a distance from the intermediate point to the starting point, and use the distance as the touch distance;
比较单元,用于判断触摸距离是否达到阈值距离。The comparing unit is configured to determine whether the touch distance reaches a threshold distance.
优选地,所述计算模块还包括预测单元;Preferably, the calculation module further includes a prediction unit;
所述预测单元,用于当中间点与起点的距离小于阈值距离时,根据该中间点与相邻的前一个平滑处理后的点预测平滑处理轨迹上的下一个点;The prediction unit is configured to: when the distance between the intermediate point and the starting point is less than the threshold distance, predict the smoothing of the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point;
所述计算单元,还用于计算预测的点至起点的距离,将该距离作为触摸距离;The calculating unit is further configured to calculate a distance from the predicted point to the starting point, and use the distance as the touch distance;
所述比较单元,还用于判断触摸距离是否达到阈值距离。The comparing unit is further configured to determine whether the touch distance reaches a threshold distance.
优选地,所述识别模块包括:Preferably, the identification module comprises:
角度单元,用于计算所述起点到预测的点的连线与基准线形成的角度,将该角度作为直线运动角度;An angle unit, configured to calculate an angle formed by a line connecting the starting point to the predicted point and a reference line, and using the angle as a linear motion angle;
判断单元,用于当所述直线运动角度处于第一角度范围内时,则判断所述触摸运动为上移,当所述直线运动角度处于第二角度范围内时,则判断所述触摸运动为左移,当所述直线运动角度处于第三角度范围内时,则判断所述触摸运动为下移,当所述直线运动角度处于第四角度范围内时,则判断所述触摸运动为右移。a determining unit, configured to: when the linear motion angle is within a first angular range, determine that the touch motion is an upward shift, and when the linear motion angle is within a second angular range, determine that the touch motion is Moving to the left, when the linear motion angle is within the third angular range, determining that the touch motion is a downward shift, and when the linear motion angle is within the fourth angular range, determining that the touch motion is a right shift .
优选地,所述识别模块,还用于以平滑处理轨迹上的起点为圆心,以阈值距离为半径作圆,当中间点或预测的点超出了该圆的范围时,表示所述触摸距离达到阈值距离。Preferably, the identification module is further configured to use a starting point on the smoothing processing track as a center, and a threshold distance as a radius as a circle. When the intermediate point or the predicted point exceeds a range of the circle, the touch distance is reached. Threshold distance.
优选地,所述识别模块,还用于根据超出该圆的范围的第一个点与圆心的连线在圆中的位置,识别该触摸运动的方向是左移、右移、上移或下移,并输出手势识别结果。Preferably, the identification module is further configured to identify, according to a position of the line connecting the first point and the center of the circle beyond the circle, the direction of the touch motion is left shift, right shift, up shift or down Move and output the gesture recognition result.
优选地,所述基于触控遥控器的手势识别装置还包括:Preferably, the touch remote controller-based gesture recognition device further includes:
起点模块,用于当触摸距离达到阈值距离时,计算起点至预测的点的个数为N,将在触摸运动轨迹上采集的第N+1个点作为下一段触摸运动轨迹的第一个点。a starting point module, when the touch distance reaches a threshold distance, the number of points from the starting point to the predicted point is N, and the N+1th point collected on the touch motion track is taken as the first point of the next piece of the touch motion track .
本发明在触摸操作过程中,根据实时采集的触摸运动轨迹上的点位信息对触摸运动轨迹进行平滑处理,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断所述触摸距离是否达到阈值距离;当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果。触摸运动的过程中,当平滑处理后的触摸运动轨迹达到阈值距离时,即进行手势识别,从而在用户滑动触摸板的过程中,智能电视同步响应触控遥控器的触摸动作,反应迅速。In the touch operation process, the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine whether the touch distance reaches the threshold. a distance; when the touch distance reaches a threshold distance, gesture recognition is performed according to the smoothed touch motion track, and the gesture recognition result is output. In the process of the touch motion, when the smoothed touch motion track reaches the threshold distance, the gesture recognition is performed, so that the smart TV synchronizes the touch action of the touch remote controller in the process of sliding the touch panel, and the response is rapid.
附图说明DRAWINGS
图1为本发明基于触控遥控器的手势识别方法的第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a gesture recognition method based on a touch remote controller according to the present invention;
图2为图1中步骤S10第一实施例的细化流程示意图;2 is a schematic flow chart of the refinement of the first embodiment of step S10 of FIG. 1;
图3为本发明一实施例对触摸运动轨迹平滑处理的示意图;FIG. 3 is a schematic diagram of a smoothing process of a touch motion track according to an embodiment of the present invention; FIG.
图4为图1中步骤S10第二实施例的细化流程示意图;4 is a schematic flow chart of the second embodiment of step S10 of FIG. 1;
图5为本发明一实施例判断触摸距离是否达到阈值距离的示意图;FIG. 5 is a schematic diagram of determining whether a touch distance reaches a threshold distance according to an embodiment of the present invention; FIG.
图6为图1中步骤S20一实施例的细化流程示意图;6 is a schematic diagram showing the refinement process of an embodiment of step S20 in FIG. 1;
图7为本发明基于触控遥控器的手势识别方法的第二实施例的流程示意图;7 is a schematic flow chart of a second embodiment of a gesture recognition method based on a touch remote controller according to the present invention;
图8为本发明基于触控遥控器的手势识别装置的第一实施例的功能模块示意图;8 is a schematic diagram of functional modules of a first embodiment of a gesture recognition device based on a touch remote controller according to the present invention;
图9为图8中计算模块第一实施例的细化功能模块示意图;9 is a schematic diagram of a refinement function module of the first embodiment of the computing module of FIG. 8;
图10为图8中计算模块第二实施例的细化功能模块示意图;10 is a schematic diagram of a refinement function module of the second embodiment of the computing module of FIG. 8;
图11为图8中识别模块一实施例的细化功能模块示意图;11 is a schematic diagram of a refinement function module of an embodiment of the identification module of FIG. 8;
图12为本发明基于触控遥控器的手势识别装置的第二实施例的功能模块示意图。FIG. 12 is a schematic diagram of functional modules of a second embodiment of a gesture recognition device based on a touch remote controller of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的主要解决方案是:触摸操作过程中,根据实时采集的触摸运动轨迹上的点位信息对触摸运动轨迹进行平滑处理,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断所述触摸距离是否达到阈值距离;当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果。触摸运动的过程中,当平滑处理后的触摸运动轨迹达到阈值距离时,即进行手势识别,从而在用户滑动触摸板的过程中,智能电视同步响应触控遥控器的触摸动作,反应迅速。The main solution of the embodiment of the present invention is: during the touch operation, the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine Whether the touch distance reaches a threshold distance; when the touch distance reaches a threshold distance, the gesture recognition is performed according to the smoothed touch motion track, and the gesture recognition result is output. In the process of the touch motion, when the smoothed touch motion track reaches the threshold distance, the gesture recognition is performed, so that the smart TV synchronizes the touch action of the touch remote controller in the process of sliding the touch panel, and the response is rapid.
由于现有触控遥控器需等用户手指抬起结束滑动动作时,才进行手势动作识别,使智能电视响应触控遥控器的触摸动作很迟钝。Since the existing touch remote controller needs to wait for the user's finger to lift and end the sliding motion, the gesture motion recognition is performed, so that the touch action of the smart television in response to the touch remote controller is slow.
基于上述问题,本发明提供一种基于触控遥控器的手势识别方法。Based on the above problems, the present invention provides a gesture recognition method based on a touch remote controller.
参照图1,图1为本发明基于触控遥控器的手势识别方法的第一实施例的流程示意图。1 is a schematic flow chart of a first embodiment of a gesture recognition method based on a touch remote controller according to the present invention.
在一实施例中,所述基于触控遥控器的手势识别方法包括:In an embodiment, the touch remote controller-based gesture recognition method includes:
步骤S10,触摸操作过程中,根据实时采集的触摸运动轨迹上的点位信息对触摸运动轨迹进行平滑处理,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断所述触摸距离是否达到阈值距离;Step S10: During the touch operation, the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine whether the touch distance reaches the threshold. distance;
所述触控遥控器包括触摸板,所述触摸板还可以是触摸屏,可以为电阻式触摸板或电容感应式触摸板等各种形式的能够检测触摸点的触摸板。在触控遥控器处于正常待机状态时,每当用户用手指触碰触摸板时,触控遥控器对触摸点的数量进行检测,并根据检测到的触摸点的先后顺序获取用户手指滑动形成的触摸运动轨迹。由于检测到的触摸点可能存在干扰或跳点,因而得到的触摸运动轨迹可能会非常不平滑,大大降低手势识别的速度及准确率,因此,本发明一实施例对触摸运动轨迹进行平滑处理,以提高手势识别的速度及准确率。平滑处理的方式有很多,例如,线性平滑、函数拟合平滑及指数平滑等,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断该触摸运动的距离是否达到可进行手势识别的距离。The touch remote controller includes a touch panel, and the touch panel may also be a touch screen, and may be a touch panel capable of detecting touch points, such as a resistive touch panel or a capacitive inductive touch panel. When the touch remote controller is in a normal standby state, whenever the user touches the touchpad with a finger, the touch remote controller detects the number of touched points, and acquires the sliding of the user's finger according to the sequence of the detected touched points. Touch the motion track. Since the detected touched point may have interference or hopping, the obtained touch motion trajectory may be very unsmooth, and the speed and accuracy of the gesture recognition are greatly reduced. Therefore, an embodiment of the present invention smoothes the touch motion trajectory. To improve the speed and accuracy of gesture recognition. There are many ways to smooth the processing, for example, linear smoothing, function fitting smoothing, exponential smoothing, etc., and calculating the touch distance according to the smoothed touch motion trajectory to determine whether the distance of the touch motion reaches the distance at which gesture recognition can be performed.
参照图2,图2为图1中步骤S10第一实施例的细化流程示意图。Referring to FIG. 2, FIG. 2 is a schematic diagram of a refinement process of the first embodiment of step S10 of FIG.
步骤S11,在采集到第二个点的点位信息时,按照预设规则从第一个点和第二个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的起点;Step S11, when collecting the point information of the second point, determining a point from the line connecting the first point and the second point as a smoothed point according to a preset rule, and smoothing the point The point as the starting point for smoothing the trajectory;
步骤S12,按照预设规则从后续采集的点与相邻的前一个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的中间点;Step S12, determining, according to a preset rule, a point from the line of the subsequently collected point and the adjacent previous point as the smoothed point, and using the smoothed point as the intermediate point of the smoothing processing track;
步骤S13,计算中间点至起点的距离,将该距离作为触摸距离;Step S13, calculating a distance from the intermediate point to the starting point, and using the distance as the touch distance;
步骤S14、判断触摸距离是否达到阈值距离,当触摸距离未达到阈值距离时,返回步骤S12,当触摸距离达到阈值距离时,转入步骤S20。Step S14: determining whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, the process returns to step S12. When the touch distance reaches the threshold distance, the process proceeds to step S20.
如图3所示,为了提高平滑处理速度,本发明一实施例采用线性平滑作为平滑处理的预设规则,且在采集到两个点的点位信息时,即将采集的第一个点和第二个点连线上确定的一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的起点;将后续采集的点与相邻的前一个点连线上确定的一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的中间点;优选地,以相邻两个点的中点作为平滑处理后的点。在采集点位信息的过程中,实时进行平滑处理,在得到中间点时,即计算该中间点与起点的距离,将该距离作为触摸距离,以判断该触摸运动的距离是否达到可进行手势识别的距离;当触摸距离未达到阈值距离时,继续对后续采集的点进行平滑处理得到平滑处理轨迹的中间点,并计算触摸距离,直到触摸距离达到阈值距离时,表示达到进行手势识别的条件,即可进行手势识别。As shown in FIG. 3, in order to improve the smoothing processing speed, an embodiment of the present invention adopts linear smoothing as a preset rule of smoothing processing, and when the point information of two points is collected, the first point and the first point to be collected are collected. A point determined on the two points is used as a smoothed point, and the smoothed point is used as a starting point of the smoothing processing track; and the subsequently collected point is connected to the adjacent previous point. The point is used as a smoothed point, and the smoothed point is used as an intermediate point of the smoothed processed track; preferably, the midpoint of two adjacent points is used as the smoothed point. In the process of collecting the point information, the smoothing process is performed in real time, and when the intermediate point is obtained, the distance between the intermediate point and the starting point is calculated, and the distance is used as the touch distance to determine whether the distance of the touch motion is reachable for gesture recognition. When the touch distance does not reach the threshold distance, the subsequent collected points are further smoothed to obtain an intermediate point of the smoothed processed track, and the touch distance is calculated until the touch distance reaches the threshold distance, indicating that the condition for performing gesture recognition is reached. Gesture recognition is available.
参照图4,图4为图1中步骤S10第二实施例的细化流程示意图。基于上述步骤S10的第一实施例,所述步骤S10还包括:Referring to FIG. 4, FIG. 4 is a schematic diagram of a refinement process of the second embodiment of step S10 of FIG. Based on the first embodiment of step S10, the step S10 further includes:
步骤S15,当中间点与起点的距离小于阈值距离时,根据该中间点与相邻的前一个平滑处理后的点预测平滑处理轨迹上的下一个点;Step S15, when the distance between the intermediate point and the starting point is less than the threshold distance, predicting the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point prediction;
步骤S16,计算预测的点至起点的距离,将该距离作为触摸距离;Step S16, calculating a distance from the predicted point to the starting point, and using the distance as the touch distance;
步骤S17、判断触摸距离是否达到阈值距离,当触摸距离未达到阈值距离时,返回步骤S12,当触摸距离达到阈值距离时,转入步骤S20。Step S17: determining whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, the process returns to step S12. When the touch distance reaches the threshold distance, the process proceeds to step S20.
如前所述,平滑处理后的点都是对相邻两个点进行平滑处理后得到的,例如,采集到点P0和P1时,得到平滑处理轨迹的起点Q0,采集到点P2时,才能得到中间点Q1,依此类推,采集到点P8时,才能得到中间点Q7,即得到平滑处理后的点的时间总是滞后于采集到相同数量点位信息的时间,由于在采集到一两个点时,对触摸运动轨迹的预测准确性较低,因此,需要根据实际采集到的点确定平滑处理后的触摸运动轨迹以进行手势识别,而当至少得到两个平滑处理后的点时,可根据最新得到的中间点与相邻的前一个平滑处理后的点预测平滑处理轨迹上的下一个点,例如,在最新得到的中间点与相邻的前一个平滑处理后的点连线的延长线上取预测的点,在本发明一实施例中,如图3所示,在采集到点P8时,得到中间点Q7,由于中间点Q7至起点Q0的距离小于阈值距离,则在中间点Q6至中间点Q7的连线的延长线上取一个点作为预测的点Q8,优选地,预测的点Q8至中间点Q7的距离与中间点Q7至中间点Q6的距离相同,并计算预测的点Q8至起点Q0的距离,将该距离作为触摸距离,以判断该触摸运动的距离是否达到可进行手势识别的距离。当预测的点至起点的距离小于阈值距离时,该预测的点将被舍弃,例如,预测的点Q8至起点Q0的距离小于阈值距离时,该预测的点Q8被舍弃,在采集到点P9时,得到中间点Q8,并继续计算触摸距离和/或预测平滑处理轨迹上的下一个点。As described above, the smoothed points are obtained by smoothing the adjacent two points. For example, when the points P0 and P1 are collected, the starting point Q0 of the smoothed processing track is obtained, and when the point P2 is collected, The intermediate point Q1 is obtained, and so on, when the point P8 is collected, the intermediate point Q7 can be obtained, that is, the time of obtaining the smoothed point always lags behind the time when the same number of point information is collected, because one or two are collected. At the time of the point, the prediction accuracy of the touch motion track is low. Therefore, it is necessary to determine the smoothed touch motion track according to the actually collected points for gesture recognition, and when at least two smoothed points are obtained, The next point on the trajectory can be smoothed according to the newly obtained intermediate point and the adjacent previous smoothed point, for example, the newly obtained intermediate point is connected with the adjacent previous smoothed point. In an embodiment of the present invention, as shown in FIG. 3, when the point P8 is collected, the intermediate point Q7 is obtained, and since the distance from the intermediate point Q7 to the starting point Q0 is less than the threshold distance, A point is taken as an predicted point Q8 on the extension line of the line connecting the intermediate point Q6 to the intermediate point Q7, and preferably, the distance from the predicted point Q8 to the intermediate point Q7 is the same as the distance from the intermediate point Q7 to the intermediate point Q6, and The distance from the predicted point Q8 to the starting point Q0 is calculated, and the distance is used as the touch distance to determine whether the distance of the touch motion reaches a distance at which the gesture recognition can be performed. When the predicted point-to-start distance is less than the threshold distance, the predicted point will be discarded. For example, when the predicted point Q8 to the starting point Q0 is less than the threshold distance, the predicted point Q8 is discarded, and the point P9 is collected. At this time, the intermediate point Q8 is obtained, and the touch point is continuously calculated and/or the next point on the smoothing processing track is predicted.
步骤S20,当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果。Step S20: When the touch distance reaches a threshold distance, perform gesture recognition according to the smoothed touch motion track, and output a gesture recognition result.
所述阈值距离即进行手势识别所需的最小距离,当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,如图5所示,以平滑处理轨迹上的起点为圆心,以阈值距离MOV_LIMIT(例如,为80或90个点等)为半径作圆,当中间点或预测的点超出了该圆的范围,即表示所述触摸距离达到阈值距离,当然,也可以采集的第一个点为圆心。根据超出该圆的范围的第一个点与圆心的连线在圆中的位置,识别该触摸运动的方向是左移、右移、上移或下移,并输出手势识别结果。The threshold distance is a minimum distance required for gesture recognition. When the touch distance reaches a threshold distance, gesture recognition is performed according to the smoothed touch motion track. As shown in FIG. 5, the starting point on the smooth processing track is The center of the circle, with a threshold distance MOV_LIMIT (for example, 80 or 90 points, etc.) as a radius, when the intermediate point or the predicted point exceeds the range of the circle, that is, the touch distance reaches a threshold distance, of course, The first point of the acquisition is the center of the circle. According to the position of the line connecting the first point and the center of the circle beyond the circle in the circle, the direction of the touch motion is identified as left shift, right shift, up shift or down shift, and the gesture recognition result is output.
参照图6,图6为图1中步骤S20一实施例的细化流程示意图。Referring to FIG. 6, FIG. 6 is a schematic diagram of a refinement process of an embodiment of step S20 in FIG.
步骤S21,计算所述起点到预测的点的连线与基准线形成的角度,将该角度作为直线运动角度;Step S21, calculating an angle formed by a line connecting the starting point to the predicted point and a reference line, and using the angle as a linear motion angle;
步骤S22,当所述直线运动角度处于第一角度范围内时,则判断所述触摸运动为上移,当所述直线运动角度处于第二角度范围内时,则判断所述触摸运动为左移,当所述直线运动角度处于第三角度范围内时,则判断所述触摸运动为下移,当所述直线运动角度处于第四角度范围内时,则判断所述触摸运动为右移。Step S22, when the linear motion angle is within the first angular range, determining that the touch motion is an upward shift, and when the linear motion angle is within the second angular range, determining that the touch motion is a left shift And determining that the touch motion is a downward shift when the linear motion angle is within a third angular range, and determining that the touch motion is a right shift when the linear motion angle is within a fourth angular range.
当触摸距离达到阈值距离时,以起点到预测的点的连线与基准线形成的角度,该角度即为触摸操作过程中的直线运动角度,可以在触摸板上建立二维坐标,并选定某一方向为基准线,即二维坐标中表示0°的线,将起点到预测的点的连线与基准线间形成的角度作为直线运动角度;当然,也可以根据起点与预测的点的坐标信息,即可计算起点到预测的点的直线运动角度;触摸运动的方向被分为左移、右移、上移及下移,而从图5中可以看出,触摸运动的方向是任意,但总会处于360°范围内,因此,在进行方位划分时,将水平向左及两侧一定角度范围作为左移,将水平向右及两侧一定角度范围作为右移,将竖直向上及两侧一定角度范围作为上移,将竖直向下及两侧一定角度范围作为下移,本发明一实施例以水平向右表示0°或360°,将45°至135°划分为上移,将135°至225°划分为左移,将225°至315°划分为下移,将0°至45°及315°至360°划分为右移,使每一个方向的触摸运动均可以识别出是左移、右移、上移或下移。When the touch distance reaches the threshold distance, the angle formed by the line connecting the starting point to the predicted point and the reference line is the angle of the linear motion during the touch operation, and the two-dimensional coordinates can be established on the touch panel and selected. A certain direction is a reference line, that is, a line representing 0° in two-dimensional coordinates, and an angle formed by a line connecting the starting point to the predicted point and the reference line is taken as a linear motion angle; of course, it may also be based on the starting point and the predicted point. The coordinate information can calculate the linear motion angle from the starting point to the predicted point; the direction of the touch motion is divided into left shift, right shift, up shift and down shift, and as can be seen from FIG. 5, the direction of the touch motion is arbitrary. However, it will always be in the range of 360°. Therefore, when performing azimuth division, the horizontal angle to the left and the opposite sides of the two sides will be shifted to the left, and the horizontal to the right and the two sides will be shifted to the right. And a certain angular range on both sides as the upward shift, the vertical downward and a certain angle range on both sides as the downward shift, an embodiment of the present invention indicates 0° or 360° horizontally to the right, and 45° to 135° as the upper shift, 135° to 225° is divided into left shift, 225° to 315° is divided into downward shift, and 0° to 45° and 315° to 360° are divided into right shifts, so that the touch motion in each direction can be recognized as Move left, right, up or down.
本实施例在采集触摸运动轨迹上的点位信息时,实时对触摸运动轨迹进行平滑处理,当触摸距离达到阈值距离时,即进行手势识别,从而在用户滑动触摸板的过程中,智能电视同步响应触控遥控器的触摸动作,反应迅速。In the embodiment, when the point information on the touch motion track is collected, the touch motion track is smoothed in real time, and when the touch distance reaches the threshold distance, the gesture recognition is performed, so that the smart TV synchronizes during the sliding of the touch panel by the user. Responsive to the touch action of the touch remote control, the response is rapid.
参照图7,图7为本发明基于触控遥控器的手势识别方法的第二实施例的流程示意图。基于上述基于触控遥控器的手势识别方法的第一实施例,所述方法还包括:Referring to FIG. 7, FIG. 7 is a schematic flowchart diagram of a second embodiment of a gesture recognition method based on a touch remote controller according to the present invention. Based on the first embodiment of the above-described touch remote control-based gesture recognition method, the method further includes:
步骤S30,当触摸距离达到阈值距离时,计算起点至预测的点的个数为N,将在触摸运动轨迹上采集的第N+1个点作为下一段触摸运动轨迹的第一个点。Step S30, when the touch distance reaches the threshold distance, the number of points from the starting point to the predicted point is N, and the N+1th point collected on the touch motion track is taken as the first point of the next piece of the touch motion track.
当触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果,表明完成了一个阶段的手势识别;在实际使用过程中,用户的一个手势动作形成的触摸运动轨迹长度不一,很可能在达到阈值距离时还没结束,在用户手指继续划动的过程中甚至可能出现转弯甚至换向等情况,为了使智能电视屏幕切换的情况与用户手指划动的情况保持一致,需要持续对触摸运动进行识别;本发明一实施例对采集的点数及进行平滑处理得到的点数进行计算,当触摸距离达到阈值距离时,计算起点至预测的点的个数为N,将触摸运动轨迹上获取的第N+1个点作为下一段触摸运动轨迹的第一个点,继续对触摸运动轨迹进行平滑处理、手势识别及输出手势识别结果等。当然,如果平滑处理后得到的中间点与起点的距离即达到阈值距离,不存在预测的点,则计算起点至该中间点的个数为N,将触摸运动轨迹上获取的第N+1个点作为下一段触摸运动轨迹的第一个点。When the touch distance reaches the threshold distance, the gesture recognition is performed according to the smoothed touch motion track, and the gesture recognition result is output, indicating that the gesture recognition is completed in one stage; in actual use, the touch motion formed by the user's one gesture motion The length of the track is different, and it is likely that it has not ended when the threshold distance is reached. In the process of the user's finger continuing to move, there may even be a turn or even a change of direction, in order to make the situation of the smart TV screen switch and the user's finger swipe. Consistently, it is necessary to continuously identify the touch motion; in an embodiment of the present invention, the number of points collected and the number of points obtained by the smoothing process are calculated. When the touch distance reaches the threshold distance, the number of points from the starting point to the predicted point is N. The N+1th point acquired on the touch motion track is used as the first point of the next touch motion track, and the touch motion track is smoothed, the gesture recognition, and the gesture recognition result are output. Of course, if the distance between the intermediate point obtained after the smoothing process and the starting point reaches the threshold distance, and there is no predicted point, the number of the starting point to the intermediate point is calculated as N, and the N+1th obtained on the touch motion track is obtained. The point is the first point of the next touch motion track.
本实施例在触摸运动的整个过程中,持续对触摸运动轨迹进行平滑处理、手势识别并输出手势识别结果,确定整个触摸运动的手势动作,使智能电视跟随用户手指划动的情况进行屏幕切换。In the whole process of the touch motion, the embodiment continuously smoothes the touch motion track, recognizes the gesture, and outputs the gesture recognition result, determines the gesture motion of the entire touch motion, and causes the smart TV to perform screen switching following the user's finger swipe.
为了更好地说明上述触控遥控器的手势识别方案,以下将通过一个实例进行具体解释。In order to better illustrate the gesture recognition scheme of the above touch remote controller, the following will be specifically explained by an example.
触控遥控器实时将采集的触摸运动轨迹上的点位信息传输到智能电视的机顶盒,触控遥控器与机顶盒是通过蓝牙进行信息传输的,由于蓝牙协议规定每7ms发送一次信息,因此设置触控遥控器每7ms采集一次触摸运动轨迹上的点位信息,由于点位信息从触控遥控器传输到机顶盒还需要大概1至2ms时间,而触控遥控器需要等前面的点位信息传输完成后才能再次采集并传输点位信息,因此,实际间隔8至12ms才采集一次点位信息。在每次采集点位信息时,触摸板上均有触摸点,则表示触摸运动持续进行,反之则表示一次触摸运动结束。在机顶盒中对触摸运动轨迹进行平滑处理,以采集的点的中点作为平滑处理后的点,可预先对触摸板上的每一个触摸点进行坐标标号,则平滑处理后的点也可由触摸板上的坐标表示,下表1给出了采集到的点及经过平滑处理后的点(包括预测的点)的信息。The touch remote controller transmits the point information on the collected touch motion track to the set top box of the smart TV in real time, and the touch remote controller and the set top box transmit information through Bluetooth. Since the Bluetooth protocol specifies that information is sent every 7 ms, the touch is set. The control remote controller collects the point information on the touch motion track every 7ms. Since the point information is transmitted from the touch remote controller to the set top box, it takes about 1 to 2ms, and the touch remote controller needs to wait for the previous point information transmission to be completed. The point information can be collected and transmitted again, so the point information is collected once every 8 to 12 ms. Each time the point information is collected, there are touch points on the touch panel, indicating that the touch motion continues, and vice versa indicates that the touch motion ends. The touch motion track is smoothed in the set top box, and the midpoint of the collected point is used as the smoothed point, and each touch point on the touch panel may be coordinate-labeled in advance, and the smoothed point may also be touched by the touch panel. The coordinates above indicate that Table 1 below gives information on the acquired points and the smoothed points (including predicted points).
表1 采集到的点及经过平滑处理后的点(包括预测的点)的信息Table 1 Information on collected points and smoothed points (including predicted points)
采集的点Collected point P0  P0 P1 P1 P2 P2 P3 P3 P4 P4 P5 P5 P6P6 P7  P7 P8 P8 P9 P9 P10  P10
X坐标 X coordinate 24twenty four 26  26 28 28 32 32 4444 80  80 120  120 140140 176 176 218  218 280 280
Y坐标 Y coordinate 222222 242 242 244 244 246  246 248248 242  242 238 238 226226 210 210 202  202 184 184
时间 Time 9466 9466 9476 9476 9486 9486 9498 9498 9523 9523 9535 9535 9546 9546 9550 9550 9558 9558 9564 9564 9575 9575
平滑处理后的点 Smoothed point Q0Q0 Q1  Q1 Q2 Q2 Q3 Q3 Q4 Q4 Q5 Q5 Q6 Q6 Q7 Q7 Q8 Q8 Q9Q9 Q10  Q10
X坐标 X coordinate 2525 27  27 30 30 38 38 6262 100 100 138  138 158158 197 197 249  249
Y坐标 Y coordinate 232 232 243243 245 245 247 247 245 245 240  240 235235 218 218 206  206 193 193
表1中的时间是在触摸板上采集到该点时的系统时间,设置阈值距离MOV_LIMIT的值为90,在采集到P0和P1时,得到平滑处理轨迹的起点Q0,采集到P2时,得到中间点Q1,同时计算中间点Q1至起点Q0的距离,从上表可知中间点Q1至起点Q0的距离为11 < 90,从起点Q0至中间点Q1的延长线上取预测的点Q2,预测的点Q2至中间点Q1的距离与中间点Q1至起点Q0的距离相同,经计算,从预测的点Q2至起点Q0的距离为22 < 90,随着触摸运动的持续进行,不断的采集到点P2、P3、P4及P5,并得到中间点Q2、Q3和Q4,及预测的点Q3、Q4和Q5,由于中间点Q2、Q3、Q4及预测的点Q3、Q4和Q5至起点Q0的距离均小于90,在采集到点P6时,得到中间点Q5,中间点Q5至起点Q0的距离仍小于90,因此还不能进行手势识别,而根据中间点Q4和Q5得到预测的点Q6的坐标为(138,235),预测的点Q6至起点Q0的距离为113 > 90,达到进行手势识别的条件,计算起点Q0至预测的点Q6的直线运动角度,由Sinα的计算公式可知,以预测的点Q6至起点Q0的距离113为斜边,以预测的点Q6至起点Q0沿Y轴的距离3为直角三角形的对边,即可计算得出α的角度为1.5°,即从P0至P6触摸运动的方向为右移。触摸运动持续进行,以P7为下一段触摸运动轨迹的第一个点,重复上述过程,得到平滑处理轨迹的起点Q7、中间点Q8及预测的点Q9,由于中间点Q8及预测的点Q9至Q7的距离均小于90,因此还不能进行手势识别,在采集到P10时,得到中间点Q9,同时计算中间点Q9至起点Q7的距离,从上表可知中间点Q9至起点Q7的距离为94 > 90,达到进行手势识别的条件,计算起点Q7至预测的点Q9的直线运动角度为14.9°,即从P7至P10触摸运动的方向为右移,并以P10为下一段触摸运动轨迹的第一个点,重复上述过程。The time in Table 1 is the system time when the point is collected on the touch panel. The value of the threshold distance MOV_LIMIT is set to 90. When P0 and P1 are acquired, the starting point Q0 of the smoothed processing track is obtained. When P2 is acquired, it is obtained. At the intermediate point Q1, the distance from the intermediate point Q1 to the starting point Q0 is calculated at the same time. From the above table, the distance from the intermediate point Q1 to the starting point Q0 is 11 < 90, taking the predicted point Q2 from the starting point Q0 to the extension point of the intermediate point Q1, the distance from the predicted point Q2 to the intermediate point Q1 is the same as the distance from the intermediate point Q1 to the starting point Q0, and calculated from the predicted point Q2 to the starting point The distance of Q0 is 22 < 90. As the touch motion continues, points P2, P3, P4, and P5 are continuously collected, and intermediate points Q2, Q3, and Q4 are obtained, and predicted points Q3, Q4, and Q5, due to intermediate points Q2, Q3, The distance between Q4 and predicted points Q3, Q4 and Q5 to the starting point Q0 is less than 90. When the point P6 is collected, the intermediate point Q5 is obtained, and the distance from the intermediate point Q5 to the starting point Q0 is still less than 90, so that gesture recognition is not possible yet. The coordinates of the point Q6 obtained from the intermediate points Q4 and Q5 are (138, 235), and the distance from the predicted point Q6 to the starting point Q0 is 113. > 90, the condition for performing gesture recognition is reached, and the linear motion angle from the starting point Q0 to the predicted point Q6 is calculated. According to the calculation formula of Sinα, the distance 113 from the predicted point Q6 to the starting point Q0 is the oblique side, and the predicted point Q6 is The distance 3 of the starting point Q0 along the Y axis is the opposite side of the right triangle, and the angle of α is calculated to be 1.5°, that is, the direction of the touch motion from P0 to P6 is right shift. The touch motion continues, and P7 is the first point of the next touch motion trajectory. The above process is repeated to obtain the starting point Q7, the intermediate point Q8 and the predicted point Q9 of the smoothing trajectory, due to the intermediate point Q8 and the predicted point Q9. The distance of Q7 is less than 90, so gesture recognition is not yet possible. When P10 is acquired, the intermediate point Q9 is obtained, and the distance from the intermediate point Q9 to the starting point Q7 is calculated. From the above table, the distance from the intermediate point Q9 to the starting point Q7 is 94. > 90, the condition for performing gesture recognition is reached, and the linear motion angle of the calculation starting point Q7 to the predicted point Q9 is 14.9°, that is, the direction of the touch motion from P7 to P10 is right shift, and P10 is the first touch motion track of the next segment. Repeat the above process.
本发明进一步提供一种基于触控遥控器的手势识别装置。The invention further provides a gesture recognition device based on a touch remote controller.
参照图8,图8为本发明基于触控遥控器的手势识别装置的第一实施例的功能模块示意图。Referring to FIG. 8, FIG. 8 is a schematic diagram of functional modules of a first embodiment of a gesture recognition apparatus based on a touch remote controller according to the present invention.
在一实施例中,所述基于触控遥控器的手势识别装置包括:计算模块10及识别模块20。In an embodiment, the touch remote controller-based gesture recognition apparatus includes: a calculation module 10 and an identification module 20.
所述计算模块10,用于触摸操作过程中,根据实时采集的触摸运动轨迹上的点位信息对触摸运动轨迹进行平滑处理,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断所述触摸距离是否达到阈值距离;The calculating module 10 is configured to perform smoothing on the touch motion track according to the point information on the touch motion track collected in real time during the touch operation, and calculate the touch distance according to the smoothed touch motion track to determine the Whether the touch distance reaches a threshold distance;
所述触控遥控器包括触摸板,所述触摸板还可以是触摸屏,可以为电阻式触摸板或电容感应式触摸板等各种形式的能够检测触摸点的触摸板。在触控遥控器处于正常待机状态时,每当用户用手指触碰触摸板时,触控遥控器对触摸点的数量进行检测,并根据检测到的触摸点的先后顺序获取用户手指滑动形成的触摸运动轨迹。由于检测到的触摸点可能存在干扰或跳点,因而得到的触摸运动轨迹可能会非常不平滑,大大降低手势识别的速度及准确率,因此,本发明一实施例对触摸运动轨迹进行平滑处理,以提高手势识别的速度及准确率。平滑处理的方式有很多,例如,线性平滑、函数拟合平滑及指数平滑等,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断该触摸运动的距离是否达到可进行手势识别的距离。The touch remote controller includes a touch panel, and the touch panel may also be a touch screen, and may be a touch panel capable of detecting touch points, such as a resistive touch panel or a capacitive inductive touch panel. When the touch remote controller is in a normal standby state, whenever the user touches the touchpad with a finger, the touch remote controller detects the number of touched points, and acquires the sliding of the user's finger according to the sequence of the detected touched points. Touch the motion track. Since the detected touched point may have interference or hopping, the obtained touch motion trajectory may be very unsmooth, and the speed and accuracy of the gesture recognition are greatly reduced. Therefore, an embodiment of the present invention smoothes the touch motion trajectory. To improve the speed and accuracy of gesture recognition. There are many ways to smooth the processing, for example, linear smoothing, function fitting smoothing, exponential smoothing, etc., and calculating the touch distance according to the smoothed touch motion trajectory to determine whether the distance of the touch motion reaches the distance at which gesture recognition can be performed.
参照图9,图9为图8中计算模块10第一实施例的细化功能模块示意图。所述计算模块10包括:平滑单元11、计算单元12及比较单元13。Referring to FIG. 9, FIG. 9 is a schematic diagram of a refinement function module of the first embodiment of the computing module 10 of FIG. The calculation module 10 includes a smoothing unit 11, a calculating unit 12, and a comparing unit 13.
所述平滑单元11,用于在采集到第二个点的点位信息时,按照预设规则从第一个点和第二个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的起点;及The smoothing unit 11 is configured to determine a point from the line connecting the first point and the second point as a smoothed point according to a preset rule when the point information of the second point is collected, and Using the smoothed point as a starting point of the smoothing track; and
按照预设规则从后续采集的点与相邻的前一个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的中间点;Determining a point from the subsequently acquired point and the adjacent previous point as a smoothed point according to a preset rule, and using the smoothed point as an intermediate point of the smoothed processing track;
所述计算单元12,用于计算中间点至起点的距离,将该距离作为触摸距离;The calculating unit 12 is configured to calculate a distance from the intermediate point to the starting point, and use the distance as the touch distance;
所述比较单元13,用于判断触摸距离是否达到阈值距离。The comparing unit 13 is configured to determine whether the touch distance reaches a threshold distance.
如图3所示,为了提高平滑处理速度,本发明一实施例采用线性平滑作为平滑处理的预设规则,且在采集到两个点的点位信息时,即将采集的第一个点和第二个点连线上确定的一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的起点;将后续采集的点与相邻的前一个点连线上确定的一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的中间点;优选地,以相邻两个点的中点作为平滑处理后的点。在采集点位信息的过程中,实时进行平滑处理,在得到中间点时,即计算该中间点与起点的距离,将该距离作为触摸距离,以判断该触摸运动的距离是否达到可进行手势识别的距离;当触摸距离未达到阈值距离时,继续对后续采集的点进行平滑处理得到平滑处理轨迹的中间点,并计算触摸距离,直到触摸距离达到阈值距离时,表示达到进行手势识别的条件,即可进行手势识别。As shown in FIG. 3, in order to improve the smoothing processing speed, an embodiment of the present invention adopts linear smoothing as a preset rule of smoothing processing, and when the point information of two points is collected, the first point and the first point to be collected are collected. A point determined on the two points is used as a smoothed point, and the smoothed point is used as a starting point of the smoothing processing track; and the subsequently collected point is connected to the adjacent previous point. The point is used as a smoothed point, and the smoothed point is used as an intermediate point of the smoothed processed track; preferably, the midpoint of two adjacent points is used as the smoothed point. In the process of collecting the point information, the smoothing process is performed in real time, and when the intermediate point is obtained, the distance between the intermediate point and the starting point is calculated, and the distance is used as the touch distance to determine whether the distance of the touch motion is reachable for gesture recognition. When the touch distance does not reach the threshold distance, the subsequent collected points are further smoothed to obtain an intermediate point of the smoothed processed track, and the touch distance is calculated until the touch distance reaches the threshold distance, indicating that the condition for performing gesture recognition is reached. Gesture recognition is available.
参照图10,图10为图8中计算模块10第二实施例的细化功能模块示意图。基于上述计算模块10的第一实施例,所述计算模块10还包括:预测单元14。Referring to FIG. 10, FIG. 10 is a schematic diagram of a refinement function module of the second embodiment of the computing module 10 of FIG. Based on the first embodiment of the computing module 10 described above, the computing module 10 further includes: a prediction unit 14.
所述预测单元14,用于当中间点与起点的距离小于阈值距离时,根据该中间点与相邻的前一个平滑处理后的点预测平滑处理轨迹上的下一个点;The prediction unit 14 is configured to: when the distance between the intermediate point and the starting point is less than the threshold distance, predict the smoothing of the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point;
所述计算单元12,还用于计算预测的点至起点的距离,将该距离作为触摸距离;The calculating unit 12 is further configured to calculate a distance from the predicted point to the starting point, and use the distance as the touch distance;
所述比较单元13,还用于判断触摸距离是否达到阈值距离。The comparing unit 13 is further configured to determine whether the touch distance reaches a threshold distance.
如前所述,平滑处理后的点都是对相邻两个点进行平滑处理后得到的,例如,采集到点P0和P1时,得到平滑处理轨迹的起点Q0,采集到点P2时,才能得到中间点Q1,依此类推,采集到点P8时,才能得到中间点Q7,即得到平滑处理后的点的时间总是滞后于采集到相同数量点位信息的时间,由于在采集到一两个点时,对触摸运动轨迹的预测准确性较低,因此,需要根据实际采集到的点确定平滑处理后的触摸运动轨迹以进行手势识别,而当至少得到两个平滑处理后的点时,可根据最新得到的中间点与相邻的前一个平滑处理后的点预测平滑处理轨迹上的下一个点,例如,在最新得到的中间点与相邻的前一个平滑处理后的点连线的延长线上取预测的点,在本发明一实施例中,如图3所示,在采集到点P8时,得到中间点Q7,由于中间点Q7至起点Q0的距离小于阈值距离,则在中间点Q6至中间点Q7的连线的延长线上取一个点作为预测的点Q8,优选地,预测的点Q8至中间点Q7的距离与中间点Q7至中间点Q6的距离相同,并计算预测的点Q8至起点Q0的距离,将该距离作为触摸距离,以判断该触摸运动的距离是否达到可进行手势识别的距离。当预测的点至起点的距离小于阈值距离时,该预测的点将被舍弃,例如,预测的点Q8至起点Q0的距离小于阈值距离时,该预测的点Q8被舍弃,在采集到点P9时,得到中间点Q8,并继续计算触摸距离和/或预测平滑处理轨迹上的下一个点。As described above, the smoothed points are obtained by smoothing the adjacent two points. For example, when the points P0 and P1 are collected, the starting point Q0 of the smoothed processing track is obtained, and when the point P2 is collected, The intermediate point Q1 is obtained, and so on, when the point P8 is collected, the intermediate point Q7 can be obtained, that is, the time of obtaining the smoothed point always lags behind the time when the same number of point information is collected, because one or two are collected. At the time of the point, the prediction accuracy of the touch motion track is low. Therefore, it is necessary to determine the smoothed touch motion track according to the actually collected points for gesture recognition, and when at least two smoothed points are obtained, The next point on the trajectory can be smoothed according to the newly obtained intermediate point and the adjacent previous smoothed point, for example, the newly obtained intermediate point is connected with the adjacent previous smoothed point. In an embodiment of the present invention, as shown in FIG. 3, when the point P8 is collected, the intermediate point Q7 is obtained, and since the distance from the intermediate point Q7 to the starting point Q0 is less than the threshold distance, A point is taken as an predicted point Q8 on the extension line of the line connecting the intermediate point Q6 to the intermediate point Q7, and preferably, the distance from the predicted point Q8 to the intermediate point Q7 is the same as the distance from the intermediate point Q7 to the intermediate point Q6, and The distance from the predicted point Q8 to the starting point Q0 is calculated, and the distance is used as the touch distance to determine whether the distance of the touch motion reaches a distance at which the gesture recognition can be performed. When the predicted point-to-start distance is less than the threshold distance, the predicted point will be discarded. For example, when the predicted point Q8 to the starting point Q0 is less than the threshold distance, the predicted point Q8 is discarded, and the point P9 is collected. At this time, the intermediate point Q8 is obtained, and the touch point is continuously calculated and/or the next point on the smoothing processing track is predicted.
所述识别模块20,用于当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果。The identification module 20 is configured to perform gesture recognition according to the smoothed touch motion track when the touch distance reaches a threshold distance, and output a gesture recognition result.
所述阈值距离即进行手势识别所需的最小距离,当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,如图5所示,以平滑处理轨迹上的起点为圆心,以阈值距离MOV_LIMIT(例如,为80或90个点等)为半径作圆,当中间点或预测的点超出了该圆的范围,即表示所述触摸距离达到阈值距离,当然,也可以采集的第一个点为圆心。根据超出该圆的范围的第一个点与圆心的连线在圆中的位置,识别该触摸运动的方向是左移、右移、上移或下移,并输出手势识别结果。The threshold distance is a minimum distance required for gesture recognition. When the touch distance reaches a threshold distance, gesture recognition is performed according to the smoothed touch motion track. As shown in FIG. 5, the starting point on the smooth processing track is The center of the circle, with a threshold distance MOV_LIMIT (for example, 80 or 90 points, etc.) as a radius, when the intermediate point or the predicted point exceeds the range of the circle, that is, the touch distance reaches a threshold distance, of course, The first point of the acquisition is the center of the circle. According to the position of the line connecting the first point and the center of the circle beyond the circle in the circle, the direction of the touch motion is identified as left shift, right shift, up shift or down shift, and the gesture recognition result is output.
参照图11,图11为图8中识别模块20一实施例的细化功能模块示意图。所述识别模块20包括:角度单元21及判断单元22。Referring to FIG. 11, FIG. 11 is a schematic diagram of a refinement function module of an embodiment of the identification module 20 of FIG. The identification module 20 includes an angle unit 21 and a determination unit 22.
所述角度单元21,用于计算所述起点到预测的点的连线与基准线形成的角度,将该角度作为直线运动角度;The angle unit 21 is configured to calculate an angle formed by a line connecting the starting point to the predicted point and a reference line, and use the angle as a linear motion angle;
所述判断单元22,用于当所述直线运动角度处于第一角度范围内时,则判断所述触摸运动为上移,当所述直线运动角度处于第二角度范围内时,则判断所述触摸运动为左移,当所述直线运动角度处于第三角度范围内时,则判断所述触摸运动为下移,当所述直线运动角度处于第四角度范围内时,则判断所述触摸运动为右移。The determining unit 22 is configured to: when the linear motion angle is within a first angular range, determine that the touch motion is upward, and when the linear motion angle is within a second angular range, determine the The touch motion is a left shift, and when the linear motion angle is within a third angle range, determining that the touch motion is a downward shift, and when the linear motion angle is within a fourth angular range, determining the touch motion Move to the right.
本实施例在采集触摸运动轨迹上的点位信息时,实时对触摸运动轨迹进行平滑处理,当触摸距离达到阈值距离时,即进行手势识别,并输出手势识别结果,使得用户滑动触摸板的过程中,智能电视立即响应触控遥控器的触摸动作,反应迅速。In the embodiment, when the point information on the touch motion track is collected, the touch motion track is smoothed in real time, and when the touch distance reaches the threshold distance, the gesture recognition is performed, and the gesture recognition result is output, so that the user slides the touch panel. In the middle, the smart TV immediately responds to the touch action of the touch remote controller and responds quickly.
参照图12,图12为本发明基于触控遥控器的手势识别装置的第二实施例的功能模块示意图。所述基于触控遥控器的手势识别装置还包括起点模块30。Referring to FIG. 12, FIG. 12 is a schematic diagram of functional modules of a second embodiment of a gesture recognition device based on a touch remote controller according to the present invention. The gesture remote control based gesture recognition device further includes a starting point module 30.
所述起点模块30,用于当触摸距离达到阈值距离时,计算起点至预测的点的个数为N,将在触摸运动轨迹上采集的第N+1个点作为下一段触摸运动轨迹的第一个点。The starting point module 30 is configured to calculate, when the touch distance reaches a threshold distance, the number of points from the starting point to the predicted point is N, and the N+1 points collected on the touch motion track are used as the one point.
本实施例在触摸运动的整个过程中,持续对触摸运动轨迹进行平滑处理、手势识别并输出手势识别结果,确定整个触摸运动的手势动作,使智能电视跟随用户手指划动的情况进行屏幕切换。In the whole process of the touch motion, the embodiment continuously smoothes the touch motion track, recognizes the gesture, and outputs the gesture recognition result, determines the gesture motion of the entire touch motion, and causes the smart TV to perform screen switching following the user's finger swipe.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (16)

  1. 一种基于触控遥控器的手势识别方法,其特征在于,包括以下步骤: A gesture recognition method based on a touch remote controller, comprising the following steps:
    步骤A、触摸操作过程中,根据实时采集的触摸运动轨迹上的点位信息对触摸运动轨迹进行平滑处理,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断所述触摸距离是否达到阈值距离;Step A: During the touch operation, the touch motion track is smoothed according to the point information on the touch motion track collected in real time, and the touch distance is calculated according to the smoothed touch motion track to determine whether the touch distance reaches the threshold. distance;
    步骤B、当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果。Step B: When the touch distance reaches a threshold distance, perform gesture recognition according to the smoothed touch motion track, and output a gesture recognition result.
  2. 如权利要求1所述的基于触控遥控器的手势识别方法,其特征在于,所述平滑处理包括线性平滑、函数拟合平滑及指数平滑。 The touch remote controller-based gesture recognition method according to claim 1, wherein the smoothing processing comprises linear smoothing, function fitting smoothing, and exponential smoothing.
  3. 如权利要求1所述的基于触控遥控器的手势识别方法,其特征在于,所述步骤A包括:The touch remote controller-based gesture recognition method according to claim 1, wherein the step A comprises:
    步骤A1、在采集到第二个点的点位信息时,按照预设规则从第一个点和第二个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的起点;Step A1: When collecting the point information of the second point, determine a point from the line connecting the first point and the second point as a smoothed point according to a preset rule, and smooth the processed The point as the starting point for smoothing the trajectory;
    步骤A2、按照预设规则从后续采集的点与相邻的前一个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的中间点;Step A2: Determine a point from the line between the subsequently collected point and the adjacent previous point as a smoothed point according to a preset rule, and use the smoothed point as an intermediate point of the smoothed processing track;
    步骤A3、计算中间点至起点的距离,将该距离作为触摸距离;Step A3: Calculate the distance from the intermediate point to the starting point, and use the distance as the touch distance;
    步骤A4、判断触摸距离是否达到阈值距离,当触摸距离未达到阈值距离时,返回步骤A2,当触摸距离达到阈值距离时,转入步骤B。In step A4, it is determined whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, the process returns to step A2. When the touch distance reaches the threshold distance, the process proceeds to step B.
  4. 如权利要求3所述的基于触控遥控器的手势识别方法,其特征在于,所述步骤A3之后,还包括:The gesture remote control-based gesture recognition method of claim 3, further comprising: after the step A3,
    步骤A5、当中间点与起点的距离小于阈值距离时,根据该中间点与相邻的前一个平滑处理后的点预测平滑处理轨迹上的下一个点;Step A5: When the distance between the intermediate point and the starting point is less than the threshold distance, predict the smoothing of the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point;
    步骤A6、计算预测的点至起点的距离,将该距离作为触摸距离;Step A6: calculating a distance from the predicted point to the starting point, and using the distance as the touch distance;
    步骤A7、判断触摸距离是否达到阈值距离,当触摸距离未达到阈值距离时,返回步骤A2,当触摸距离达到阈值距离时,转入步骤B。In step A7, it is determined whether the touch distance reaches the threshold distance. When the touch distance does not reach the threshold distance, the process returns to step A2. When the touch distance reaches the threshold distance, the process proceeds to step B.
  5. 如权利要求4所述的基于触控遥控器的手势识别方法,其特征在于,所述步骤B包括:The touch remote controller-based gesture recognition method according to claim 4, wherein the step B comprises:
    步骤B1、计算所述起点到预测的点的连线与基准线形成的角度,将该角度作为直线运动角度;Step B1, calculating an angle formed by the line connecting the starting point to the predicted point and the reference line, and using the angle as a linear motion angle;
    步骤B2、当所述直线运动角度处于第一角度范围内时,则判断所述触摸运动为上移,当所述直线运动角度处于第二角度范围内时,则判断所述触摸运动为左移,当所述直线运动角度处于第三角度范围内时,则判断所述触摸运动为下移,当所述直线运动角度处于第四角度范围内时,则判断所述触摸运动为右移。Step B2, when the linear motion angle is within the first angular range, determining that the touch motion is an upward shift, and when the linear motion angle is within a second angular range, determining that the touch motion is a left shift And determining that the touch motion is a downward shift when the linear motion angle is within a third angular range, and determining that the touch motion is a right shift when the linear motion angle is within a fourth angular range.
  6. 如权利要求4所述的基于触控遥控器的手势识别方法,其特征在于,所述方法还包括:The touch remote controller-based gesture recognition method according to claim 4, wherein the method further comprises:
    以平滑处理轨迹上的起点为圆心,以阈值距离为半径作圆,当中间点或预测的点超出了该圆的范围时,表示所述触摸距离达到阈值距离。The starting point on the smoothing processing track is the center of the circle, and the threshold distance is used as the radius. When the intermediate point or the predicted point exceeds the range of the circle, it indicates that the touch distance reaches the threshold distance.
  7. 如权利要求6所述的基于触控遥控器的手势识别方法,其特征在于,所述方法还包括:The touch remote controller-based gesture recognition method of claim 6, wherein the method further comprises:
    根据超出该圆的范围的第一个点与圆心的连线在圆中的位置,识别该触摸运动的方向是左移、右移、上移或下移,并输出手势识别结果。According to the position of the line connecting the first point and the center of the circle beyond the circle in the circle, the direction of the touch motion is identified as left shift, right shift, up shift or down shift, and the gesture recognition result is output.
  8. 如权利要求4所述的基于触控遥控器的手势识别方法,其特征在于,所述方法还包括:The touch remote controller-based gesture recognition method according to claim 4, wherein the method further comprises:
    步骤C、当触摸距离达到阈值距离时,计算起点至预测的点的个数为N,将在触摸运动轨迹上采集的第N+1个点作为下一段触摸运动轨迹的第一个点。Step C: When the touch distance reaches the threshold distance, the number of points from the starting point to the predicted point is N, and the N+1th point collected on the touch motion track is taken as the first point of the next piece of the touch motion track.
  9. 一种基于触控遥控器的手势识别装置,其特征在于,包括:A gesture recognition device based on a touch remote controller, comprising:
    计算模块,用于触摸操作过程中,根据实时采集的触摸运动轨迹上的点位信息对触摸运动轨迹进行平滑处理,并按照平滑处理后的触摸运动轨迹计算触摸距离,以判断所述触摸距离是否达到阈值距离;The calculation module is configured to smooth the touch motion track according to the point information on the touch motion track collected in real time during the touch operation, and calculate the touch distance according to the smoothed touch motion track to determine whether the touch distance is Reaching the threshold distance;
    识别模块,用于当所述触摸距离达到阈值距离时,根据平滑处理后的触摸运动轨迹进行手势识别,并输出手势识别结果。The identification module is configured to perform gesture recognition according to the smoothed touch motion track when the touch distance reaches a threshold distance, and output a gesture recognition result.
  10. 如权利要求9所述的基于触控遥控器的手势识别装置,其特征在于,所述平滑处理包括线性平滑、函数拟合平滑及指数平滑。The gesture remote control-based gesture recognition apparatus according to claim 9, wherein the smoothing processing comprises linear smoothing, function fitting smoothing, and exponential smoothing.
  11. 如权利要求9所述的基于触控遥控器的手势识别装置,其特征在于,所述计算模块包括:The touch control device-based gesture recognition device of claim 9, wherein the calculation module comprises:
    平滑单元,用于在采集到第二个点的点位信息时,按照预设规则从第一个点和第二个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的起点;及a smoothing unit, configured to determine a point from the line connecting the first point and the second point as a smoothed point according to a preset rule when collecting the point information of the second point, and smooth the point The processed point serves as the starting point for smoothing the trajectory; and
    按照预设规则从后续采集的点与相邻的前一个点的连线上确定一个点作为平滑处理后的点,并将该平滑处理后的点作为平滑处理轨迹的中间点;Determining a point from the subsequently acquired point and the adjacent previous point as a smoothed point according to a preset rule, and using the smoothed point as an intermediate point of the smoothed processing track;
    计算单元,用于计算中间点至起点的距离,将该距离作为触摸距离;a calculating unit, configured to calculate a distance from the intermediate point to the starting point, and use the distance as the touch distance;
    比较单元,用于判断触摸距离是否达到阈值距离。The comparing unit is configured to determine whether the touch distance reaches a threshold distance.
  12. 如权利要求11所述的基于触控遥控器的手势识别装置,其特征在于,所述计算模块还包括预测单元;The touch remote controller-based gesture recognition apparatus according to claim 11, wherein the calculation module further comprises a prediction unit;
    所述预测单元,用于当中间点与起点的距离小于阈值距离时,根据该中间点与相邻的前一个平滑处理后的点预测平滑处理轨迹上的下一个点;The prediction unit is configured to: when the distance between the intermediate point and the starting point is less than the threshold distance, predict the smoothing of the next point on the trajectory according to the intermediate point and the adjacent previous smoothed point;
    所述计算单元,还用于计算预测的点至起点的距离,将该距离作为触摸距离;The calculating unit is further configured to calculate a distance from the predicted point to the starting point, and use the distance as the touch distance;
    所述比较单元,还用于判断触摸距离是否达到阈值距离。The comparing unit is further configured to determine whether the touch distance reaches a threshold distance.
  13. 如权利要求12所述的基于触控遥控器的手势识别装置,其特征在于,所述识别模块包括:The touch recognition device-based gesture recognition device of claim 12, wherein the identification module comprises:
    角度单元,用于计算所述起点到预测的点的连线与基准线形成的角度,将该角度作为直线运动角度;An angle unit, configured to calculate an angle formed by a line connecting the starting point to the predicted point and a reference line, and using the angle as a linear motion angle;
    判断单元,用于当所述直线运动角度处于第一角度范围内时,则判断所述触摸运动为上移,当所述直线运动角度处于第二角度范围内时,则判断所述触摸运动为左移,当所述直线运动角度处于第三角度范围内时,则判断所述触摸运动为下移,当所述直线运动角度处于第四角度范围内时,则判断所述触摸运动为右移。a determining unit, configured to: when the linear motion angle is within a first angular range, determine that the touch motion is an upward shift, and when the linear motion angle is within a second angular range, determine that the touch motion is Moving to the left, when the linear motion angle is within the third angular range, determining that the touch motion is a downward shift, and when the linear motion angle is within the fourth angular range, determining that the touch motion is a right shift .
  14. 如权利要求12所述的基于触控遥控器的手势识别装置,其特征在于,所述识别模块,还用于以平滑处理轨迹上的起点为圆心,以阈值距离为半径作圆,当中间点或预测的点超出了该圆的范围时,表示所述触摸距离达到阈值距离。The touch recognition device-based gesture recognition device according to claim 12, wherein the identification module is further configured to use a starting point on the smoothing processing track as a center and a threshold distance as a radius to be a circle. Or when the predicted point exceeds the range of the circle, it indicates that the touch distance reaches a threshold distance.
  15. 如权利要求14所述的基于触控遥控器的手势识别装置,其特征在于,所述识别模块,还用于根据超出该圆的范围的第一个点与圆心的连线在圆中的位置,识别该触摸运动的方向是左移、右移、上移或下移,并输出手势识别结果。The gesture recognition device based on the touch remote controller according to claim 14, wherein the identification module is further configured to position the line in the circle according to the line connecting the first point and the center of the circle beyond the circle The direction in which the touch motion is recognized is left shifted, right shifted, moved up or down, and the gesture recognition result is output.
  16. 如权利要求12所述的基于触控遥控器的手势识别装置,其特征在于,所述基于触控遥控器的手势识别装置还包括:The gesture remote control-based gesture recognition apparatus of claim 12, wherein the gesture remote control-based gesture recognition apparatus further comprises:
    起点模块,用于当触摸距离达到阈值距离时,计算起点至预测的点的个数为N,将在触摸运动轨迹上采集的第N+1个点作为下一段触摸运动轨迹的第一个点。a starting point module, when the touch distance reaches a threshold distance, the number of points from the starting point to the predicted point is N, and the N+1th point collected on the touch motion track is taken as the first point of the next piece of the touch motion track .
PCT/CN2016/112399 2016-10-14 2016-12-27 Gesture recognition method and apparatus based on touch control remote controller WO2018068403A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610899312.XA CN106658123A (en) 2016-10-14 2016-10-14 Touch-remote-controller-based gesture recognition method and device
CN201610899312.X 2016-10-14

Publications (1)

Publication Number Publication Date
WO2018068403A1 true WO2018068403A1 (en) 2018-04-19

Family

ID=58856464

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112399 WO2018068403A1 (en) 2016-10-14 2016-12-27 Gesture recognition method and apparatus based on touch control remote controller

Country Status (2)

Country Link
CN (1) CN106658123A (en)
WO (1) WO2018068403A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542301B (en) * 2017-09-21 2021-07-09 腾讯科技(深圳)有限公司 Intelligent hardware control method and device, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789327A (en) * 2012-08-07 2012-11-21 北京航空航天大学 Method for controlling mobile robot on basis of hand signals
EP2602703A1 (en) * 2011-12-09 2013-06-12 LG Electronics, Inc. Mobile terminal and controlling method thereof
CN104932769A (en) * 2014-03-20 2015-09-23 腾讯科技(深圳)有限公司 Web page display method and device
CN105138197A (en) * 2015-08-18 2015-12-09 南京触宏微电子有限公司 Sliding track identification method and sliding track identification device
CN105744322A (en) * 2014-12-10 2016-07-06 Tcl集团股份有限公司 Method and device for controlling screen focus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2602703A1 (en) * 2011-12-09 2013-06-12 LG Electronics, Inc. Mobile terminal and controlling method thereof
CN102789327A (en) * 2012-08-07 2012-11-21 北京航空航天大学 Method for controlling mobile robot on basis of hand signals
CN104932769A (en) * 2014-03-20 2015-09-23 腾讯科技(深圳)有限公司 Web page display method and device
CN105744322A (en) * 2014-12-10 2016-07-06 Tcl集团股份有限公司 Method and device for controlling screen focus
CN105138197A (en) * 2015-08-18 2015-12-09 南京触宏微电子有限公司 Sliding track identification method and sliding track identification device

Also Published As

Publication number Publication date
CN106658123A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2015109865A1 (en) Customized control method and system for air conditioner operation mode
WO2019051887A1 (en) Method and device for controlling home appliance, and computer-readable storage medium
WO2017041337A1 (en) Method, terminal and system for controlling air conditioner
WO2016061774A1 (en) Flight path setting method and apparatus
WO2015149588A1 (en) Method for recognizing operation mode of user on handheld device, and handheld device
WO2016074235A1 (en) Control method and apparatus for moving object and mobile device
WO2014194627A1 (en) Method and device for controlling the displaying of interface content
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2016173259A1 (en) Bluetooth pairing method and bluetooth pairing device
WO2019085116A1 (en) Induction cooker temperature measuring method and device and readable storage medium
WO2017036203A1 (en) Play control method for media application, remote control device and television system
WO2016187964A1 (en) Method and apparatus for intelligently controlling controlled device
WO2013159482A1 (en) Method and device for intelligently displaying icon
WO2017215187A1 (en) Remote control method and remote control
WO2016058258A1 (en) Terminal remote control method and system
WO2018113187A1 (en) Display control method and display device
WO2014035113A1 (en) Method of controlling touch function and an electronic device thereof
WO2017173841A1 (en) Touch screen-based method for controlling automatic scrolling of electronic book, and mobile terminal
WO2019051897A1 (en) Terminal operating parameter adjustment method and device, and computer readable storage medium
WO2017016262A1 (en) Method for controlling smart watch, and smart watch
WO2014048231A1 (en) Word processing method and apparatus for touchscreen intelligent device
WO2017028613A1 (en) Terminal control method and apparatus based on remote controller app
WO2016192438A1 (en) Motion sensing interaction system activation method, and motion sensing interaction method and system
WO2017084303A1 (en) Switching method for launcher and switching control system
WO2017084305A1 (en) Terminal control method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16918602

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16918602

Country of ref document: EP

Kind code of ref document: A1