WO2016184076A1 - Character output method and apparatus - Google Patents

Character output method and apparatus Download PDF

Info

Publication number
WO2016184076A1
WO2016184076A1 PCT/CN2015/096585 CN2015096585W WO2016184076A1 WO 2016184076 A1 WO2016184076 A1 WO 2016184076A1 CN 2015096585 W CN2015096585 W CN 2015096585W WO 2016184076 A1 WO2016184076 A1 WO 2016184076A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
angle
track
movement
parameter
Prior art date
Application number
PCT/CN2015/096585
Other languages
French (fr)
Chinese (zh)
Inventor
刘凯
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016184076A1 publication Critical patent/WO2016184076A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for outputting characters.
  • the invention provides a method and a device for outputting characters, so as to at least solve the problem that the click position of the input characters through the touch screen is incorrect in the related art.
  • a method for outputting a character including: collecting a track point of a movement track of a terminal; acquiring a first parameter and a second parameter of the terminal movement according to the track point; When the first parameter and the second parameter match the parameters stored by the terminal, characters corresponding to the first parameter and the second parameter are output.
  • the first parameter and the second parameter include a direction or an angle at which the terminal moves.
  • the acquiring a trajectory point of the terminal movement trajectory within a predetermined time period includes: collecting, by using a preset sampling frequency, a first trajectory point set of the terminal movement trajectory from a start time of the predetermined time to a first specified time, wherein And the first specified time is before the end time of the predetermined time; and the second track point set of the terminal movement track is collected between the second designated time and the end time of the predetermined time by the preset sampling frequency, where The second specified time is before the end time of the predetermined time, the first specified time is before the second specified time; wherein the first track point set and the second track point set respectively Includes multiple track points for terminal movement.
  • the acquiring the first parameter and the second parameter of the terminal movement according to the track point includes: determining that a track point in the first track point set is the most in a three-dimensional coordinate where the terminal is located a first area, wherein the first area is in a plane in which the first coordinate axis and the second coordinate axis are located; comparing the first area with the terminal at a start time of the predetermined time The three-dimensional coordinates, the terminal movement indicated by the first set of track points is obtained a direction or angle; determining a second region having the most track points in the second set of track points in the three-dimensional coordinates in which the terminal is located, wherein the second region is in the three-dimensional coordinates a plane in which a coordinate axis and the second coordinate axis are located, or a third region in which the track point in the second track point set is the most in the three-dimensional coordinates in which the terminal is located; a third coordinate axis of the third region in the three-dimensional coordinates and a plane in which the first coordinate
  • the outputting the character corresponding to the first parameter and the second parameter includes: determining a direction or an angle of movement of the terminal indicated by the first track point set and a corresponding direction stored by the terminal Whether the angles match or not; when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the terminal indicated by the second track point set Whether the direction or angle of movement matches the corresponding direction or angle stored by the terminal; when the direction or angle of movement of the terminal indicated by the second set of track points matches the corresponding direction or angle stored by the terminal, the output a character corresponding to the direction in which the terminal is moved by the first set of track points and the direction or angle of the terminal movement indicated by the second set of track points.
  • the direction or angle of the terminal movement indicated by the first track point set does not match the corresponding direction or angle stored by the terminal, continue to determine the terminal indicated by the second track point set. Whether the direction or angle of movement matches the corresponding direction or angle stored by the terminal; when the direction or angle of movement of the terminal indicated by the second set of track points matches the corresponding direction or angle stored by the terminal, the output All characters corresponding to the direction or angle of movement of the terminal indicated by the second set of track points.
  • the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the terminal movement indicated by the second track point set. Whether the direction or angle matches the corresponding direction or angle stored by the terminal; when the direction or angle of the terminal movement indicated by the second track point set does not match the corresponding direction or angle stored by the terminal, the output All characters corresponding to the direction or angle of movement of the terminal indicated by the first set of track points.
  • the method further includes: collecting in a specified time When the three-dimensional coordinates of the track point of the terminal movement track are not changed, the first parameter and the second parameter of the terminal movement are obtained according to the track point: determining the three-dimensional coordinates in the terminal a fourth region having the largest number of track points in the first track point set, wherein the fourth region is in a plane in which the first coordinate axis and the second coordinate axis are located in the three-dimensional coordinates; comparing the fourth region with The direction or angle of the terminal movement indicated by the first track point set is obtained by the terminal at a three-dimensional coordinate of the start time of the predetermined time.
  • the outputting the character corresponding to the first parameter and the second parameter includes: determining whether a direction of the terminal movement indicated by the first track point set and a direction or an angle stored by the terminal are Matching; when the direction or angle of movement of the terminal indicated by the first set of track points matches the corresponding direction or angle stored by the terminal, outputting a direction of movement of the terminal indicated by the first set of track points Or all characters corresponding to the angle.
  • the method before acquiring the first parameter and the second parameter of the terminal movement according to the track point, the method further includes: displaying a track point of the terminal moving track.
  • an output device for a character including: an acquisition module, configured to collect a track point of a movement track of the terminal; and an acquisition module configured to acquire the movement of the terminal according to the track point a first parameter and a second parameter; the output module is configured to output, when the first parameter and the second parameter match the parameter stored by the terminal, output corresponding to the first parameter and the second parameter character.
  • the first parameter and the second parameter include a direction or an angle at which the terminal moves.
  • the collecting module includes: a first collecting unit, configured to collect, by using a preset sampling frequency, a first set of track points of a terminal moving track from a start time of a predetermined time to a first specified time, where The first designated time is before the end time of the predetermined time; the second collecting unit is configured to collect the second track of the terminal moving track between the second designated time and the ending time of the predetermined time by the preset sampling frequency a set of points, wherein the second specified time is before an end time of the predetermined time, the first specified time is before the second specified time; wherein the first set of track points and the second The set of track points respectively includes a plurality of track points moved by the terminal.
  • a first collecting unit configured to collect, by using a preset sampling frequency, a first set of track points of a terminal moving track from a start time of a predetermined time to a first specified time, where The first designated time is before the end time of the predetermined time
  • the second collecting unit is configured to collect the second track of the terminal moving
  • the acquiring module includes: a first determining unit, configured to determine a first region that has the most track points in the first track point set in the three-dimensional coordinates in which the terminal is located, where the first An area is in a plane in which the first coordinate axis and the second coordinate axis are located; the first acquisition unit is configured to compare the first area with the terminal at a start time of the predetermined time a second direction determining unit, configured to determine a track point in the second track point set in the three-dimensional coordinates of the terminal a second area that is the most, wherein the second area is in a plane in which the first coordinate axis and the second coordinate axis in the three-dimensional coordinates are located, or a third determining unit is configured to determine a third region having the most track points in the second set of track points in the three-dimensional coordinates in which the terminal is located; wherein a third coordinate axis of the third region in the three-dimensional coordinates and the first Axis a plane in which the third coordinate axis and
  • the output module includes: a first determining unit, configured to determine whether a direction or an angle of the terminal movement indicated by the first track point set matches a corresponding direction or an angle stored by the terminal; a determining unit, configured to continue to determine the terminal indicated by the second track point set when a direction or an angle of movement of the terminal indicated by the first track point set matches a corresponding direction or angle stored by the terminal Whether the direction or angle of movement matches the corresponding direction or angle stored by the terminal; the first output unit is configured to correspond to the direction or angle of movement of the terminal indicated by the second set of track points and the storage of the terminal When the direction or the angle is matched, a character corresponding to the direction in which the terminal is moved by the first track point set and the direction or angle of the terminal movement indicated by the second track point set is output.
  • the output module further includes: a third determining unit, configured to: when the direction or angle of the terminal movement indicated by the first track point set does not match the corresponding direction or angle stored by the terminal, And determining whether the direction or angle of the terminal movement indicated by the second track point set matches the corresponding direction or angle stored by the terminal; a second output unit, configured to output, when the direction or angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by the terminal, outputting the indication indicated by the second set of track points All characters corresponding to the direction or angle of the terminal movement.
  • a third determining unit configured to: when the direction or angle of the terminal movement indicated by the first track point set does not match the corresponding direction or angle stored by the terminal, And determining whether the direction or angle of the terminal movement indicated by the second track point set matches the corresponding direction or angle stored by the terminal
  • a second output unit configured to output, when the direction or angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by
  • the output module further includes: a fourth determining unit, configured to continue when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal Determining whether a direction or an angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by the terminal; and a third output unit configured to be in the set indicated by the second set of track points When the direction or angle of movement of the terminal does not match the corresponding direction or angle stored by the terminal, all characters corresponding to the direction or angle of the terminal movement indicated by the first track point set are output.
  • the acquiring module includes: a third determining unit, after collecting, by using a preset sampling frequency, a first track point set of a terminal moving track from a start time of the predetermined time to a first specified time, Determining, in the three-dimensional coordinates of the terminal, the fourth region having the most track points in the first track point set in the three-dimensional coordinates in which the terminal is located, where the three-dimensional coordinates of the track point of the terminal movement track acquired in the specified time are not changed, wherein And the fourth area is in a plane in which the first coordinate axis and the second coordinate axis are located in the three-dimensional coordinates; and the third acquiring unit is configured to compare the fourth area with the terminal at the predetermined time
  • the three-dimensional coordinates of the start time are obtained by the direction or angle of the terminal movement indicated by the first track point set.
  • the output module further includes: a fifth determining unit, configured to determine whether a direction of movement of the terminal indicated by the first track point set matches a direction or an angle stored by the terminal; and a fourth output unit And outputting, when the direction or angle of movement of the terminal indicated by the first track point set matches a corresponding direction or angle stored by the terminal, outputting the terminal movement indicated by the first track point set All characters corresponding to the direction or angle.
  • a fifth determining unit configured to determine whether a direction of movement of the terminal indicated by the first track point set matches a direction or an angle stored by the terminal
  • a fourth output unit And outputting, when the direction or angle of movement of the terminal indicated by the first track point set matches a corresponding direction or angle stored by the terminal, outputting the terminal movement indicated by the first track point set All characters corresponding to the direction or angle.
  • the device further includes: a display module, configured to display a track point of the movement track of the terminal before acquiring the first parameter and the second parameter of the terminal movement according to the track point.
  • a display module configured to display a track point of the movement track of the terminal before acquiring the first parameter and the second parameter of the terminal movement according to the track point.
  • the track point of the moving track of the collecting terminal is adopted; the first parameter and the second parameter of the moving of the terminal are acquired according to the track point; when the first parameter and the second parameter match the parameter stored by the terminal, the output is
  • the method of the first parameter and the character corresponding to the second parameter solves the problem that the click position of the input character through the touch screen is incorrect in the related art, thereby achieving the effect that the user can operate the character through the gesture action without operating the screen.
  • FIG. 1 is a flow chart of a method for outputting characters according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of an output device of a character according to an embodiment of the present invention
  • FIG. 3 is a block diagram 1 of an optional structure of a character output device according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 2 of an optional structure of an output device for a character according to an embodiment of the present invention
  • FIG. 5 is a block diagram 3 of an optional structure of an output device for a character according to an embodiment of the present invention.
  • FIG. 6 is a block diagram 4 of an optional structure of an output device for a character according to an embodiment of the present invention.
  • FIG. 7 is a block diagram 5 of an optional structure of an output device for a character according to an embodiment of the present invention.
  • FIG. 8 is a block diagram 6 of an optional structure of a character output device according to an embodiment of the present invention.
  • FIG. 9 is a block diagram 7 of an optional structure of an output device for a character according to an embodiment of the present invention.
  • FIG. 10 is a block diagram VIII of an optional structure of an output device for a character according to an embodiment of the present invention.
  • FIG. 11 is a flow chart showing a method for outputting characters according to an alternative embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a general flow of character matching according to an alternative embodiment of the present invention.
  • FIG. 13 is a schematic diagram of a trajectory detection matching process according to an alternative embodiment of the present invention.
  • Figure 14 is a perspective view of a stereo trajectory according to an alternative embodiment of the present invention.
  • 15a-15b are exploded trajectory detection diagrams in accordance with an alternate embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for outputting characters according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 collecting a track point of the movement track of the terminal
  • Step S104 acquiring a first parameter and a second parameter of the terminal movement according to the track point;
  • Step S106 When the first parameter and the second parameter match the parameter stored by the terminal, output a character corresponding to the first parameter and the second parameter.
  • the first parameter and the second parameter of the terminal movement are acquired according to the track point, and then the obtained first parameter and the second parameter and the parameter stored by the terminal are performed.
  • Matching in the case of matching, outputting characters corresponding to the first parameter and the second parameter. That is to say, the movement trajectory of the terminal itself is used as the trigger condition for the character output, and the user does not need to click and select the character on the touch screen of the terminal, thereby solving the problem that the click position of the input character through the touch screen is incorrect in the related art, and the problem is reached.
  • the user can achieve the effect of inputting characters by gestures without operating the screen.
  • the first parameter and the second parameter include a direction or an angle at which the terminal moves.
  • Step S11 Collect a first set of track points of the terminal movement trajectory from a start time of the predetermined time to a first specified time by using a preset sampling frequency. It should be noted that the first specified time involved in the step is before the end time of the predetermined time;
  • Step S12 Collect a second set of track points of the terminal movement track between the second designated time and the end time of the predetermined time by using the preset sampling frequency. It should be noted that, wherein the second specified time involved in the step is before the end time of the predetermined time, and the first specified time is before the second specified time.
  • the first track point set and the second track point set involved in steps S11 to S12 respectively include a plurality of track points moved by the terminal;
  • the predetermined sampling frequency involved may be 0.1/per. Second, 0.01/second, etc.; for the first specified time and the second specified time, it may be set as needed, for example, the first designated time may be a time of 2/5 in a predetermined time period, and the second specified time may be A time of 1/5 of the scheduled time period.
  • the sampling points obtained by this method can be used as a basis for judging the direction and/or angle of the terminal to move within a predetermined time.
  • Step S104 involves acquiring the first parameter and the second parameter of the terminal movement according to the track point.
  • the first parameter and the second parameter of the terminal movement may be obtained by:
  • Step S21 determining a first region having the largest number of track points in the first track point set in the three-dimensional coordinates where the terminal is located, wherein the first coordinate axis and the second coordinate axis of the first region in the three-dimensional coordinates are located In-plane
  • Step S22 Comparing the three-dimensional coordinates of the first region and the terminal at the start time of the predetermined time, and obtaining the direction or angle of the terminal movement indicated by the first track point set;
  • Step S23 determining a second region having the largest number of track points in the second track point set in the three-dimensional coordinates where the terminal is located, wherein the first coordinate axis and the second coordinate axis of the second region in the three-dimensional coordinates In the plane in which it is located, or determining the third region in the set of second track points in which the track point is the most in the three-dimensional coordinates of the terminal.
  • the third coordinate axis of the third region involved in the step is the plane where the first coordinate axis is located, or the plane where the third coordinate axis and the second coordinate axis are located,
  • the second area in the step may be an XOY plane in three-dimensional coordinates
  • the third area may be an XOZ or YOZ plane.
  • Step S24 Comparing the second region or the third region with the three-dimensional coordinates of the terminal at the start time of the predetermined time, obtaining the direction or angle of the terminal movement indicated by the second track point set.
  • the direction of the terminal movement may be determined by the first track point, and the moving angle of the terminal is determined by the first track point.
  • Step S106 when the first parameter and the second parameter are matched with the parameter stored by the terminal, output a character corresponding to the first parameter and the second parameter.
  • the following characters output characters corresponding to the first parameter and the second parameter:
  • Step S31 determining a direction or an angle of the terminal movement indicated by the first track point set and a corresponding direction stored by the terminal or Whether the angles match;
  • Step S32 When the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the direction or angle of the terminal movement indicated by the second track point set and the corresponding direction stored by the terminal. Or whether the angle matches;
  • Step S33 when the direction or angle of movement of the terminal indicated by the second track point set matches the corresponding direction or angle stored by the terminal, output the direction of the terminal movement indicated by the first track point set and the second track.
  • the point set indicates the character corresponding to the direction or angle of movement of the terminal.
  • characters can be output by the movement of the terminal. Specifically, if the gesture stored in the terminal is first moved to the right and then moved upward by 90 degrees to be symbol deleted, the direction of the terminal movement indicated by the first track point set is used to determine whether the terminal moves to the right, and then according to the The angle of the terminal movement indicated by the two track point sets determines whether to slide upward by 90 degrees, and if so, it is determined to be deleted when the terminal needs to output the characters.
  • Step S31 involves determining whether the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal. In an optional implementation manner, when the direction or angle of movement of the terminal indicated by the first track point set does not match the corresponding direction or angle stored by the terminal, determining to continue to determine the terminal movement indicated by the second track point set. Whether the direction or angle matches the corresponding direction or angle stored by the terminal, and outputs the second track point when the direction or angle of the terminal movement indicated by the second track point set matches the corresponding direction or angle stored by the terminal The set indicates all characters corresponding to the direction or angle of movement of the terminal.
  • all the results matching the terminal movement trajectory may be matched according to the second gesture for the user to select. , to improve the user experience.
  • Step S32 when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the direction or angle of the terminal movement indicated by the second track point set and the corresponding direction stored by the terminal. Whether the angles match or not, in an optional implementation manner of the present invention, when the direction or angle of the terminal movement indicated by the second track point set does not match the corresponding direction or angle stored by the terminal, the output is indicated by the first track point set indication. All characters corresponding to the direction or angle of the terminal movement.
  • the embodiment of the present invention further includes: when the three-dimensional coordinates of the track point of the terminal moving track acquired in the specified time does not change, the method of acquiring the terminal moving according to the track point may be completed in the following manner.
  • a parameter and a second parameter determining a fourth region having the most track points in the first track point set in the three-dimensional coordinates in which the terminal is located, wherein the fourth region is in the first coordinate axis of the three-dimensional coordinates The plane in which the second coordinate axis is located; the three-dimensional coordinates of the fourth region and the terminal at the start time of the predetermined time are compared, and the direction or angle of the terminal movement indicated by the first track point set is obtained.
  • the specified time involved in this step may be a time delay greater than 0.5 seconds.
  • the outputting the character corresponding to the first parameter and the second parameter further includes: determining whether the direction of the terminal movement indicated by the first track point set matches the direction or angle stored by the terminal; When the direction or angle of the terminal movement indicated by the point set matches the corresponding direction or angle stored by the terminal, the output and the first track point set indication The terminal moves in the direction or angle corresponding to all characters.
  • the track point of the movement track of the terminal may be displayed on the screen, and the method may be used to confirm whether the motion track is correct. If it is not correct, you can correct the user's input habits.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a character output device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the device includes: an acquisition module 22 configured to collect a track point of a movement track of the terminal; and an acquisition module 24 configured to be based on the track Obtaining a first parameter and a second parameter of the terminal movement; the output module 26 is configured to output the first parameter and the second parameter when the first parameter and the second parameter match the parameter stored by the terminal Corresponding characters.
  • the first parameter and the second parameter include a direction or an angle at which the terminal moves.
  • FIG. 3 is a block diagram of an optional structure of an output device for a character according to an embodiment of the present invention.
  • the device is related to the acquisition module 22 of FIG. 2, wherein the acquisition module 22 includes: a first acquisition unit 32. And a first track point set configured to collect a movement track of the terminal from a start time of the predetermined time to a first specified time by a preset sampling frequency, wherein the first specified time is before the end time of the predetermined time;
  • the unit 34 is configured to collect, by the preset sampling frequency, a second set of track points of the terminal movement trajectory between the second designated time and the end time of the predetermined time, wherein the second specified time is at the end time of the predetermined time
  • the first specified time is before the second specified time; wherein the first track point set and the second track point set respectively comprise a plurality of track points moved by the terminal.
  • FIG. 4 is a block diagram of an optional structure of an output device for a character according to an embodiment of the present invention.
  • the device is related to the acquisition module 24 of FIG. 2, wherein the acquisition module 24 includes: a first determining unit 41, And determining, in the three-dimensional coordinates of the terminal, a first region having the most track points in the first track point set, wherein the first coordinate axis and the second coordinate axis of the first region in the three-dimensional coordinates are In the in-plane; the first obtaining unit 42 is configured to compare the three-dimensional coordinates of the first region and the terminal at the start time of the predetermined time, to obtain a direction or an angle of movement of the terminal indicated by the first track point set; a determining unit 43 configured to determine a second region in the set of second track points in which the second track point is located in the three-dimensional coordinates of the terminal, wherein the first coordinate axis of the second region in the three-dimensional coordinates In a plane in which the second coordinate axis is located
  • FIG. 5 is a block diagram 3 of an optional structure of an output device for a character according to an embodiment of the present invention. As shown in FIG. 5, the device is related to the output module 26 of FIG. 2, wherein the output module 26 includes: a first determining unit 52, setting In order to determine whether the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal; the second determining unit 54 is configured to move the terminal indicated by the first track point set.
  • the first output unit 56 When the direction or angle of movement of the terminal indicated by the second track point set matches the corresponding direction or angle stored by the terminal, outputting the direction of the terminal movement indicated by the first track point set and the second track
  • the point set indicates the character corresponding to the direction or angle of movement of the terminal.
  • FIG. 6 is a block diagram showing an optional structure of an output device for a character according to an embodiment of the present invention.
  • the output module 26 further includes: a third determining unit 62 configured to indicate the set at the first track point set. When the direction or angle of the terminal movement does not match the corresponding direction or angle stored by the terminal, it is determined whether the direction or angle of the terminal movement indicated by the second track point set matches the corresponding direction or angle stored by the terminal;
  • the output unit 64 is configured to output, when the direction or angle of movement of the terminal indicated by the second set of track points matches the corresponding direction or angle stored by the terminal, output a direction of movement of the terminal indicated by the second set of track points or All characters corresponding to the angle.
  • the output module 26 further includes: a fourth determining unit 72, configured to be indicated at the first track point set.
  • a fourth determining unit 72 configured to be indicated at the first track point set.
  • the third output unit 74 is configured to output and the first track when the direction or angle of the terminal movement indicated by the second track point set does not match the corresponding direction or angle stored by the terminal.
  • FIG. 8 is a block diagram of an optional structure of a character output device according to an embodiment of the present invention.
  • the device is related to the acquisition module 24 of FIG. 2, wherein the acquisition module 24 includes: a third determining unit 82.
  • the acquisition module 24 includes: a third determining unit 82.
  • the acquisition module 24 includes: a third determining unit 82.
  • FIG. 9 is a block diagram showing an optional structure of an output device for a character according to an embodiment of the present invention.
  • the device includes an output module 26, wherein the output module 26 includes: a fifth determining unit 92, configured to determine Whether the direction of movement of the terminal indicated by the first track point set matches the direction or angle stored by the terminal; the fourth output unit 94 is configured to be in a direction or angle of movement of the terminal indicated by the first track point set and the When the corresponding direction or angle stored by the terminal matches, all characters corresponding to the direction or angle of the terminal movement indicated by the first track point set are output.
  • the output module 26 includes: a fifth determining unit 92, configured to determine Whether the direction of movement of the terminal indicated by the first track point set matches the direction or angle stored by the terminal; the fourth output unit 94 is configured to be in a direction or angle of movement of the terminal indicated by the first track point set and the When the corresponding direction or angle stored by the terminal matches, all characters corresponding to the direction or angle of the terminal movement indicated by
  • FIG. 10 is a block diagram of an optional structure of a character output device according to an embodiment of the present invention. As shown in FIG. 10, the device includes: in addition to all the modules in FIG. 2, a display module 102 configured to acquire according to the track point. Before the first parameter and the second parameter of the terminal move, the track point of the movement track of the terminal is displayed.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • FIG. 11 is a schematic flowchart of a method for outputting characters according to an alternative embodiment of the present invention. As shown in FIG. 11, the method includes the following steps:
  • Step S1101 classifying the trajectory of the mobile phone from the angle and the direction
  • Step S1102 establishing a correspondence relationship between each track and a specific input character
  • Step S1103 judging the angle and direction of the mobile phone movement by the acceleration sensor and the gravity sensor;
  • Step S1104 matching the trajectory, and mapping the trajectory to the corresponding execution command
  • step S1105 a corresponding instruction is output.
  • means moving backwards
  • means moving to the right
  • means moving forward; ⁇ : means moving to the left;
  • means sliding 90 degrees to the right; ⁇ : means sliding 90 degrees to the left;
  • means sliding up 90 degrees
  • means sliding down 90 degrees
  • the gesture combination method can be used for other functions, such as matching mobile phone commands and operations.
  • the method for inputting information includes the following steps: classifying according to the angle of the user's mobile phone; The gesture establishes a mapping relationship with the specific instruction of the input method; the gesture is judged by sensors such as gravity and acceleration; the gesture action is matched according to the angle and the direction; the specified character is matched and output.
  • FIG. 12 is a schematic diagram of a general process of character matching according to an alternative embodiment of the present invention. As shown in FIG. 12, the flow diagram includes the following steps:
  • Step S1201 the gesture input method is turned on
  • Step S1202 determining a direction and an angle of the mobile phone action gesture: obtaining a moving direction and an angle of the mobile phone by using the sensor, and setting a moving range of the angle and the direction, such as being within the moving range, determining the operation of the user gesture, wherein the gesture is The angular movement is specifically referred to Table 1; the gesture classification is a segmented trajectory judgment using four basic gestures and eight conventional gestures, and the corresponding combination list manner is shown in Table 1;
  • Step S1203 matching the corresponding characters of the estimation
  • Step S1204 after the user gesture input is completed, detecting whether there is a change in the direction and the angle of the mobile phone.
  • the mobile phone appears to have a delay of more than 0.5 seconds, it is determined that the user input is completed, that is, the matching of the last track is started;
  • Step S1205 after determining that the user has finished inputting, displaying the input motion track of the user on the screen, and displaying the matching character result, the user determines whether the motion track is correct, and corrects the user's input habit; if yes, step S1208 is performed; if not, Go to step S1206;
  • Step S1206 mapping the matched characters, and enumerating the input results for the user to select, and finally outputting the designated characters to the screen;
  • Step S1207 it is determined whether the listed similar track characters have no correct characters, if yes, step S1202; if not, step S1209;
  • step S1209 the correct character is selected.
  • an alternative embodiment of the present invention establishes a set of stereo matching trajectory directions.
  • 13 is a schematic diagram of a trajectory detection matching process according to an alternative embodiment of the present invention, wherein the operation of the trajectory of the mobile phone includes a three-dimensional stereo direction including changes in the x, y, and z-axis directions, as shown in FIG. Changes to detect the gestures of the phone, the specific steps and principles are as follows:
  • FIG. 14 is a stereoscopic trajectory detection diagram according to an alternative embodiment of the present invention. As shown in FIG. 14, the present invention divides the space into three directions of x, y, and z. When the phone clicks on the input box and turns on the gesture input method, this is the startup gesture detection;
  • Step S1302 after the acceleration sensor detects the mobile phone speed specification value, the system determines that the user has started the gesture operation, and records the initial position of the mobile phone movement as the mobile center position of the mobile phone, that is, the x, y, and z axis intersections;
  • Step S1303 When the mobile phone moves, the location track of the mobile phone is collected every 0.1 seconds, and the movement track of the entire mobile phone when the user inputs is recorded;
  • Step S1304 when detecting that the mobile phone has not moved for more than 0.5 seconds, it is determined that the user's input is completed, and the mobile track recorded by the mobile phone is analyzed and matched;
  • step S1305 the mobile phone samples at a frequency of 0.1 per second, and takes 2 seconds as a gesture action, that is, there are 20 sampling points.
  • the operation of the serial number of Table 1 is taken as an example, and the manual operation of the user includes the first right. Move + up 90 degrees; matching the phone track includes the following two steps:
  • the second step is to determine the position of the last 20% of the trajectory of the mobile phone. Taking the No. 31 gesture as an example, 20% of the trajectory points are two. When detecting the last two points on the plane formed on the right side of x and above the z-axis, When the angle is less than 15 degrees, and the horizontal distance of the z-axis is about 5 cm, it is determined that the trajectory of the user's final movement falls on the upper right plane of x and z;
  • Figures 15a-15b are exploded trajectory detection diagrams in accordance with an alternate embodiment of the present invention. Taking the x, y axis plane as an example, the gesture trajectory detection is divided into two steps:
  • the first step is to detect the area where the first 40% of the trajectory points fall.
  • the first step of the gesture has four kinds of trajectories, four kinds of trajectories: left, right, forward, and backward, as shown in Figure 15a.
  • the area with the most track points in the range of 30 degrees in the x and y directions is considered to be the change of the corresponding direction track.
  • the 30 degree area on the right side of the x axis is the most track point.
  • the area that can match the gesture-compliant operation includes gestures 26 to 32;
  • the second step of the test is to judge the last 20% of the track points falling into the area, which is introduced in the x and y planes of Figure 15b.
  • the track point falls at most into the area of the center circle of the x and y axes (directly 5cm). We believe that the gesture finally returns to the origin, and the gestures corresponding to the corresponding operation are 2, 9, 20, and 27. As shown in the above steps, the judgment gesture is 27 ;
  • the trajectory falls within 5cm of the x-axis and is not within the central circle. It is determined that the end user falls to the right of the x-axis.
  • the matching gestures include numbers 6, 28, combined with the first detection, and the judgment is the 28th gesture;
  • the gesture trajectory of the user can be determined.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs the above steps S1, S2, S3 according to the stored program code in the storage medium.
  • a track point for collecting a movement track of a terminal within a predetermined time period is adopted; a direction and/or an angle of movement of the terminal in the predetermined time is obtained according to the track point by a preset rule; and the terminal is at the predetermined
  • the moving direction and/or the angle is matched with the direction and/or the angle stored by the terminal, the character corresponding to the direction and/or angle stored by the terminal is output, and the click position of the input character through the touch screen is solved in the related art.
  • Incorrect problems in turn, achieve the effect that the user can operate the characters by gestures without operating the screen.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the foregoing technical solution provided by the embodiment of the present invention is applied to a character output process, in which a track point of a moving track of a collecting terminal is used; a first parameter and a second parameter of the moving of the terminal are acquired according to the track point; And when the second parameter is matched with the parameter stored by the terminal, the manner of outputting the character corresponding to the first parameter and the second parameter solves the problem that the click position of the input character through the touch screen is incorrect in the related art, thereby achieving The user can achieve the effect of inputting characters by gestures without operating the screen.

Abstract

Disclosed are a character output method and apparatus, the method comprising: collecting trajectory points of a trajectory of movement of a terminal (S102); acquiring a first parameter and a second parameter of movement of the terminal according to the trajectory points (S104); and outputting characters corresponding to the first parameter and the second parameter when there is a matching of the first parameter and the second parameter with parameters stored in the terminal (S106). Through the method, the problem of incorrect click positions when characters are input by clicks on a touch screen in related arts is solved, and further the effect is achieved that users can input characters by means of gestures, without operating the screen.

Description

字符的输出方法及装置Character output method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种字符的输出方法及装置。The present invention relates to the field of communications, and in particular to a method and apparatus for outputting characters.
背景技术Background technique
随着人民生活水平质量的提高和移动通信技术的飞速发展,越来越多的人们使用手机上网,办公,发送信息等。手机作为一种便携式终端电子产品,具有多媒体、智能输入和智能输出功能,同时用户需要分享、发送一些文字信息,目前传统的输入法包括虚拟键盘、实体键盘、触摸屏手势输入,但由于手机屏幕大小有限,输入键盘大小有限,触摸屏表面操作不便等原因,同时对人体视觉和人体点击屏幕精确性有较高要求,无论是人手动点击还是输入笔点击,用户往往在输入时出现点击位置不正确,输入不灵敏等问题,给用户带来了较大不便。With the improvement of people's living standards and the rapid development of mobile communication technologies, more and more people use mobile phones to access the Internet, work, and send information. As a portable terminal electronic product, mobile phone has multimedia, intelligent input and intelligent output functions. At the same time, users need to share and send some text information. At present, traditional input methods include virtual keyboard, physical keyboard and touch screen gesture input, but due to the screen size of mobile phone Limited, the input keyboard size is limited, the touch screen surface is inconvenient to operate, etc., and the accuracy of human body vision and human body click screen is high. Whether it is a person manually clicking or inputting a pen click, the user often has an incorrect click position when inputting. The input is insensitive and other problems, causing great inconvenience to the user.
针对相关技术中,通过触摸屏点击输入字符存在点击位置不正确的问题,尚未提出有效的解决方案。In the related art, the problem that the input position is incorrect by clicking on the input character through the touch screen has not yet proposed an effective solution.
发明内容Summary of the invention
本发明提供了一种字符的输出方法及装置,以至少解决相关技术中通过触摸屏点击输入字符存在点击位置不正确的问题。The invention provides a method and a device for outputting characters, so as to at least solve the problem that the click position of the input characters through the touch screen is incorrect in the related art.
根据本发明实施例的一个方面,提供了一种字符的输出方法,包括:采集终端移动轨迹的轨迹点;依据所述轨迹点获取所述终端移动的第一参数和第二参数;在所述第一参数和所述第二参数与所述终端存储的参数匹配时,输出与所述第一参数和所述第二参数对应的字符。According to an aspect of the present invention, a method for outputting a character is provided, including: collecting a track point of a movement track of a terminal; acquiring a first parameter and a second parameter of the terminal movement according to the track point; When the first parameter and the second parameter match the parameters stored by the terminal, characters corresponding to the first parameter and the second parameter are output.
可选地,所述第一参数和所述第二参数包括所述终端移动的方向或角度。Optionally, the first parameter and the second parameter include a direction or an angle at which the terminal moves.
可选地,所述采集预定时间内终端移动轨迹的轨迹点包括:通过预设采样频率采集从所述预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合,其中,所述第一指定时刻在所述预定时间的结束时刻之前;通过所述预设采样频率采集第二指定时刻到所述预定时间的结束时刻之间终端移动轨迹的第二轨迹点集合,其中,所述第二指定时刻在所述预定时间的结束时刻之前,所述第一指定时刻在所述第二指定时刻之前;其中,所述第一轨迹点集合和所述第二轨迹点集合分别包括终端移动的多个轨迹点。Optionally, the acquiring a trajectory point of the terminal movement trajectory within a predetermined time period includes: collecting, by using a preset sampling frequency, a first trajectory point set of the terminal movement trajectory from a start time of the predetermined time to a first specified time, wherein And the first specified time is before the end time of the predetermined time; and the second track point set of the terminal movement track is collected between the second designated time and the end time of the predetermined time by the preset sampling frequency, where The second specified time is before the end time of the predetermined time, the first specified time is before the second specified time; wherein the first track point set and the second track point set respectively Includes multiple track points for terminal movement.
可选地,所述依据所述轨迹点获取所述终端移动的第一参数和第二参数包括:确定在所述终端所处的三维坐标中所述第一轨迹点集合中的轨迹点最多的第一区域,其中,所述第一区域在所述三维坐标中的第一坐标轴和第二坐标轴所在的平面内;比较所述第一区域与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第一轨迹点集合指示的所述终端移动 的方向或角度;确定在所述终端所处的三维坐标中所述第二轨迹点集合中的轨迹点最多的第二区域,其中,所述第二区域在所述三维坐标中的所述第一坐标轴和所述第二坐标轴所在的平面内,或,确定在所述终端所处的所述三维坐标中所述第二轨迹点集合中的轨迹点最多的第三区域;其中,所述第三区域在所述三维坐标中的第三坐标轴和所述第一坐标轴所在的平面,或所述第三坐标轴和所述第二坐标轴所在的平面;比较所述第二区域或所述第三区域,与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第二轨迹点集合指示的所述终端移动的方向或角度。Optionally, the acquiring the first parameter and the second parameter of the terminal movement according to the track point includes: determining that a track point in the first track point set is the most in a three-dimensional coordinate where the terminal is located a first area, wherein the first area is in a plane in which the first coordinate axis and the second coordinate axis are located; comparing the first area with the terminal at a start time of the predetermined time The three-dimensional coordinates, the terminal movement indicated by the first set of track points is obtained a direction or angle; determining a second region having the most track points in the second set of track points in the three-dimensional coordinates in which the terminal is located, wherein the second region is in the three-dimensional coordinates a plane in which a coordinate axis and the second coordinate axis are located, or a third region in which the track point in the second track point set is the most in the three-dimensional coordinates in which the terminal is located; a third coordinate axis of the third region in the three-dimensional coordinates and a plane in which the first coordinate axis is located, or a plane in which the third coordinate axis and the second coordinate axis are located; comparing the second region Or the third area, and the three-dimensional coordinates of the terminal at the start time of the predetermined time, the direction or angle of the terminal movement indicated by the second track point set is obtained.
可选地,所述输出与所述第一参数和所述第二参数对应的字符包括:判断所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向以及所述第二轨迹点集合指示的所述终端移动的方向或角度对应的字符。Optionally, the outputting the character corresponding to the first parameter and the second parameter includes: determining a direction or an angle of movement of the terminal indicated by the first track point set and a corresponding direction stored by the terminal Whether the angles match or not; when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the terminal indicated by the second track point set Whether the direction or angle of movement matches the corresponding direction or angle stored by the terminal; when the direction or angle of movement of the terminal indicated by the second set of track points matches the corresponding direction or angle stored by the terminal, the output a character corresponding to the direction in which the terminal is moved by the first set of track points and the direction or angle of the terminal movement indicated by the second set of track points.
可选地,在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第二轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。Optionally, when the direction or angle of the terminal movement indicated by the first track point set does not match the corresponding direction or angle stored by the terminal, continue to determine the terminal indicated by the second track point set. Whether the direction or angle of movement matches the corresponding direction or angle stored by the terminal; when the direction or angle of movement of the terminal indicated by the second set of track points matches the corresponding direction or angle stored by the terminal, the output All characters corresponding to the direction or angle of movement of the terminal indicated by the second set of track points.
可选地,在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。Optionally, when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the terminal movement indicated by the second track point set. Whether the direction or angle matches the corresponding direction or angle stored by the terminal; when the direction or angle of the terminal movement indicated by the second track point set does not match the corresponding direction or angle stored by the terminal, the output All characters corresponding to the direction or angle of movement of the terminal indicated by the first set of track points.
可选地,在所述通过预设采样频率采集从所述预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合之后,所述方法还包括:在指定时间内采集的所述终端移动轨迹的轨迹点的三维坐标未变化时,所述依据所述轨迹点获取所述终端移动的第一参数和第二参数:确定在所述终端所处的三维坐标中所述第一轨迹点集合中的轨迹点最多的第四区域,其中,所述第四区域在所述三维坐标中的第一坐标轴和第二坐标轴所在的平面内;比较所述第四区域与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第一轨迹点集合指示的所述终端移动的方向或角度。Optionally, after the collecting the first track point set of the terminal movement track from the start time of the predetermined time to the first specified time by using the preset sampling frequency, the method further includes: collecting in a specified time When the three-dimensional coordinates of the track point of the terminal movement track are not changed, the first parameter and the second parameter of the terminal movement are obtained according to the track point: determining the three-dimensional coordinates in the terminal a fourth region having the largest number of track points in the first track point set, wherein the fourth region is in a plane in which the first coordinate axis and the second coordinate axis are located in the three-dimensional coordinates; comparing the fourth region with The direction or angle of the terminal movement indicated by the first track point set is obtained by the terminal at a three-dimensional coordinate of the start time of the predetermined time.
可选地,所述输出与所述第一参数和所述第二参数对应的字符包括:判断所述第一轨迹点集合指示的所述终端移动的方向与所述终端存储的方向或角度是否匹配;在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。 Optionally, the outputting the character corresponding to the first parameter and the second parameter includes: determining whether a direction of the terminal movement indicated by the first track point set and a direction or an angle stored by the terminal are Matching; when the direction or angle of movement of the terminal indicated by the first set of track points matches the corresponding direction or angle stored by the terminal, outputting a direction of movement of the terminal indicated by the first set of track points Or all characters corresponding to the angle.
可选地,在依据所述轨迹点获取所述终端移动的第一参数和第二参数之前,所述方法还包括:显示所述终端移动轨迹的轨迹点。Optionally, before acquiring the first parameter and the second parameter of the terminal movement according to the track point, the method further includes: displaying a track point of the terminal moving track.
根据本发明实施例的另一方面,提供了一种字符的输出装置,包括:采集模块,设置为采集终端移动轨迹的轨迹点;获取模块,设置为依据所述轨迹点获取所述终端移动的第一参数和第二参数;输出模块,设置为在所述第一参数和所述第二参数与所述终端存储的参数匹配时,输出与所述第一参数和所述第二参数对应的字符。According to another aspect of the present invention, an output device for a character is provided, including: an acquisition module, configured to collect a track point of a movement track of the terminal; and an acquisition module configured to acquire the movement of the terminal according to the track point a first parameter and a second parameter; the output module is configured to output, when the first parameter and the second parameter match the parameter stored by the terminal, output corresponding to the first parameter and the second parameter character.
可选地,所述第一参数和所述第二参数包括所述终端移动的方向或角度。Optionally, the first parameter and the second parameter include a direction or an angle at which the terminal moves.
可选地,所述采集模块包括:第一采集单元,设置为通过预设采样频率采集从预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合,其中,所述第一指定时刻在所述预定时间的结束时刻之前;第二采集单元,设置为通过所述预设采样频率采集第二指定时刻到所述预定时间的结束时刻之间终端移动轨迹的第二轨迹点集合,其中,所述第二指定时刻在所述预定时间的结束时刻之前,所述第一指定时刻在所述第二指定时刻之前;其中,所述第一轨迹点集合和所述第二轨迹点集合分别包括终端移动的多个轨迹点。Optionally, the collecting module includes: a first collecting unit, configured to collect, by using a preset sampling frequency, a first set of track points of a terminal moving track from a start time of a predetermined time to a first specified time, where The first designated time is before the end time of the predetermined time; the second collecting unit is configured to collect the second track of the terminal moving track between the second designated time and the ending time of the predetermined time by the preset sampling frequency a set of points, wherein the second specified time is before an end time of the predetermined time, the first specified time is before the second specified time; wherein the first set of track points and the second The set of track points respectively includes a plurality of track points moved by the terminal.
可选地,所述获取模块包括:第一确定单元,设置为确定在所述终端所处的三维坐标中所述第一轨迹点集合中的轨迹点最多的第一区域,其中,所述第一区域在所述三维坐标中的第一坐标轴和第二坐标轴所在的平面内;第一获取单元,设置为比较所述第一区域与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第一轨迹点集合指示的所述终端移动的方向或角度;第二确定单元,设置为确定在所述终端所处的三维坐标中所述第二轨迹点集合中的轨迹点最多的第二区域,其中,所述第二区域在所述三维坐标中的所述第一坐标轴和所述第二坐标轴所在的平面内,或,第三确定单元,设置为确定在所述终端所处的所述三维坐标中所述第二轨迹点集合中的轨迹点最多的第三区域;其中,所述第三区域在所述三维坐标中的第三坐标轴和所述第一坐标轴所在的平面,或所述第三坐标轴和所述第二坐标轴所在的平面;第二获取单元,设置为比较所述第二区域或所述第三区域,与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第二轨迹点集合指示的所述终端移动的方向或角度。Optionally, the acquiring module includes: a first determining unit, configured to determine a first region that has the most track points in the first track point set in the three-dimensional coordinates in which the terminal is located, where the first An area is in a plane in which the first coordinate axis and the second coordinate axis are located; the first acquisition unit is configured to compare the first area with the terminal at a start time of the predetermined time a second direction determining unit, configured to determine a track point in the second track point set in the three-dimensional coordinates of the terminal a second area that is the most, wherein the second area is in a plane in which the first coordinate axis and the second coordinate axis in the three-dimensional coordinates are located, or a third determining unit is configured to determine a third region having the most track points in the second set of track points in the three-dimensional coordinates in which the terminal is located; wherein a third coordinate axis of the third region in the three-dimensional coordinates and the first Axis a plane in which the third coordinate axis and the second coordinate axis are located; a second acquisition unit configured to compare the second region or the third region with the terminal at the predetermined The three-dimensional coordinates of the start time of the time, the direction or angle of the terminal movement indicated by the second track point set is obtained.
可选地,所述输出模块包括:第一判断单元,设置为判断所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;第二判断单元,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;第一输出单元,设置为在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向以及所述第二轨迹点集合指示的所述终端移动的方向或角度对应的字符。Optionally, the output module includes: a first determining unit, configured to determine whether a direction or an angle of the terminal movement indicated by the first track point set matches a corresponding direction or an angle stored by the terminal; a determining unit, configured to continue to determine the terminal indicated by the second track point set when a direction or an angle of movement of the terminal indicated by the first track point set matches a corresponding direction or angle stored by the terminal Whether the direction or angle of movement matches the corresponding direction or angle stored by the terminal; the first output unit is configured to correspond to the direction or angle of movement of the terminal indicated by the second set of track points and the storage of the terminal When the direction or the angle is matched, a character corresponding to the direction in which the terminal is moved by the first track point set and the direction or angle of the terminal movement indicated by the second track point set is output.
可选地,所述输出模块还包括:第三判断单元,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;第 二输出单元,设置为在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第二轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。Optionally, the output module further includes: a third determining unit, configured to: when the direction or angle of the terminal movement indicated by the first track point set does not match the corresponding direction or angle stored by the terminal, And determining whether the direction or angle of the terminal movement indicated by the second track point set matches the corresponding direction or angle stored by the terminal; a second output unit, configured to output, when the direction or angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by the terminal, outputting the indication indicated by the second set of track points All characters corresponding to the direction or angle of the terminal movement.
可选地,所述输出模块还包括:第四判断单元,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;第三输出单元,设置为在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。Optionally, the output module further includes: a fourth determining unit, configured to continue when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal Determining whether a direction or an angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by the terminal; and a third output unit configured to be in the set indicated by the second set of track points When the direction or angle of movement of the terminal does not match the corresponding direction or angle stored by the terminal, all characters corresponding to the direction or angle of the terminal movement indicated by the first track point set are output.
可选地,所述获取模块包括:第三确定单元,在所述通过预设采样频率采集从所述预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合之后,在指定时间内采集的所述终端移动轨迹的轨迹点的三维坐标未变化时,确定在所述终端所处的三维坐标中所述第一轨迹点集合中的轨迹点最多的第四区域,其中,所述第四区域在所述三维坐标中的第一坐标轴和第二坐标轴所在的平面内;第三获取单元,设置为比较所述第四区域与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第一轨迹点集合指示的所述终端移动的方向或角度。Optionally, the acquiring module includes: a third determining unit, after collecting, by using a preset sampling frequency, a first track point set of a terminal moving track from a start time of the predetermined time to a first specified time, Determining, in the three-dimensional coordinates of the terminal, the fourth region having the most track points in the first track point set in the three-dimensional coordinates in which the terminal is located, where the three-dimensional coordinates of the track point of the terminal movement track acquired in the specified time are not changed, wherein And the fourth area is in a plane in which the first coordinate axis and the second coordinate axis are located in the three-dimensional coordinates; and the third acquiring unit is configured to compare the fourth area with the terminal at the predetermined time The three-dimensional coordinates of the start time are obtained by the direction or angle of the terminal movement indicated by the first track point set.
可选地,所述输出模块还包括:第五判断单元,设置为判断所述第一轨迹点集合指示的所述终端移动的方向与所述终端存储的方向或角度是否匹配;第四输出单元,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。Optionally, the output module further includes: a fifth determining unit, configured to determine whether a direction of movement of the terminal indicated by the first track point set matches a direction or an angle stored by the terminal; and a fourth output unit And outputting, when the direction or angle of movement of the terminal indicated by the first track point set matches a corresponding direction or angle stored by the terminal, outputting the terminal movement indicated by the first track point set All characters corresponding to the direction or angle.
可选地,所述装置还包括:显示模块,设置为在依据所述轨迹点获取所述终端移动的第一参数和第二参数之前,显示所述终端移动轨迹的轨迹点。Optionally, the device further includes: a display module, configured to display a track point of the movement track of the terminal before acquiring the first parameter and the second parameter of the terminal movement according to the track point.
通过本发明实施例,采用采集终端移动轨迹的轨迹点;依据轨迹点获取该终端移动的第一参数和第二参数;在第一参数和该第二参数与终端存储的参数匹配时,输出与该第一参数和该第二参数对应的字符的方式,解决了相关技术中通过触摸屏点击输入字符存在点击位置不正确的问题,进而达到了用户可以不操作屏幕,通过手势动作达到输入字符的效果。According to the embodiment of the present invention, the track point of the moving track of the collecting terminal is adopted; the first parameter and the second parameter of the moving of the terminal are acquired according to the track point; when the first parameter and the second parameter match the parameter stored by the terminal, the output is The method of the first parameter and the character corresponding to the second parameter solves the problem that the click position of the input character through the touch screen is incorrect in the related art, thereby achieving the effect that the user can operate the character through the gesture action without operating the screen. .
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的字符的输出方法流程图;1 is a flow chart of a method for outputting characters according to an embodiment of the present invention;
图2是根据本发明实施例的字符的输出装置的结构框图;2 is a block diagram showing the structure of an output device of a character according to an embodiment of the present invention;
图3是根据本发明实施例的字符的输出装置的可选结构框图一; 3 is a block diagram 1 of an optional structure of a character output device according to an embodiment of the present invention;
图4是根据本发明实施例的字符的输出装置的可选结构框图二;4 is a block diagram 2 of an optional structure of an output device for a character according to an embodiment of the present invention;
图5是根据本发明实施例的字符的输出装置的可选结构框图三;FIG. 5 is a block diagram 3 of an optional structure of an output device for a character according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的字符的输出装置的可选结构框图四;6 is a block diagram 4 of an optional structure of an output device for a character according to an embodiment of the present invention;
图7是根据本发明实施例的字符的输出装置的可选结构框图五;7 is a block diagram 5 of an optional structure of an output device for a character according to an embodiment of the present invention;
图8是根据本发明实施例的字符的输出装置的可选结构框图六;8 is a block diagram 6 of an optional structure of a character output device according to an embodiment of the present invention;
图9是根据本发明实施例的字符的输出装置的可选结构框图七;9 is a block diagram 7 of an optional structure of an output device for a character according to an embodiment of the present invention;
图10是根据本发明实施例的字符的输出装置的可选结构框图八;10 is a block diagram VIII of an optional structure of an output device for a character according to an embodiment of the present invention;
图11是根据本发明可选实施例的字符的输出方法流程示意图;11 is a flow chart showing a method for outputting characters according to an alternative embodiment of the present invention;
图12是根据本发明可选实施例的字符匹配总流程示意图;FIG. 12 is a schematic diagram of a general flow of character matching according to an alternative embodiment of the present invention; FIG.
图13是根据本发明可选实施例的轨迹检测匹配流程示意图;FIG. 13 is a schematic diagram of a trajectory detection matching process according to an alternative embodiment of the present invention; FIG.
图14是根据本发明可选实施例的立体轨迹检测图;Figure 14 is a perspective view of a stereo trajectory according to an alternative embodiment of the present invention;
图15a~15b是根据本发明可选实施例的分解轨迹检测图。15a-15b are exploded trajectory detection diagrams in accordance with an alternate embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种字符的输出方法,图1是根据本发明实施例的字符的输出方法流程图,如图1所示,该流程包括如下步骤:In this embodiment, a method for outputting characters is provided. FIG. 1 is a flowchart of a method for outputting characters according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,采集终端移动轨迹的轨迹点;Step S102, collecting a track point of the movement track of the terminal;
步骤S104,依据轨迹点获取终端移动的第一参数和第二参数;Step S104, acquiring a first parameter and a second parameter of the terminal movement according to the track point;
步骤S106,在该第一参数和该第二参数与该终端存储的参数匹配时,输出与该第一参数和该第二参数对应的字符。Step S106: When the first parameter and the second parameter match the parameter stored by the terminal, output a character corresponding to the first parameter and the second parameter.
通过上述步骤S102至步骤S106,在采集终端移动轨迹的轨迹点后,依据轨迹点获取终端移动的第一参数和第二参数,然后将得到的第一参数和第二参数和终端存储的参数进行匹配,在匹配的情况下,输出与第一参数和第二参数对应的字符。也就是说,通过终端本身的移动轨迹作为字符输出的触发条件,而无需用户在终端的触摸屏上进行点击选择字符,进而解决了相关技术中通过触摸屏点击输入字符存在点击位置不正确的问题,达到了用户可以不操作屏幕,通过手势动作达到输入字符的效果。 After the trajectory point of the movement track of the terminal is collected, the first parameter and the second parameter of the terminal movement are acquired according to the track point, and then the obtained first parameter and the second parameter and the parameter stored by the terminal are performed. Matching, in the case of matching, outputting characters corresponding to the first parameter and the second parameter. That is to say, the movement trajectory of the terminal itself is used as the trigger condition for the character output, and the user does not need to click and select the character on the touch screen of the terminal, thereby solving the problem that the click position of the input character through the touch screen is incorrect in the related art, and the problem is reached. The user can achieve the effect of inputting characters by gestures without operating the screen.
可选地,在本实施例中,第一参数和第二参数包括该终端移动的方向或角度。Optionally, in this embodiment, the first parameter and the second parameter include a direction or an angle at which the terminal moves.
对于上述步骤S102中涉及到的采集终端移动轨迹的轨迹点的方式,在本发明可选的实施方式中,可以通过以下方式来实现:The manner of the trajectory point of the trajectory of the trajectory of the collection terminal involved in the above step S102 can be implemented in the following manner in an optional implementation manner of the present invention:
步骤S11:通过预设采样频率采集从预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合。需要说明的是,该步骤中涉及的第一指定时刻在该预定时间的结束时刻之前;Step S11: Collect a first set of track points of the terminal movement trajectory from a start time of the predetermined time to a first specified time by using a preset sampling frequency. It should be noted that the first specified time involved in the step is before the end time of the predetermined time;
步骤S12:通过预设采样频率采集第二指定时刻到该预定时间的结束时刻之间终端移动轨迹的第二轨迹点集合。需要说明的是,其中,该步骤中涉及的第二指定时刻在预定时间的结束时刻之前,而且第一指定时刻在第二指定时刻之前。Step S12: Collect a second set of track points of the terminal movement track between the second designated time and the end time of the predetermined time by using the preset sampling frequency. It should be noted that, wherein the second specified time involved in the step is before the end time of the predetermined time, and the first specified time is before the second specified time.
在本发明的可选实施方式中,步骤S11至步骤S12中涉及的第一轨迹点集合和第二轨迹点集合分别包括终端移动的多个轨迹点;涉及的预定采样频率可以是0.1个/每秒、0.01个/每秒等;对于其中的第一指定时刻和第二指定时刻可以根据需要设置,例如第一指定时刻可以是预定时间段内占2/5的时刻,第二指定时刻可以是预定时间段内占1/5的时刻。通过该方式获取的采样点可以作为判断终端在预定时间内移动的方向和/或角度的依据。In an optional implementation manner of the present invention, the first track point set and the second track point set involved in steps S11 to S12 respectively include a plurality of track points moved by the terminal; the predetermined sampling frequency involved may be 0.1/per. Second, 0.01/second, etc.; for the first specified time and the second specified time, it may be set as needed, for example, the first designated time may be a time of 2/5 in a predetermined time period, and the second specified time may be A time of 1/5 of the scheduled time period. The sampling points obtained by this method can be used as a basis for judging the direction and/or angle of the terminal to move within a predetermined time.
步骤S104涉及依据轨迹点获取终端移动的第一参数和第二参数,在本发明可选实施方式中,可以通过以下方式获取终端移动的第一参数和第二参数:Step S104 involves acquiring the first parameter and the second parameter of the terminal movement according to the track point. In an optional implementation manner of the present invention, the first parameter and the second parameter of the terminal movement may be obtained by:
步骤S21:确定在终端所处的三维坐标中第一轨迹点集合中的轨迹点最多的第一区域,其中,该第一区域在该三维坐标中的第一坐标轴和第二坐标轴所在的平面内;Step S21: determining a first region having the largest number of track points in the first track point set in the three-dimensional coordinates where the terminal is located, wherein the first coordinate axis and the second coordinate axis of the first region in the three-dimensional coordinates are located In-plane
步骤S22:比较第一区域与终端在预定时间的开始时刻的三维坐标,得到第一轨迹点集合指示的该终端移动的方向或角度;Step S22: Comparing the three-dimensional coordinates of the first region and the terminal at the start time of the predetermined time, and obtaining the direction or angle of the terminal movement indicated by the first track point set;
步骤S23:确定在终端所处的三维坐标中第二轨迹点集合中的轨迹点最多的第二区域,其中,该第二区域在该三维坐标中的该第一坐标轴和该第二坐标轴所在的平面内,或者确定在该终端所处的该三维坐标中该第二轨迹点集合中的轨迹点最多的第三区域。需要说明的是,该步骤中涉及的第三区域在三维坐标中的第三坐标轴和该第一坐标轴所在的平面,或该第三坐标轴和该第二坐标轴所在的平面,在一个可选的实施方式中,该步骤中的第二区域可以是三维坐标中的XOY平面,第三区域可以是XOZ或者YOZ平面。Step S23: determining a second region having the largest number of track points in the second track point set in the three-dimensional coordinates where the terminal is located, wherein the first coordinate axis and the second coordinate axis of the second region in the three-dimensional coordinates In the plane in which it is located, or determining the third region in the set of second track points in which the track point is the most in the three-dimensional coordinates of the terminal. It should be noted that the third coordinate axis of the third region involved in the step is the plane where the first coordinate axis is located, or the plane where the third coordinate axis and the second coordinate axis are located, In an optional implementation manner, the second area in the step may be an XOY plane in three-dimensional coordinates, and the third area may be an XOZ or YOZ plane.
步骤S24:比较第二区域或第三区域,与终端在预定时间的开始时刻的三维坐标,得到第二轨迹点集合指示的该终端移动的方向或角度。在一个可选的实施方式中,可以通过第一轨迹点确定终端移动的方向,通过第一轨迹点确定终端的移动角度。Step S24: Comparing the second region or the third region with the three-dimensional coordinates of the terminal at the start time of the predetermined time, obtaining the direction or angle of the terminal movement indicated by the second track point set. In an optional implementation manner, the direction of the terminal movement may be determined by the first track point, and the moving angle of the terminal is determined by the first track point.
步骤S106涉及在该第一参数和该第二参数与该终端存储的参数匹配时,输出与该第一参数和该第二参数对应的字符,在本发明一个可选的实施方式中,可以通过以下方式输出与该第一参数和该第二参数对应的字符:Step S106, when the first parameter and the second parameter are matched with the parameter stored by the terminal, output a character corresponding to the first parameter and the second parameter. In an optional implementation manner of the present invention, The following characters output characters corresponding to the first parameter and the second parameter:
步骤S31:判断第一轨迹点集合指示的终端移动的方向或角度与该终端存储的对应方向或 角度是否匹配;Step S31: determining a direction or an angle of the terminal movement indicated by the first track point set and a corresponding direction stored by the terminal or Whether the angles match;
步骤S32:在第一轨迹点集合指示的终端移动的方向或角度与终端存储的对应方向或角度匹配时,继续判断第二轨迹点集合指示的终端移动的方向或角度与该终端存储的对应方向或角度是否匹配;Step S32: When the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the direction or angle of the terminal movement indicated by the second track point set and the corresponding direction stored by the terminal. Or whether the angle matches;
步骤S33:在第二轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度匹配时,输出与该第一轨迹点集合指示的该终端移动的方向以及该第二轨迹点集合指示的该终端移动的方向或角度对应的字符。Step S33: when the direction or angle of movement of the terminal indicated by the second track point set matches the corresponding direction or angle stored by the terminal, output the direction of the terminal movement indicated by the first track point set and the second track. The point set indicates the character corresponding to the direction or angle of movement of the terminal.
通过上述分段式的轨迹匹配规则,可以通过终端的移动输出字符。具体的,如果在终端中预先存储的手势先向右移动和再向上滑动90度映射为符号回删,通过上述第一轨迹点集合指示的终端移动的方向判断终端是否向右移动,然后根据第二轨迹点集合指示的终端移动的角度判断是否向上滑动90度,如果是,则判断为终端需要输出的字符时回删。Through the segmented trajectory matching rule described above, characters can be output by the movement of the terminal. Specifically, if the gesture stored in the terminal is first moved to the right and then moved upward by 90 degrees to be symbol deleted, the direction of the terminal movement indicated by the first track point set is used to determine whether the terminal moves to the right, and then according to the The angle of the terminal movement indicated by the two track point sets determines whether to slide upward by 90 degrees, and if so, it is determined to be deleted when the terminal needs to output the characters.
步骤S31涉及到判断第一轨迹点集合指示的终端移动的方向或角度与该终端存储的对应方向或角度是否匹配。在一个可选的实施方式中,在第一轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度不匹配时,继续判断第二轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度是否匹配,在该第二轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度匹配时,输出与该第二轨迹点集合指示的该终端移动的方向或角度对应的所有字符。Step S31 involves determining whether the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal. In an optional implementation manner, when the direction or angle of movement of the terminal indicated by the first track point set does not match the corresponding direction or angle stored by the terminal, determining to continue to determine the terminal movement indicated by the second track point set. Whether the direction or angle matches the corresponding direction or angle stored by the terminal, and outputs the second track point when the direction or angle of the terminal movement indicated by the second track point set matches the corresponding direction or angle stored by the terminal The set indicates all characters corresponding to the direction or angle of movement of the terminal.
可选地,在本实施例中,在上述步骤中即使终端的第一手势与在终端预先存储的第一手势不同,也可以根据第二手势匹配与终端移动轨迹匹配的所有结果供用户选择,提高了用户的体验度。Optionally, in this embodiment, in the foregoing step, even if the first gesture of the terminal is different from the first gesture pre-stored in the terminal, all the results matching the terminal movement trajectory may be matched according to the second gesture for the user to select. , to improve the user experience.
步骤S32涉及在第一轨迹点集合指示的终端移动的方向或角度与终端存储的对应方向或角度匹配时,继续判断第二轨迹点集合指示的终端移动的方向或角度与该终端存储的对应方向或角度是否匹配,在本发明的可选实施方式中,在第二轨迹点集合指示的终端移动的方向或角度与终端存储的对应方向或角度不匹配时,输出与第一轨迹点集合指示的该终端移动的方向或角度对应的所有字符。Step S32, when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the direction or angle of the terminal movement indicated by the second track point set and the corresponding direction stored by the terminal. Whether the angles match or not, in an optional implementation manner of the present invention, when the direction or angle of the terminal movement indicated by the second track point set does not match the corresponding direction or angle stored by the terminal, the output is indicated by the first track point set indication. All characters corresponding to the direction or angle of the terminal movement.
通过步骤S11获取第一轨迹点集合之后,本发明实施例还包括:在指定时间内采集的终端移动轨迹的轨迹点的三维坐标未变化时,可以通过以下方式完成依据轨迹点获取终端移动的第一参数和第二参数,:确定在该终端所处的三维坐标中第一轨迹点集合中的轨迹点最多的第四区域,其中,该第四区域在该三维坐标中的第一坐标轴和第二坐标轴所在的平面内;比较第四区域与终端在该预定时间的开始时刻的三维坐标,得到该第一轨迹点集合指示的该终端移动的方向或角度。需要说明的是,该步骤中涉及的指定时间可以是大于0.5秒的时间延迟。After the first track point set is obtained in step S11, the embodiment of the present invention further includes: when the three-dimensional coordinates of the track point of the terminal moving track acquired in the specified time does not change, the method of acquiring the terminal moving according to the track point may be completed in the following manner. a parameter and a second parameter: determining a fourth region having the most track points in the first track point set in the three-dimensional coordinates in which the terminal is located, wherein the fourth region is in the first coordinate axis of the three-dimensional coordinates The plane in which the second coordinate axis is located; the three-dimensional coordinates of the fourth region and the terminal at the start time of the predetermined time are compared, and the direction or angle of the terminal movement indicated by the first track point set is obtained. It should be noted that the specified time involved in this step may be a time delay greater than 0.5 seconds.
在一个可选的实施方式中,输出与第一参数和第二参数对应的字符还包括:判断第一轨迹点集合指示的终端移动的方向与终端存储的方向或角度是否匹配;在第一轨迹点集合指示的终端移动的方向或角度与终端存储的对应方向或角度匹配时,输出与第一轨迹点集合指示 的该终端移动的方向或角度对应的所有字符。In an optional implementation manner, the outputting the character corresponding to the first parameter and the second parameter further includes: determining whether the direction of the terminal movement indicated by the first track point set matches the direction or angle stored by the terminal; When the direction or angle of the terminal movement indicated by the point set matches the corresponding direction or angle stored by the terminal, the output and the first track point set indication The terminal moves in the direction or angle corresponding to all characters.
可选地,在本实施例中,在依据轨迹点获取终端移动的第一参数和第二参数之前,可以在屏幕上显示终端移动轨迹的轨迹点,通过该方法可以使得用户确认运动轨迹是否正确,如果不正确,可以修正用户的输入习惯。Optionally, in this embodiment, before acquiring the first parameter and the second parameter of the terminal movement according to the track point, the track point of the movement track of the terminal may be displayed on the screen, and the method may be used to confirm whether the motion track is correct. If it is not correct, you can correct the user's input habits.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种字符的输出装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a character output device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的字符的输出装置的结构框图,如图2所示,该装置包括:采集模块22,设置为采集终端移动轨迹的轨迹点;获取模块24,设置为依据该轨迹点获取该终端移动的第一参数和第二参数;输出模块26,设置为在该第一参数和该第二参数与该终端存储的参数匹配时,输出与该第一参数和该第二参数对应的字符。2 is a structural block diagram of an output device for a character according to an embodiment of the present invention. As shown in FIG. 2, the device includes: an acquisition module 22 configured to collect a track point of a movement track of the terminal; and an acquisition module 24 configured to be based on the track Obtaining a first parameter and a second parameter of the terminal movement; the output module 26 is configured to output the first parameter and the second parameter when the first parameter and the second parameter match the parameter stored by the terminal Corresponding characters.
可选地,在本实施例中,第一参数和第二参数包括终端移动的方向或角度。Optionally, in this embodiment, the first parameter and the second parameter include a direction or an angle at which the terminal moves.
图3是根据本发明实施例的字符的输出装置的可选结构框图一,如图3所示,该装置涉及图2中的采集模块22,其中该采集模块22包括:第一采集单元32,设置为通过预设采样频率采集从预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合,其中,该第一指定时刻在该预定时间的结束时刻之前;第二采集单元34,设置为通过该预设采样频率采集该第二指定时刻到该预定时间的结束时刻之间终端移动轨迹的第二轨迹点集合,其中,该第二指定时刻在该预定时间的结束时刻之前,该第一指定时刻在该第二指定时刻之前;其中,该第一轨迹点集合和该第二轨迹点集合分别包括终端移动的多个轨迹点。FIG. 3 is a block diagram of an optional structure of an output device for a character according to an embodiment of the present invention. As shown in FIG. 3, the device is related to the acquisition module 22 of FIG. 2, wherein the acquisition module 22 includes: a first acquisition unit 32. And a first track point set configured to collect a movement track of the terminal from a start time of the predetermined time to a first specified time by a preset sampling frequency, wherein the first specified time is before the end time of the predetermined time; The unit 34 is configured to collect, by the preset sampling frequency, a second set of track points of the terminal movement trajectory between the second designated time and the end time of the predetermined time, wherein the second specified time is at the end time of the predetermined time The first specified time is before the second specified time; wherein the first track point set and the second track point set respectively comprise a plurality of track points moved by the terminal.
图4是根据本发明实施例的字符的输出装置的可选结构框图二,如图4所示,该装置涉及图2中的获取模块24,其中该获取模块24包括:第一确定单元41,设置为确定在该终端所处的三维坐标中该第一轨迹点集合中的轨迹点最多的第一区域,其中,该第一区域在该三维坐标中的第一坐标轴和第二坐标轴所在的平面内;第一获取单元42,设置为比较该第一区域与该终端在该预定时间的开始时刻的三维坐标,得到该第一轨迹点集合指示的该终端移动的方向或角度;第二确定单元43,设置为确定在该终端所处的三维坐标中该第二轨迹点集合中的轨迹点最多的第二区域,其中,该第二区域在该三维坐标中的该第一坐标轴和该第二坐标轴所在的平面内,或,第三确定单元44,设置为确定在该终端所处的该三维坐标中该第二轨迹点集合中的轨迹点最多的第三区域;其中,该第三区域在该三维坐标中的该第三坐标轴 和该第一坐标轴所在的平面,或该第三坐标轴和该第二坐标轴所在的平面;第二获取单元45,设置为比较该第二区域或该第三区域,与该终端在该预定时间的开始时刻的三维坐标,得到该第二轨迹点集合指示的该终端移动的方向或角度。FIG. 4 is a block diagram of an optional structure of an output device for a character according to an embodiment of the present invention. As shown in FIG. 4, the device is related to the acquisition module 24 of FIG. 2, wherein the acquisition module 24 includes: a first determining unit 41, And determining, in the three-dimensional coordinates of the terminal, a first region having the most track points in the first track point set, wherein the first coordinate axis and the second coordinate axis of the first region in the three-dimensional coordinates are In the in-plane; the first obtaining unit 42 is configured to compare the three-dimensional coordinates of the first region and the terminal at the start time of the predetermined time, to obtain a direction or an angle of movement of the terminal indicated by the first track point set; a determining unit 43 configured to determine a second region in the set of second track points in which the second track point is located in the three-dimensional coordinates of the terminal, wherein the first coordinate axis of the second region in the three-dimensional coordinates In a plane in which the second coordinate axis is located, or the third determining unit 44 is configured to determine a third region in the set of the second track points in which the track point is located in the third track point where the terminal is located; The third region of the third coordinate axis in the three-dimensional coordinates a plane in which the first coordinate axis is located, or a plane in which the third coordinate axis and the second coordinate axis are located; and a second acquisition unit 45 configured to compare the second region or the third region with the terminal The three-dimensional coordinates of the start time of the predetermined time are obtained by the direction or angle of the terminal movement indicated by the second track point set.
图5是根据本发明实施例的字符的输出装置的可选结构框图三,如图5所示,该装置涉及图2中输出模块26,其中该输出模块26包括:第一判断单元52,设置为判断该第一轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度是否匹配;第二判断单元54,设置为在该第一轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度匹配时,继续判断该第二轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度是否匹配;第一输出单元56,设置为在该第二轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度匹配时,输出与该第一轨迹点集合指示的该终端移动的方向以及该第二轨迹点集合指示的该终端移动的方向或角度对应的字符。5 is a block diagram 3 of an optional structure of an output device for a character according to an embodiment of the present invention. As shown in FIG. 5, the device is related to the output module 26 of FIG. 2, wherein the output module 26 includes: a first determining unit 52, setting In order to determine whether the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal; the second determining unit 54 is configured to move the terminal indicated by the first track point set. When the direction or angle matches the corresponding direction or angle stored by the terminal, it is determined whether the direction or angle of the terminal movement indicated by the second track point set matches the corresponding direction or angle stored by the terminal; the first output unit 56, When the direction or angle of movement of the terminal indicated by the second track point set matches the corresponding direction or angle stored by the terminal, outputting the direction of the terminal movement indicated by the first track point set and the second track The point set indicates the character corresponding to the direction or angle of movement of the terminal.
图6是根据本发明实施例的字符的输出装置的可选结构框图四,如图6所示,输出模块26还包括:第三判断单元62,设置为在该第一轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度不匹配时,继续判断该第二轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度是否匹配;第二输出单元64,设置为在该第二轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度匹配时,输出与该第二轨迹点集合指示的该终端移动的方向或角度对应的所有字符。FIG. 6 is a block diagram showing an optional structure of an output device for a character according to an embodiment of the present invention. As shown in FIG. 6, the output module 26 further includes: a third determining unit 62 configured to indicate the set at the first track point set. When the direction or angle of the terminal movement does not match the corresponding direction or angle stored by the terminal, it is determined whether the direction or angle of the terminal movement indicated by the second track point set matches the corresponding direction or angle stored by the terminal; The output unit 64 is configured to output, when the direction or angle of movement of the terminal indicated by the second set of track points matches the corresponding direction or angle stored by the terminal, output a direction of movement of the terminal indicated by the second set of track points or All characters corresponding to the angle.
图7是根据本发明实施例的字符的输出装置的可选结构框图五,如图7所示,输出模块26还包括:第四判断单元72,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;第三输出单元74,设置为在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。7 is a block diagram 5 of an optional structure of a character output device according to an embodiment of the present invention. As shown in FIG. 7, the output module 26 further includes: a fourth determining unit 72, configured to be indicated at the first track point set. When the direction or angle of the terminal movement is matched with the corresponding direction or angle stored by the terminal, the direction or angle of the terminal movement indicated by the second track point set is continuously determined to be the corresponding direction or angle stored by the terminal. Whether it is matched; the third output unit 74 is configured to output and the first track when the direction or angle of the terminal movement indicated by the second track point set does not match the corresponding direction or angle stored by the terminal The point set indicates all characters corresponding to the direction or angle of movement of the terminal.
图8是根据本发明实施例的字符的输出装置的可选结构框图六,如图8所示,该装置涉及到图2中获取模块24,其中该获取模块24包括:第三确定单元82,在该通过预设采样频率采集从该预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合之后,在指定时间内采集的该终端移动轨迹的轨迹点的三维坐标未变化时,确定在该终端所处的三维坐标中该第一轨迹点集合中的轨迹点最多的第四区域,其中,该第四区域在该三维坐标中的第一坐标轴和第二坐标轴所在的平面内;第三获取单元84,设置为比较该第四区域与该终端在该预定时间的开始时刻的三维坐标,得到该第一轨迹点集合指示的该终端移动的方向或角度。FIG. 8 is a block diagram of an optional structure of a character output device according to an embodiment of the present invention. As shown in FIG. 8, the device is related to the acquisition module 24 of FIG. 2, wherein the acquisition module 24 includes: a third determining unit 82. After the first track point set of the terminal movement track is collected from the start time of the predetermined time to the first specified time by the preset sampling frequency, the three-dimensional coordinates of the track point of the terminal moving track acquired within the specified time are not And determining, in the three-dimensional coordinates of the terminal, a fourth region having the most track points in the first track point set, wherein the fourth region is in the first coordinate axis and the second coordinate axis in the three-dimensional coordinates The third acquiring unit 84 is configured to compare the three-dimensional coordinates of the fourth region with the terminal at the start time of the predetermined time, and obtain a direction or an angle of the terminal movement indicated by the first track point set.
图9是根据本发明实施例的字符的输出装置的可选结构框图七,如图9所示,该装置中涉及输出模块26,其中该输出模块26包括:第五判断单元92,设置为判断该第一轨迹点集合指示的该终端移动的方向与该终端存储的方向或角度是否匹配;第四输出单元94,设置为在该第一轨迹点集合指示的该终端移动的方向或角度与该终端存储的对应方向或角度匹配时,输出与该第一轨迹点集合指示的该终端移动的方向或角度对应的所有字符。 FIG. 9 is a block diagram showing an optional structure of an output device for a character according to an embodiment of the present invention. As shown in FIG. 9, the device includes an output module 26, wherein the output module 26 includes: a fifth determining unit 92, configured to determine Whether the direction of movement of the terminal indicated by the first track point set matches the direction or angle stored by the terminal; the fourth output unit 94 is configured to be in a direction or angle of movement of the terminal indicated by the first track point set and the When the corresponding direction or angle stored by the terminal matches, all characters corresponding to the direction or angle of the terminal movement indicated by the first track point set are output.
图10是根据本发明实施例的字符的输出装置的可选结构框图八,如图10,该装置除了包括图2中的所有模块外还包括:显示模块102,设置为在依据该轨迹点获取该终端移动的第一参数和第二参数之前,显示该终端移动轨迹的轨迹点。10 is a block diagram of an optional structure of a character output device according to an embodiment of the present invention. As shown in FIG. 10, the device includes: in addition to all the modules in FIG. 2, a display module 102 configured to acquire according to the track point. Before the first parameter and the second parameter of the terminal move, the track point of the movement track of the terminal is displayed.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
下面结合本发明的可选实施例对本发明进行举例说明。The invention is exemplified below in conjunction with alternative embodiments of the invention.
本发明可选实施例提供了一种动作手势的输入法,克服了相关技术困难,提高了输入的便捷性、有效性以及准确性。用户在输入框时,对手机进行移动,本发明提出的输入信息是通过加速传感器和重力传感器等对用户动作进行匹配。图11是根据本发明可选实施例的字符的输出方法流程示意图,如图11所示,包括如下步骤:An alternative embodiment of the present invention provides an input method for an action gesture, which overcomes the related technical difficulties and improves the convenience, effectiveness, and accuracy of the input. When the user inputs the frame, the mobile phone is moved. The input information proposed by the present invention matches the user action by the acceleration sensor and the gravity sensor. FIG. 11 is a schematic flowchart of a method for outputting characters according to an alternative embodiment of the present invention. As shown in FIG. 11, the method includes the following steps:
步骤S1101,从角度和方向对手机的轨迹分类;Step S1101, classifying the trajectory of the mobile phone from the angle and the direction;
步骤S1102,将每种轨迹和特定输入字符建立对应关系;Step S1102, establishing a correspondence relationship between each track and a specific input character;
步骤S1103,通过加速传感器和重力传感器对手机移动的角度和方向进行判断;Step S1103, judging the angle and direction of the mobile phone movement by the acceleration sensor and the gravity sensor;
步骤S1104,匹配轨迹,将轨迹映射到对应的执行命令上;Step S1104, matching the trajectory, and mapping the trajectory to the corresponding execution command;
步骤S1105,输出对应指令。In step S1105, a corresponding instruction is output.
在本发明实施例中对手机运动轨迹列出了8种常规方向轨迹,其中包括:In the embodiment of the present invention, eight kinds of conventional directional trajectories are listed for the movement track of the mobile phone, including:
↓:代表向后移动;        →:代表向右移动;↓: means moving backwards; →: means moving to the right;
↑:代表向前移动;        ←:代表向左移动;↑: means moving forward; ←: means moving to the left;
↘:代表向右滑动90度;    ↙:代表向左滑动90度;↘: means sliding 90 degrees to the right; ↙: means sliding 90 degrees to the left;
♂:代表向上滑动90度;    ♀:代表向下滑动90度;♂: means sliding up 90 degrees; ♀: means sliding down 90 degrees;
依据上述8种常规方向轨迹,本发明可选实施例列举了如下表1所示的组合列表。According to the above 8 conventional directional trajectories, an alternative embodiment of the present invention cites a combination list as shown in Table 1 below.
表1Table 1
序号Serial number 手势gesture 符号symbol
11 ↑+↑↑+↑ 取消cancel
22 ↑+↓↑+↓ aa
33 ↑+←↑+← bb
44 ↑+→↑+→ cc
55 ↑+↙↑+↙ dd
66 ↑+↘↑+↘ ee
77 ↑+♂↑+♂ ff
88 ↑+♀↑+♀ gg
99 ↓+↑↓+↑ hh
1010 ↓+↓↓+↓ 确认confirm
1111 ↓+←↓+← ii
1212 ↓+→↓+→ jj
1313 ↓+↙↓+↙ kk
1414 ↓+↘↓+↘ ll
1515 ↓+♂↓+♂ mm
1616 ↓+♀↓+♀ nn
1717 ←+↑←+↑ oo
1818 ←+↓←+↓ pp
1919 ←+←←+← 右移Right shift
2020 ←+→←+→ qq
21twenty one ←+↙←+↙ rr
22twenty two ←+↘←+↘ ss
23twenty three ←+♂←+♂ 空格Space
24twenty four ←+♀←+♀ tt
2525 →+↑→+↑ uu
2626 →+↓→+↓ vv
2727 →+←→+← ww
2828 →+→→+→ 右移Right shift
2929 →+↙→+↙ xx
3030 →+↘→+↘ yy
3131 →+♂→+♂ 回删Delete
3232 →+♀→+♀ zz
可选实施例一Alternative embodiment 1
根据本发明可选实施例,可以将手势组合方法使用于其他功能,如匹配手机命令和操作等,在用户移动手机时,输入信息方法包括以下步骤:根据用户移动手机的角度进行分类;将分类手势与输入法具体指令建立映射关系;通过重力、加速度等传感器对手势进行判断;根据角度和方向匹配手势动作;匹配指定字符并输出。图12是根据本发明可选实施例的字符匹配总流程示意图,如图12所示,该流程示意图包括以下步骤:According to an optional embodiment of the present invention, the gesture combination method can be used for other functions, such as matching mobile phone commands and operations. When the user moves the mobile phone, the method for inputting information includes the following steps: classifying according to the angle of the user's mobile phone; The gesture establishes a mapping relationship with the specific instruction of the input method; the gesture is judged by sensors such as gravity and acceleration; the gesture action is matched according to the angle and the direction; the specified character is matched and output. FIG. 12 is a schematic diagram of a general process of character matching according to an alternative embodiment of the present invention. As shown in FIG. 12, the flow diagram includes the following steps:
步骤S1201,打开手势输入法;Step S1201, the gesture input method is turned on;
步骤S1202,对手机动作手势的方向和角度进行判断:通过传感器获取手机的移动方向和角度,设置角度和方向的移动范围,如在移动范围内的,则判断为用户手势的操作,其中对于手势的角度移动,具体参照表1;手势分类是采用4种基础手势加8种常规手势的分段式轨迹判断,对应组合列表方式见表1;Step S1202: determining a direction and an angle of the mobile phone action gesture: obtaining a moving direction and an angle of the mobile phone by using the sensor, and setting a moving range of the angle and the direction, such as being within the moving range, determining the operation of the user gesture, wherein the gesture is The angular movement is specifically referred to Table 1; the gesture classification is a segmented trajectory judgment using four basic gestures and eight conventional gestures, and the corresponding combination list manner is shown in Table 1;
步骤S1203,匹配估计对应的字符;Step S1203, matching the corresponding characters of the estimation;
步骤S1204,在用户手势输入完毕后,检测手机是否存在方向和角度上的变换,当手机出现对于0.5秒以上的延迟,判断用户输入完毕,即开始匹配上次轨迹;Step S1204, after the user gesture input is completed, detecting whether there is a change in the direction and the angle of the mobile phone. When the mobile phone appears to have a delay of more than 0.5 seconds, it is determined that the user input is completed, that is, the matching of the last track is started;
步骤S1205,在判定用户进行输入完毕后,在屏幕上显示用户的输入运动轨迹,并显示匹配字符结果,用户判断运动轨迹是否正确,修正用户的输入习惯;如果是,执行步骤S1208;如果否,执行步骤S1206;Step S1205, after determining that the user has finished inputting, displaying the input motion track of the user on the screen, and displaying the matching character result, the user determines whether the motion track is correct, and corrects the user's input habit; if yes, step S1208 is performed; if not, Go to step S1206;
步骤S1206,将匹配出来的字符映射出来,并列举将近的输入结果供用户选择,最终输出指定字符到屏幕上;Step S1206, mapping the matched characters, and enumerating the input results for the user to select, and finally outputting the designated characters to the screen;
步骤S1207,判断列出的相近轨迹字符是否没有正确字符,如果是执行步骤S1202;如果否,执行步骤S1209;Step S1207, it is determined whether the listed similar track characters have no correct characters, if yes, step S1202; if not, step S1209;
步骤S1208,将匹配的字符输出到屏幕;Step S1208, outputting the matched characters to the screen;
步骤S1209,选择正确字符。In step S1209, the correct character is selected.
可选实施例二 Alternative embodiment 2
通过轨迹,本发明可选实施例建立了一套立体匹配轨迹方向的方案。图13是根据本发明可选实施例的轨迹检测匹配流程示意图,其中,对手机轨迹的操作包括三维立体方向,包括x,y,z轴方向的变化,如图13所示,通过角度和方向变化来检测手机的手势动作,具体步骤和原理如下:Through the trajectory, an alternative embodiment of the present invention establishes a set of stereo matching trajectory directions. 13 is a schematic diagram of a trajectory detection matching process according to an alternative embodiment of the present invention, wherein the operation of the trajectory of the mobile phone includes a three-dimensional stereo direction including changes in the x, y, and z-axis directions, as shown in FIG. Changes to detect the gestures of the phone, the specific steps and principles are as follows:
步骤S1301,图14是根据本发明可选实施例的立体轨迹检测图,如图14所示,本发明将空间分为x,y,z三方向。当手机点击输入框,并开机手势输入法,这是启动手势检测;Step S1301, FIG. 14 is a stereoscopic trajectory detection diagram according to an alternative embodiment of the present invention. As shown in FIG. 14, the present invention divides the space into three directions of x, y, and z. When the phone clicks on the input box and turns on the gesture input method, this is the startup gesture detection;
步骤S1302,加速传感器检测手机速度规定值后,系统认定用户已开始有手势操作,并记录手机移动的初始位置作为手机的移动中心位置,即x、y、z轴交汇处;Step S1302, after the acceleration sensor detects the mobile phone speed specification value, the system determines that the user has started the gesture operation, and records the initial position of the mobile phone movement as the mobile center position of the mobile phone, that is, the x, y, and z axis intersections;
步骤S1303,手机移动时,每隔0.1秒采集手机的位置轨迹,记录用户在输入时,整个手机的移动轨迹;Step S1303: When the mobile phone moves, the location track of the mobile phone is collected every 0.1 seconds, and the movement track of the entire mobile phone when the user inputs is recorded;
步骤S1304,当检测手机未移动时间大于0.5秒时,认定用户的一次输入结束,此时将手机记录的移动轨迹进行分析匹配;Step S1304, when detecting that the mobile phone has not moved for more than 0.5 seconds, it is determined that the user's input is completed, and the mobile track recorded by the mobile phone is analyzed and matched;
步骤S1305,手机以0.1个/每秒的频率在采样,以手势动作花费2秒为例,即采样点会有20个,以表1序号为31的操作为例,用户的手动操作包括先右移+向上90度操作;匹配手机轨迹包括一下两个步骤:In step S1305, the mobile phone samples at a frequency of 0.1 per second, and takes 2 seconds as a gesture action, that is, there are 20 sampling points. For example, the operation of the serial number of Table 1 is taken as an example, and the manual operation of the user includes the first right. Move + up 90 degrees; matching the phone track includes the following two steps:
1、对采集的轨迹前40%的采样点分析,认定轨迹存在最多的区域为用户的第一次移动轨迹,如表1中的31号操作,采集40%的点,即前8个采样点,当轨迹点在x右轴30度范围内的轨迹最多时,认定用户的第一次操作时向右平移。1. Analyze the sampling points of the first 40% of the collected trajectories, and determine that the area with the most trajectory is the user's first moving trajectory. For operation No. 31 in Table 1, 40% of the points are collected, that is, the first 8 sampling points. When the track point is the most in the range of 30 degrees from the right axis of the x, it is determined that the user shifts to the right when the first operation is performed.
2、第二步判断手机最后20%的轨迹的位置,以31号手势为例,20%的轨迹点是2个,当检测最后两个点在x右侧和z轴上方形成的平面上,角度小于15度的区域,且z轴的水平距离大约5cm时,判定用户最终移动的轨迹落在x、z右上平面;2. The second step is to determine the position of the last 20% of the trajectory of the mobile phone. Taking the No. 31 gesture as an example, 20% of the trajectory points are two. When detecting the last two points on the plane formed on the right side of x and above the z-axis, When the angle is less than 15 degrees, and the horizontal distance of the z-axis is about 5 cm, it is determined that the trajectory of the user's final movement falls on the upper right plane of x and z;
步骤S1306,结合步骤S1305中两次匹配过程,最终匹配手势轨迹。Step S1306, in conjunction with the two matching processes in step S1305, finally matching the gesture track.
可选实施例三Alternative embodiment three
下面阐述轨迹点位置区域匹配,图15a~15b是根据本发明可选实施例的分解轨迹检测图。下面以x,y轴平面为例,首先手势轨迹检测分为两步:Track point location area matching is set forth below, and Figures 15a-15b are exploded trajectory detection diagrams in accordance with an alternate embodiment of the present invention. Taking the x, y axis plane as an example, the gesture trajectory detection is divided into two steps:
第一步检测轨迹点的前40%的轨迹落入的区域,如图15a所示,手势第一步有4种轨迹,向左、向右、向前、向后4种轨迹,以图15a的x、y轴的平面图为例,将落入x、y方向30度夹角内区域轨迹点最多的区域认为是对应方向轨迹的变化,如落入x轴右侧30度区域是轨迹点最多的区域,可以匹配符合手势的操作包括26到32号手势;The first step is to detect the area where the first 40% of the trajectory points fall. As shown in Figure 15a, the first step of the gesture has four kinds of trajectories, four kinds of trajectories: left, right, forward, and backward, as shown in Figure 15a. Taking the plan view of the x and y axes as an example, the area with the most track points in the range of 30 degrees in the x and y directions is considered to be the change of the corresponding direction track. For example, the 30 degree area on the right side of the x axis is the most track point. The area that can match the gesture-compliant operation includes gestures 26 to 32;
第二步检测是对后20%的轨迹点落入区域进行判断,以图15b的x、y平面来介绍,The second step of the test is to judge the last 20% of the track points falling into the area, which is introduced in the x and y planes of Figure 15b.
轨迹点最多落入x、y轴中心圆圈(直接为5cm)的区域,我们认定手势最终回到了原点,符合对应操作的手势为2、9、20、27,如上面步骤结果同步判断手势为27; The track point falls at most into the area of the center circle of the x and y axes (directly 5cm). We believe that the gesture finally returns to the origin, and the gestures corresponding to the corresponding operation are 2, 9, 20, and 27. As shown in the above steps, the judgment gesture is 27 ;
轨迹落入x轴上下5cm内,且不在中心圆圈范围内,认定最终用户是落入在x轴右侧,符合的手势包括6、28号,结合第一次检测,判定为28号手势;The trajectory falls within 5cm of the x-axis and is not within the central circle. It is determined that the end user falls to the right of the x-axis. The matching gestures include numbers 6, 28, combined with the first detection, and the judgment is the 28th gesture;
轨迹落入x、y平面里x、y轴距离大约5cm的区域时,我们匹配符合手势包括4、25手势,结合第一次检测,判定为25号手势。When the trajectory falls into the x and y planes with an x and y axis distance of about 5 cm, we match the gestures including the 4, 25 gestures, combined with the first detection, and determine the 25th gesture.
通过以上检测手段,可以判断用户的手势轨迹。Through the above detection means, the gesture trajectory of the user can be determined.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,采集终端移动轨迹的轨迹点;S1, collecting a track point of the movement track of the terminal;
S2,依据轨迹点获取终端移动的第一参数和第二参数;S2: Acquire a first parameter and a second parameter of the terminal movement according to the track point;
S3,在该第一参数和该第二参数与该终端存储的参数匹配时,输出与该第一参数和该第二参数对应的字符。S3. When the first parameter and the second parameter match the parameter stored by the terminal, output a character corresponding to the first parameter and the second parameter.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述步骤S1,S2,S3。Optionally, in this embodiment, the processor performs the above steps S1, S2, S3 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
综上,采用采集预定时间内终端移动轨迹的轨迹点;依据所述轨迹点通过预设规则得到所述终端在所述预定时间内移动的方向和/或角度;在所述终端在所述预定时间内移动方向和/或角度与所述终端存储的方向和/或角度匹配时,输出与所述终端存储的方向和/角度对应的字符,解决了相关技术中通过触摸屏点击输入字符存在点击位置不正确的问题,进而达到了用户可以不操作屏幕,通过手势动作达到输入字符的效果。In summary, a track point for collecting a movement track of a terminal within a predetermined time period is adopted; a direction and/or an angle of movement of the terminal in the predetermined time is obtained according to the track point by a preset rule; and the terminal is at the predetermined When the moving direction and/or the angle is matched with the direction and/or the angle stored by the terminal, the character corresponding to the direction and/or angle stored by the terminal is output, and the click position of the input character through the touch screen is solved in the related art. Incorrect problems, in turn, achieve the effect that the user can operate the characters by gestures without operating the screen.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的上述技术方案,应用于字符的输出过程,在该过程中采用采集终端移动轨迹的轨迹点;依据轨迹点获取该终端移动的第一参数和第二参数;在第一参数和该第二参数与终端存储的参数匹配时,输出与该第一参数和该第二参数对应的字符的方式,解决了相关技术中通过触摸屏点击输入字符存在点击位置不正确的问题,进而达到了用户可以不操作屏幕,通过手势动作达到输入字符的效果。 The foregoing technical solution provided by the embodiment of the present invention is applied to a character output process, in which a track point of a moving track of a collecting terminal is used; a first parameter and a second parameter of the moving of the terminal are acquired according to the track point; And when the second parameter is matched with the parameter stored by the terminal, the manner of outputting the character corresponding to the first parameter and the second parameter solves the problem that the click position of the input character through the touch screen is incorrect in the related art, thereby achieving The user can achieve the effect of inputting characters by gestures without operating the screen.

Claims (20)

  1. 一种字符的输出方法,包括:A method of outputting characters, including:
    采集终端移动轨迹的轨迹点;Collecting track points of the movement track of the terminal;
    依据所述轨迹点获取所述终端移动的第一参数和第二参数;Obtaining, according to the track point, a first parameter and a second parameter of the terminal movement;
    在所述第一参数和所述第二参数与所述终端存储的参数匹配时,输出与所述第一参数和所述第二参数对应的字符。And when the first parameter and the second parameter match the parameter stored by the terminal, output a character corresponding to the first parameter and the second parameter.
  2. 根据权利要求1所述的方法,其中,所述第一参数和所述第二参数包括所述终端移动的方向或角度。The method of claim 1 wherein said first parameter and said second parameter comprise a direction or angle at which said terminal moves.
  3. 根据权利要求2所述的方法,其中,所述采集终端移动轨迹的轨迹点包括:The method according to claim 2, wherein the trajectory points of the collection terminal moving track include:
    通过预设采样频率采集从预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合,其中,所述第一指定时刻在所述预定时间的结束时刻之前;Collecting, by a preset sampling frequency, a first set of track points of a terminal movement trajectory from a start time of a predetermined time to a first specified time, wherein the first specified time is before an end time of the predetermined time;
    通过所述预设采样频率采集第二指定时刻到所述预定时间的结束时刻之间终端移动轨迹的第二轨迹点集合,其中,所述第二指定时刻在所述预定时间的结束时刻之前,所述第一指定时刻在所述第二指定时刻之前;And acquiring, by the preset sampling frequency, a second set of track points of the terminal movement trajectory between the second designated time and the ending time of the predetermined time, wherein the second specified time is before the end time of the predetermined time, The first specified time is before the second specified time;
    其中,所述第一轨迹点集合和所述第二轨迹点集合分别包括终端移动的多个轨迹点。The first track point set and the second track point set respectively comprise a plurality of track points moved by the terminal.
  4. 根据权利要求3所述的方法,其中,所述依据所述轨迹点获取所述终端移动的第一参数和第二参数包括:The method according to claim 3, wherein the obtaining the first parameter and the second parameter of the terminal movement according to the track point comprises:
    确定在所述终端所处的三维坐标中所述第一轨迹点集合中的轨迹点最多的第一区域,其中,所述第一区域在所述三维坐标中的第一坐标轴和第二坐标轴所在的平面内;Determining, in a three-dimensional coordinate in which the terminal is located, a first region having the most track points in the first set of track points, wherein the first coordinate and the second coordinate of the first region in the three-dimensional coordinates The plane in which the axis is located;
    比较所述第一区域与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第一轨迹点集合指示的所述终端移动的方向或角度;Comparing the three-dimensional coordinates of the first area and the terminal at the start time of the predetermined time, and obtaining a direction or an angle of the terminal movement indicated by the first track point set;
    确定在所述终端所处的三维坐标中所述第二轨迹点集合中的轨迹点最多的第二区域,其中,所述第二区域在所述三维坐标中的所述第一坐标轴和所述第二坐标轴所在的平面内,或,确定在所述终端所处的所述三维坐标中所述第二轨迹点集合中的轨迹点最多的第三区域;其中,所述第三区域在所述三维坐标中的第三坐标轴和所述第一坐标轴所在的平面,或所述第三坐标轴和所述第二坐标轴所在的平面;Determining a second region having the most track points in the second set of track points in the three-dimensional coordinates in which the terminal is located, wherein the first coordinate axis and the second region in the three-dimensional coordinates Determining, in a plane in which the second coordinate axis is located, or determining a third region having the largest number of track points in the second set of track points in the three-dimensional coordinates in which the terminal is located; wherein the third region is a third coordinate axis in the three-dimensional coordinates and a plane in which the first coordinate axis is located, or a plane in which the third coordinate axis and the second coordinate axis are located;
    比较所述第二区域或所述第三区域,与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第二轨迹点集合指示的所述终端移动的方向或角度。Comparing the second area or the third area with a three-dimensional coordinate of the terminal at a start time of the predetermined time, obtaining a direction or an angle of the terminal movement indicated by the second track point set.
  5. 根据权利要求4所述的方法,其中,所述输出与所述第一参数和所述第二参数对应的字符包括:The method of claim 4, wherein the outputting the characters corresponding to the first parameter and the second parameter comprises:
    判断所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配; Determining whether a direction or an angle of the terminal movement indicated by the first track point set matches a corresponding direction or an angle stored by the terminal;
    在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;When the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the direction or angle of the terminal movement indicated by the second track point set. Whether the corresponding direction or angle stored by the terminal matches;
    在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向以及所述第二轨迹点集合指示的所述终端移动的方向或角度对应的字符。Outputting a direction and a direction of movement of the terminal indicated by the first set of track points when a direction or an angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by the terminal A character corresponding to a direction or an angle of movement of the terminal indicated by the second track point set.
  6. 根据权利要求5所述的方法,其中,The method of claim 5, wherein
    在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;When the direction or angle of the terminal movement indicated by the first track point set does not match the corresponding direction or angle stored by the terminal, continue to determine the direction of the terminal movement indicated by the second track point set or Whether the angle matches a corresponding direction or angle stored by the terminal;
    在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第二轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。Outputting a direction or an angle of movement of the terminal indicated by the second set of track points when a direction or an angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by the terminal Corresponding to all characters.
  7. 根据权利要求5所述的方法,其中,The method of claim 5, wherein
    在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;When the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal, continue to determine the direction or angle of the terminal movement indicated by the second track point set. Whether the corresponding direction or angle stored by the terminal matches;
    在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。Outputting a direction of movement of the terminal indicated by the first set of track points or when a direction or an angle of movement of the terminal indicated by the second set of track points does not match a corresponding direction or angle stored by the terminal All characters corresponding to the angle.
  8. 根据权利要求4所述的方法,其中,在所述通过预设采样频率采集从所述预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合之后,所述方法还包括:The method according to claim 4, wherein after the collecting of the first set of track points of the terminal movement trajectory from the start time of the predetermined time to the first specified time by the preset sampling frequency, the method further include:
    在指定时间内采集的所述终端移动轨迹的轨迹点的三维坐标未变化时,所述依据所述轨迹点获取所述终端移动的第一参数和第二参数包括:When the three-dimensional coordinates of the track point of the terminal movement track acquired in the specified time period are not changed, the acquiring the first parameter and the second parameter of the terminal movement according to the track point include:
    确定在所述终端所处的三维坐标中所述第一轨迹点集合中的轨迹点最多的第四区域,其中,所述第四区域在所述三维坐标中的第一坐标轴和第二坐标轴所在的平面内;Determining a fourth region having the largest number of track points in the first set of track points in the three-dimensional coordinates in which the terminal is located, wherein the first coordinate axis and the second coordinate of the fourth region in the three-dimensional coordinates The plane in which the axis is located;
    比较所述第四区域与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第一轨迹点集合指示的所述终端移动的方向或角度。Comparing the three-dimensional coordinates of the fourth area and the terminal at the start time of the predetermined time, obtaining a direction or an angle of the terminal movement indicated by the first track point set.
  9. 根据权利要求8所述的方法,其中,所述输出与所述第一参数和所述第二参数对应的字符包括:The method of claim 8, wherein the outputting the characters corresponding to the first parameter and the second parameter comprises:
    判断所述第一轨迹点集合指示的所述终端移动的方向与所述终端存储的方向或角度是否匹配; Determining whether a direction of movement of the terminal indicated by the first set of track points matches a direction or an angle stored by the terminal;
    在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。Outputting a direction or an angle of movement of the terminal indicated by the first track point set when a direction or an angle of movement of the terminal indicated by the first track point set matches a corresponding direction or angle stored by the terminal Corresponding to all characters.
  10. 根据权利要求3所述的方法,其中,在依据所述轨迹点获取所述终端移动的第一参数和第二参数之前,所述方法还包括:The method of claim 3, wherein the method further comprises: before acquiring the first parameter and the second parameter of the terminal movement according to the track point, the method further comprising:
    显示所述终端移动轨迹的轨迹点。A track point of the terminal moving track is displayed.
  11. 一种字符的输出装置,包括:A character output device comprising:
    采集模块,设置为采集终端移动轨迹的轨迹点;The acquisition module is set to collect the track point of the movement track of the terminal;
    获取模块,设置为依据所述轨迹点获取所述终端移动的第一参数和第二参数;Obtaining a module, configured to acquire a first parameter and a second parameter of the terminal movement according to the track point;
    输出模块,设置为在所述第一参数和所述第二参数与所述终端存储的参数匹配时,输出与所述第一参数和所述第二参数对应的字符。And an output module, configured to output a character corresponding to the first parameter and the second parameter when the first parameter and the second parameter match a parameter stored by the terminal.
  12. 根据权利要求11所述的装置,其中,所述第一参数和所述第二参数包括所述终端移动的方向或角度。The apparatus of claim 11 wherein said first parameter and said second parameter comprise a direction or angle at which said terminal moves.
  13. 根据权利要求12所述的装置,其中,所述采集模块包括:The device of claim 12, wherein the acquisition module comprises:
    第一采集单元,设置为通过预设采样频率采集从预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合,其中,所述第一指定时刻在所述预定时间的结束时刻之前;The first collecting unit is configured to collect, by using a preset sampling frequency, a first set of track points of the terminal moving track from a start time of the predetermined time to a first specified time, wherein the first specified time is at the predetermined time Before the end time;
    第二采集单元,设置为通过所述预设采样频率采集第二指定时刻到所述预定时间的结束时刻之间终端移动轨迹的第二轨迹点集合,其中,所述第二指定时刻在所述预定时间的结束时刻之前,所述第一指定时刻在所述第二指定时刻之前;a second collection unit, configured to acquire, by the preset sampling frequency, a second set of track points of the terminal movement trajectory between the second designated time and the end time of the predetermined time, wherein the second specified time is in the Before the end time of the predetermined time, the first specified time is before the second specified time;
    其中,所述第一轨迹点集合和所述第二轨迹点集合分别包括终端移动的多个轨迹点。The first track point set and the second track point set respectively comprise a plurality of track points moved by the terminal.
  14. 根据权利要求13所述的装置,其中,所述获取模块包括:The apparatus of claim 13, wherein the obtaining module comprises:
    第一确定单元,设置为确定在所述终端所处的三维坐标中所述第一轨迹点集合中的轨迹点最多的第一区域,其中,所述第一区域在所述三维坐标中的第一坐标轴和第二坐标轴所在的平面内;a first determining unit, configured to determine a first region that has the most track points in the first track point set in the three-dimensional coordinates in which the terminal is located, wherein the first region is in the three-dimensional coordinates a plane in which the coordinate axis and the second coordinate axis are located;
    第一获取单元,设置为比较所述第一区域与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第一轨迹点集合指示的所述终端移动的方向或角度;a first acquiring unit, configured to compare three-dimensional coordinates of the first area and the terminal at a start time of the predetermined time, to obtain a direction or an angle of movement of the terminal indicated by the first track point set;
    第二确定单元,设置为确定在所述终端所处的三维坐标中所述第二轨迹点集合中的轨迹点最多的第二区域,其中,所述第二区域在所述三维坐标中的所述第一坐标轴和所述第二坐标轴所在的平面内,或,第三确定单元,设置为确定在所述终端所处的所述三维坐标中所述第二轨迹点集合中的轨迹点最多的第三区域;其中,所述第三区域在所述 三维坐标中的第三坐标轴和所述第一坐标轴所在的平面,或所述第三坐标轴和所述第二坐标轴所在的平面;a second determining unit, configured to determine a second region having the most track points in the second track point set in the three-dimensional coordinates in which the terminal is located, wherein the second region is in the three-dimensional coordinates a plane in which the first coordinate axis and the second coordinate axis are located, or a third determining unit configured to determine a track point in the second track point set in the three-dimensional coordinates in which the terminal is located a third region that is the most; wherein the third region is in the a third coordinate axis in the three-dimensional coordinates and a plane in which the first coordinate axis is located, or a plane in which the third coordinate axis and the second coordinate axis are located;
    第二获取单元,设置为比较所述第二区域或所述第三区域,与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第二轨迹点集合指示的所述终端移动的方向或角度。a second acquiring unit, configured to compare the second area or the third area with the three-dimensional coordinates of the terminal at a start time of the predetermined time, to obtain the terminal movement indicated by the second track point set Direction or angle.
  15. 根据权利要求14所述的装置,其中,所述输出模块包括:The apparatus of claim 14, wherein the output module comprises:
    第一判断单元,设置为判断所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;a first determining unit, configured to determine whether a direction or an angle of the terminal movement indicated by the first track point set matches a corresponding direction or an angle stored by the terminal;
    第二判断单元,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;The second determining unit is configured to continue to determine the location indicated by the second track point set when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal Whether the direction or angle of the terminal movement matches the corresponding direction or angle stored by the terminal;
    第一输出单元,设置为在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向以及所述第二轨迹点集合指示的所述终端移动的方向或角度对应的字符。a first output unit, configured to output, when the direction or angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by the terminal, outputting the indication indicated by the first set of track points a direction in which the terminal moves and a character corresponding to the direction or angle of the terminal movement indicated by the second track point set.
  16. 根据权利要求15所述的装置,其中,所述输出模块还包括:The apparatus of claim 15, wherein the output module further comprises:
    第三判断单元,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;The third determining unit is configured to continue to determine the indication of the second track point set when the direction or angle of movement of the terminal indicated by the first track point set does not match the corresponding direction or angle stored by the terminal Whether the direction or angle of movement of the terminal matches the corresponding direction or angle stored by the terminal;
    第二输出单元,设置为在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第二轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。a second output unit, configured to output, when the direction or angle of movement of the terminal indicated by the second set of track points matches a corresponding direction or angle stored by the terminal, outputting the indication indicated by the second set of track points All characters corresponding to the direction or angle of the terminal movement.
  17. 根据权利要求15所述的装置,其中,所述输出模块还包括:The apparatus of claim 15, wherein the output module further comprises:
    第四判断单元,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,继续判断所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度是否匹配;The fourth determining unit is configured to continue to determine the location indicated by the second track point set when the direction or angle of the terminal movement indicated by the first track point set matches the corresponding direction or angle stored by the terminal Whether the direction or angle of the terminal movement matches the corresponding direction or angle stored by the terminal;
    第三输出单元,设置为在所述第二轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度不匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。a third output unit, configured to output, when the direction or angle of movement of the terminal indicated by the second set of track points does not match the corresponding direction or angle stored by the terminal, outputting the indication with the first set of track points All characters corresponding to the direction or angle of movement of the terminal.
  18. 根据权利要求14所述的装置,其中,所述获取模块包括:The apparatus of claim 14, wherein the obtaining module comprises:
    第三确定单元,在所述通过预设采样频率采集从所述预定时间的开始时刻到第一指定时刻之间终端移动轨迹的第一轨迹点集合之后,在指定时间内采集的所述终端移动轨迹的轨迹点的三维坐标未变化时,确定在所述终端所处的三维坐标中所述第一轨迹点集 合中的轨迹点最多的第四区域,其中,所述第四区域在所述三维坐标中的第一坐标轴和第二坐标轴所在的平面内;a third determining unit, after the collecting the first track point set of the terminal moving track from the start time of the predetermined time to the first specified time by using the preset sampling frequency, the terminal moving in the specified time Determining the first track point set in the three-dimensional coordinates of the terminal when the three-dimensional coordinates of the track point of the track are not changed a fourth region having the most track points in the middle, wherein the fourth region is in a plane in which the first coordinate axis and the second coordinate axis in the three-dimensional coordinates are located;
    第三获取单元,设置为比较所述第四区域与所述终端在所述预定时间的开始时刻的三维坐标,得到所述第一轨迹点集合指示的所述终端移动的方向或角度。The third obtaining unit is configured to compare the three-dimensional coordinates of the fourth area and the terminal at the start time of the predetermined time, to obtain a direction or an angle of the terminal movement indicated by the first track point set.
  19. 根据权利要求18所述的装置,其中,所述输出模块还包括:The apparatus of claim 18, wherein the output module further comprises:
    第五判断单元,设置为判断所述第一轨迹点集合指示的所述终端移动的方向与所述终端存储的方向或角度是否匹配;a fifth determining unit, configured to determine whether a direction of movement of the terminal indicated by the first set of track points matches a direction or an angle stored by the terminal;
    第四输出单元,设置为在所述第一轨迹点集合指示的所述终端移动的方向或角度与所述终端存储的对应方向或角度匹配时,输出与所述第一轨迹点集合指示的所述终端移动的方向或角度对应的所有字符。a fourth output unit, configured to output, when the direction or angle of movement of the terminal indicated by the first track point set matches a corresponding direction or angle stored by the terminal, outputting the indication indicated by the first track point set All characters corresponding to the direction or angle of the terminal movement.
  20. 根据权利要求13所述的装置,其中,所述装置还包括:The device of claim 13 wherein said device further comprises:
    显示模块,设置为在依据所述轨迹点获取所述终端移动的第一参数和第二参数之前,显示所述终端移动轨迹的轨迹点。 And a display module, configured to display a track point of the movement track of the terminal before acquiring the first parameter and the second parameter of the terminal movement according to the track point.
PCT/CN2015/096585 2015-10-19 2015-12-07 Character output method and apparatus WO2016184076A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510681408.4 2015-10-19
CN201510681408.4A CN106598447A (en) 2015-10-19 2015-10-19 Character output method and device

Publications (1)

Publication Number Publication Date
WO2016184076A1 true WO2016184076A1 (en) 2016-11-24

Family

ID=57319269

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096585 WO2016184076A1 (en) 2015-10-19 2015-12-07 Character output method and apparatus

Country Status (2)

Country Link
CN (1) CN106598447A (en)
WO (1) WO2016184076A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000898A (en) * 2020-07-14 2020-11-27 浙江大华技术股份有限公司 Data generation method, electronic device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751200A (en) * 2008-12-09 2010-06-23 北京三星通信技术研究有限公司 Space input method for mobile terminal and implementation device thereof
US20110053641A1 (en) * 2008-11-10 2011-03-03 Samsung Electronics Co., Ltd. Motion input device for portable terminal and operation method using the same
CN102722236A (en) * 2011-03-29 2012-10-10 宏碁股份有限公司 Input device and method for handheld electronic device
CN102722240A (en) * 2011-05-18 2012-10-10 北京大学深圳研究生院 Text information input system, handwriting input device and text information input method
CN103425406A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Inputting method and inputting device of mobile terminal
CN103870185A (en) * 2012-12-17 2014-06-18 鸿富锦精密工业(武汉)有限公司 Character input system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155363A (en) * 2006-09-30 2008-04-02 海尔集团公司 Method and apparatus for implementing mobile phone control by action induction
WO2011057586A1 (en) * 2009-11-16 2011-05-19 北京搜狗科技发展有限公司 Method and apparatus for character input using direction operation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110053641A1 (en) * 2008-11-10 2011-03-03 Samsung Electronics Co., Ltd. Motion input device for portable terminal and operation method using the same
CN101751200A (en) * 2008-12-09 2010-06-23 北京三星通信技术研究有限公司 Space input method for mobile terminal and implementation device thereof
CN102722236A (en) * 2011-03-29 2012-10-10 宏碁股份有限公司 Input device and method for handheld electronic device
CN102722240A (en) * 2011-05-18 2012-10-10 北京大学深圳研究生院 Text information input system, handwriting input device and text information input method
CN103425406A (en) * 2012-05-16 2013-12-04 腾讯科技(深圳)有限公司 Inputting method and inputting device of mobile terminal
CN103870185A (en) * 2012-12-17 2014-06-18 鸿富锦精密工业(武汉)有限公司 Character input system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000898A (en) * 2020-07-14 2020-11-27 浙江大华技术股份有限公司 Data generation method, electronic device, and storage medium

Also Published As

Publication number Publication date
CN106598447A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
US20220129060A1 (en) Three-dimensional object tracking to augment display area
TWI579734B (en) 3d visualization
US20160054791A1 (en) Navigating augmented reality content with a watch
US9477403B2 (en) Drawing on a touchscreen
EP3090424A1 (en) Assigning virtual user interface to physical object
TWI528271B (en) Method, apparatus and computer program product for polygon gesture detection and interaction
US20230134764A1 (en) Augmenting the functionality of user input devices using a digital glove
US20140007020A1 (en) User customizable interface system and implementing method thereof
KR20150133585A (en) System and method for navigating slices of a volume image
JP6325659B2 (en) Operation screen display device, operation screen display method and program
CN108073267B (en) Three-dimensional control method and device based on motion trail
US20150309681A1 (en) Depth-based mode switching for touchless gestural interfaces
EP3204843B1 (en) Multiple stage user interface
US10073612B1 (en) Fixed cursor input interface for a computer aided design application executing on a touch screen device
WO2020117539A1 (en) Augmenting the functionality of user input devices using a digital glove
WO2016184076A1 (en) Character output method and apparatus
JP2012238086A (en) Image processing apparatus, image processing method and image processing program
US9536126B2 (en) Function execution method based on a user input, and electronic device thereof
WO2016145827A1 (en) Terminal control method and device
JP6711616B2 (en) Graphic element selection
KR101370830B1 (en) System and Method for Implementing User Interface
US10809794B2 (en) 3D navigation mode
WO2016206438A1 (en) Touch screen control method and device and mobile terminal
TW201248456A (en) Identifying contacts and contact attributes in touch sensor data using spatial and temporal features
CN111176427A (en) Three-dimensional space drawing method based on handheld intelligent equipment and handheld intelligent equipment

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: 15892450

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: 15892450

Country of ref document: EP

Kind code of ref document: A1