The present invention relates to a human-machine interface interaction technology of a mobile terminal, and specifically, to a writing stroke recognition apparatus, a mobile terminal and a method for realizing spatial writing.
Currently, human-machine interfaces contained in a mobile terminal such as a mobile phone comprise keyboard input, handwriting input, voice input, fingerprint input, and etc, wherein the most commonly used human-machine interfaces for inputting characters (letters) are the keyboard input and the handwriting input. At present, a manner of the handwriting input is to move a touch pen on a touch screen, and the touch screen acquires variation amounts of resistance by an analog-to-digital (A/D\, and then positions the coordinates of contact points in a planar range of a defined area. This manner is of a high recognition rate and is the mainstream of current handwriting inputs. However, current handwriting input manners require two hands of an operator to perform the operation.
Considering the problem in the prior art that the handwriting input manner requires both hands of an operator to perform the operation simultaneously, the present invention provides a writing stroke recognition apparatus, a mobile terminal and a method for realizing spatial writing, to solve at least one of the above problems.
To achieve the above purpose, according to one aspect of the present invention, a writing stroke recognition apparatus is provided.
The writing stroke recognition apparatus according to the present invention comprises an acquiring module, a stroke recognition module, and a storage module configured to store a corresponding relationship between movement amount information and stroke information, wherein the acquiring module is configured to acquire movement amount information of the movement of the writing stroke recognition apparatus per se, and output the movement amount information to the stroke recognition module; and the stroke recognition module is configured to obtain stroke information corresponding to the acquired movement amount information according to the corresponding relationship stored in the storage module.
Preferably, the storage module is further configured to store corresponding relationship between the movement amount information and stroke relative position information; the writing stroke recognition apparatus further comprises a selection module and a stroke relative position recognition module, wherein the selection module is configured to output the movement amount information from the acquiring module to the stroke recognition module or the stroke relative position recognition module, according to different control information; and the stroke relative position recognition module is configured to obtain stroke relative position information corresponding to the acquired movement amount information, according to the corresponding relationships stored in the storage module.
Preferably, the acquiring module is an acceleration sensor.
Preferably, the acceleration sensor is a triaxial acceleration sensor or a biaxial acceleration sensor.
Preferably, the selection module is a key-press, wherein pressing or releasing the key-press indicates different control information.
In order to achieve the above purpose, according to another aspect of the present invention, a mobile terminal is provided.
The mobile terminal according to the present invention at least comprises a writing stroke recognition apparatus and a character recognition unit, wherein the writing stroke recognition apparatus comprises an acquiring module, a stroke recognition module, and a storage module configured to store a corresponding relationship between movement amount information and stroke information, wherein the acquiring module is configured to acquire movement amount information of the movement of the writing stroke recognition apparatus per se, and output the movement amount information to the stroke recognition module; the stroke recognition module is configured to obtain stroke information corresponding to the acquired movement amount information according to the corresponding relationships stored in the storage module; and the character recognition unit is configured to make transformation and obtain a corresponding character according to the stroke information received.
Preferably, the storage module is further configured to store corresponding relationship between the movement amount information and stroke relative position information; the writing stroke recognition apparatus further comprises a selection module and a stroke relative position recognition module, wherein the selection module is configured to output the movement amount information from the acquiring module to the stroke recognition module or the stroke relative position recognition module, according to different control information; the stroke relative position recognition module is configured to obtain stroke relative position information corresponding to the acquired movement amount information according to the corresponding relationships stored in the storage module; and the character recognition unit is further configured to make transformation and obtain the corresponding character according to the stroke relative position information received.
Preferably, the acquiring module is an acceleration sensor.
Preferably, the acceleration sensor is placed at edges and corners of the mobile terminal.
Preferably, the selection module is a key-press, wherein pressing or releasing the key-press indicates different control information.
In order to achieve the above purpose, according to another aspect of the present invention, a method for realizing spatial writing is provided.
The method for realizing spatial writing according to the present invention presets a corresponding relationship between movement amount information and stroke information, and the method further comprises: obtaining movement amount information of a mobile terminal, and then obtaining stroke information according to the preset corresponding relationship and the obtained movement amount information; and performing character recognition using the obtained stroke information.
Preferably, the preset corresponding relationship further comprises corresponding relationship between the movement amount information and stroke relative position information, and the method further comprises: obtaining stroke relative position information according to the preset corresponding relationship and the obtained movement amount information; and further performing character recognition using the obtained stroke relative position information.
Preferably, the movement amount information represents the variation of an acceleration value within a period of time.
It can be seen from the above technical solutions provided by the present invention that writing stroke information and writing relative position information are obtained, by acquiring and analyzing the movement amount information of the writing and using the preset corresponding relationships between the movement amount information and the stroke information and the stroke relative position information, and then the corresponding characters are recognized using the obtained writing stroke information and the writing relative position information. By simple hardware circuits and effective corresponding relationships, the present invention guarantees accurate recognition of writing strokes, and can obtain the stroke information of the input characters conveniently and accurately, and realize character input function of the mobile terminal, and thus provides a simple and accurate handwriting output manner.
The accompanying drawings described herein are used to provide a further understanding of the present invention, and constitute a portion of the present application. The illustrative embodiments of the present invention and the explanations thereof are used to explain the present invention, and do not constitute inappropriate limitations on the present invention. In the accompanying drawings:
a is a schematic view illustrating that x-axis acceleration varies over time during writing a horizontal stroke;
b is a schematic view illustrating that y-axis acceleration varies over time during writing a horizontal stroke;
a is a schematic view illustrating that x-axis accelerating section varies over time during writing a vertical stroke;
b is a schematic view illustrating that y-axis accelerating section varies over time during writing a vertical stroke; and
In the above, the acquiring module is configured to acquire movement amount information of a movement of the writing stroke recognition apparatus per se, and output the movement amount information to the stroke recognition module.
The acquiring module can acquire an acceleration value in a spatial direction of the writing stroke recognition apparatus per se by adopting an acceleration sensor, wherein the acceleration value is the movement amount information of the movement of the writing stroke recognition apparatus per se.
The acceleration sensor can only measure the acceleration, i.e., the acceleration comes from the movement (the movement should not be at a uniform speed, and generally, this requirement can be satisfied). If the movement is made from left to right, the x-axis acceleration has a positive value, and otherwise the x-axis acceleration has a negative value; and if the movement is made from up to down, the y-axis acceleration has a positive value, and otherwise the y-axis acceleration has a negative value (note; when the chip moves toward the same direction, the value of the acceleration output has the unchanged sign (positive or negative), and only when the chip moves toward the opposite direction, the sign is changed, which is different from the understanding of the acceleration symbol in physics field). The acceleration sensor can be a triaxial acceleration sensor or a biaxial acceleration sensor. Taking the triaxial acceleration sensor as the example, it can measure the accelerations in three coordinate axis directions by referring to a planar direction of an acceleration sensor chip. When an apparatus embedded with the acceleration sensor chip moves, the acceleration sensor chip will output values of the accelerations in the three axis directions based on the coordination system, and the track of the moving point can be determined uniquely by coordinate vector combination.
The acceleration sensor belongs to a common chip for those skilled in the art, and the specific implementing principle and the use thereof can be learned by referring to product information of chips of different types, which are not covered in the protection scope of the present invention, and are not used to limit the protection scope of the present invention either. Therefore, the details are omitted herein. In order to obtain high sensitivity, the acceleration sensor chip can be arranged at an edge of a printing circuit board.
The stroke recognition module is configured to obtain stroke information corresponding to the acquired movement amount information according to the corresponding relationship stored in the storage module.
By using the writing stroke recognition apparatus of the present invention, a user can set a corresponding relationship between a specific movement action (represented by movement amount information) and a specific operation (represented by stroke information). For example, when a movement track is “O”, by acquiring the movement amount information of the writing stroke recognition apparatus within any spatial range, it is obtained that the stroke information is a circle, which represents an unlocking operation. Also, when a movement track is “L”, by acquiring the movement amount information of the writing stroke recognition apparatus within any spatial range, it is obtained that the stroke information is an “L”, which represents an operation of dialing a specific telephone number. As another example, when a movement tract is “Z”, by acquiring the movement amount information of the writing stroke recognition apparatus within any spatial range, it is obtained that the stroke information is a “Z”, which represents an operation of entering a photographing mode. Also, when a movement track is an “R”, by acquiring the movement amount information of the writing stroke recognition apparatus within any spatial range, it is obtained that the stroke information is an “R”, which represents an operation of turning on the radio. Furthermore, when a movement track is a “C”, by acquiring the movement amount information of the writing stroke recognition apparatus within any spatial range, it is obtained that the stroke information is a “C”, which represents an operation of selecting the channel of the radio, and etc. It should be noted that the corresponding relationships between the above specific movement and the specific operation can be set arbitrarily, and the embodiments of the present invention will not make any limitation on the corresponding relationships.
When the writing stroke recognition apparatus of the present invention is used for performing character recognition, the storage module is further configured to store a corresponding relationship between the movement amount information and stroke relative position information.
The writing stroke recognition apparatus further comprises a selection module and a stroke relative position recognition module.
In the above, the selection module is configured to output the movement amount information from the acquiring module to the stroke recognition module or the stroke relative position recognition module, according to different control information.
The generation of the control information can be achieved by a hardware manner. For example, it is achieved by a key-press, wherein when the key-press is pressed down, a control signal is used to switch-on the connection between the acquiring module and the stroke recognition module, i.e., the movement amount information output by the acquiring module is received by the stroke recognition module; and when the key-press is not pressed down (released), the control signal is used to switch-on the connection between the acquiring module and the stroke relative position recognition module, i.e., the movement amount information output by the acquiring module is received by the stroke relative position recognition module. It should be noted that the meaning of the control information corresponding to whether the key-press is pressed down or not can be set depending on the actual situations, and the description herein is only for an example. The sensitivity of the key-press in regard to the pressing force is adjustable, which belongs to common technical means for those skilled in the art. Therefore, the details are omitted herein.
The stroke relative position recognition module is configured to obtain stroke relative position information corresponding to acquired movement amount information according to the corresponding relationships stored in the storage module.
The writing stroke recognition apparatus as illustrated in
In the practical implementation of the mobile terminal, in order to obtain higher sensitivity, preferably, the acceleration sensor in the writing stroke recognition apparatus can be arranged at edges and corners of the mobile terminal. Thus, the mobile terminal is just like a pen, and the acceleration sensor is the tip of the pen. When the mobile terminal is moved to write, the plane for writing is just a reference plane of the acceleration sensor.
A method for realizing spatial writing according to the present invention is described in combination with
Step 300, corresponding relationships between movement amount information and stroke information and stroke relative position information are preset. It should be noted that, if an apparatus for achieving character input function is only required to achieve some simple specific operations, then it is only necessary to preset a corresponding relationship between the movement amount information and the stroke information in the present step, which is described by taking the realization of character input as the example in
Step 301, movement amount information of the mobile terminal is obtained.
The movement amount information can be represented by variation of acceleration value acquired by an acceleration sensor during a period of time. The period of time herein refers to the writing time. How to use the acceleration sensor to accomplish the acquisition of the movement amount information belongs to common technical means for those skilled in the art and the details are omitted herein. The corresponding relationship between the variation amount of the movement amount information and the stroke will be described in detail hereinafter.
For example, when writing a horizontal stroke, the mobile terminal is moved from the left to the right, and it is supposed that the movement is a translation movement, the x-axis acceleration is positive, the y-axis acceleration is 0, and this state sustains for a period of time until the writing of the horizontal stroke is finished. The views of the variations of the x-axis acceleration and the y-axis acceleration over time are respectively illustrated in
At this moment, if in the step 300, it is preset that the movement amount information is the x-axis acceleration>0 and the y-axis acceleration being near 0 (the x-axis acceleration approaches to 0) which corresponds to the stroke information of a horizontal stroke, then in the present step, when the obtained movement amount information is that the x-axis acceleration>0 and the y-axis acceleration is near 0, then it can be obtained that the information of the stroke being written is of a horizontal stroke according to the corresponding relationship.
Also, when writing a vertical stroke, the mobile terminal is moved from up to down, and it is supposed that the movement is a vertical movement, the x-axis acceleration is 0 and the y-axis acceleration is positive, and this state sustains for a period of time until the writing of the vertical stroke is finished. The views illustrating the variations of the x-axis acceleration and the y-axis acceleration over time are respectively illustrated in
At this moment, if in step 300, it is preset that the movement amount information is the x-axis acceleration being near 0 (the y-axis acceleration approaches to 0) and the y-axis acceleration speed>0, which corresponds to the stroke information of a vertical stroke, then in the present step, when the obtained movement amount information is that the x-axis acceleration is near 0 and the y-axis acceleration speed>0, it can be obtained that the information of the stroke being written is a vertical stroke according to the corresponding relationship.
Thus, it can be easily concluded as the following:
when the state in which the x-axis acceleration<0 and the y-axis acceleration>0 sustains for a period of time, it can be obtained that the stroke being written is a left-falling stroke; when the state in which the x-axis acceleration>0 and the y-axis acceleration>0 sustains for a period of time, it can be obtained that the stroke being written is a right-falling stroke; and etc.
In practical application, a backward stroke may appear during writing characters.
The stroke relative position information is used to describe the relative position of two adjacent strokes. Also taking the writing of the character “” as an example, as for the position relationship between the first stroke and the second stroke, it can be judged according to the movement amount information of the backward stroke between the ending of the first stroke and the starting of the second stroke, and it is easily learned that the y-axis acceleration of the backward stroke is greater than 0, then it is obtained that there is an up and down relationship between the first stroke and the second stroke.
Step 302, the stroke information and the stroke relative position information are obtained according to the preset corresponding relationship and the obtained movement amount information.
The method for recognizing a Chinese character of the present invention is introduced by taking a simple character as an example. For a complex Chinese character, the division or the meaning transformation may be performed. For example, the meaning of a circular point “•” is transformed to be a “right-falling stroke” and etc., so as to continuously improve the corresponding relationships between the movement amount information and the stroke information and the stroke relative position information, thereby further improving the accuracy of character recognition.
Step 303, character recognition is performed using the obtained stroke information and the stroke relative position information.
This step can be achieved by existing character recognition function, which belongs to common technical means of those skilled in the art and then is omitted herein.
According to an embodiment of the present invention, a computer readable medium is further provided, which stores instructions executable for a computer. When the instructions are executed by the computer or a processor, the computer or the processor is made to execute the processes of the steps shown in
With the technical solutions provided by the embodiments of the present invention, the stroke information of an input character can be obtained conveniently and accurately, and thus the character input function of the mobile terminal can be achieved.
In addition, the implementation of the present invention does not change any system architecture and current process flow, and then can be easily realized, and then can be conveniently popularized in the technical field and thus has high industrial applicability.
Described above are just preferred embodiments of the present invention, and are not intended to restrict the protection scope of the present invention. Any modifications, equivalent substitutions, improvements and etc. within the spirit and principle of the present invention, should be included in the protection scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
200910087137.4 | Jun 2009 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN09/73490 | 8/25/2009 | WO | 00 | 8/26/2011 |