This application claims priority to Chinese Patent Application No. 201310749003.0 filed on Dec. 31, 2013, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to recognition systems for recognizing handwriting, and particularly to a recognition system for recognizing handwriting for electronic devices.
Electronic devices having handwriting input functions are widely used in many fields. These electronic devices recognize handwriting input by a user and display one or more words and/or one or more characters matching the input handwriting.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have noten described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts have been exaggerated to better illustrate details and features of the present disclosure.
Several definitions that apply throughout this disclosure will now be presented.
The word “module,” and “unit” as used hereinafter, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware. It will be appreciated that modules may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable storage medium or other computer storage device. The term “comprising,” when utilized, means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in the so-described combination, group, series and the like.
The present disclosure is described in relation to a recognition system and method for recognizing handwriting on an electronic device. The recognition system includes a processor configured to execute instructions stored in a memory for: creating handwriting in response to a handwriting input; displaying the created handwriting on a user interface of the electronic device; defining a first planar coordinate system on the user interface; determining the electronic device is rotated if a rotation angle is larger than a predetermined value; defining a second planar coordinate system on the user interface; identifying a coordinate of each touched point of the handwriting in the second planar coordinate system; recognizing the handwriting according to the coordinate and retrieving one or more first characters or words matching the handwriting; and displaying the retrieved one or more first characters or words on the user interface.
The display unit 22 displays a user interface 221 shown in
The input unit 21 detects a plurality of touched points of input handwriting 2241. In at least one embodiment, the input unit can be a touch panel which is mounted on the display unit 22.
The angle detection unit 20 detects a rotation angle of the electronic device 200 and transmits the detected rotation angle information to the processor 23. The rotation angle α (shown in
The recognition unit 121 creates the handwriting 2241 in response to a handwriting input operation by the user, and the display control unit 116 controls the display unit 22 to display the created handwriting 2241 on the input display region 224. The handwriting 2241 indicates information of locations of points touched by the user.
The first coordinate defining unit 112 defines a first planar coordinate system 1121 shown in
The determining unit 113 determines whether the electronic device 200 is rotated according to the rotation angle. In at least one embodiment, the determining unit 113 determines the electronic device 200 is rotated if the rotation angle of the electronic device 200 is larger than a predetermined value, for example 5 degrees; otherwise, the determining unit 113 determines the electronic device 200 is not rotated if the rotation angle of the electronic device 200 is smaller than the predetermined value.
The second coordinate defining unit 114 defines a second planar coordinate system 1141 shown in
The storage unit 11 stores a database recording a number of characters and a number of words. If the determining unit 113 determines that the electronic device 200 is rotated, the searching unit 115 recognizes the handwriting 2241 according to the second coordinate of each touched point of the handwriting 2241 and retrieves one or more first characters (or words) 2231, shown in
If the determining unit 113 determines that the electronic device 200 is not rotated, the searching unit 115 recognizes the handwriting 2241 according to the first coordinate of each touched point of the handwriting 2241 and retrieves one or more second characters (or words) 2232, shown in
If one of the retrieved one or more first characters (or words) 2231 or one or more second characters (or words) 2232 is selected by the user, the display control unit 116 controls the display unit 22 to display the selected character (or word) on the text display region 222.
Referring to
At block 301, a recognition unit creates handwriting in response to handwriting input operation by a user, and a display control unit controls a display unit to display the created handwriting on a input display region of a user interface. The handwriting indicates information of locations of points touched by the user.
At block 302, a first coordinate defining unit defines a first planar coordinate system on an input display region of the user interface. In at least one embodiment, an electronic device has a rectangular obverse side, an origin O1 of the first planar is on the center of the input display region. The axis X1 of the first planar coordinate system extends along a width of the electronic device. The axis Y1 of the first planar coordinate system extends along a length of the electronic device. Each touched point of the handwriting is defined as a first coordinate (X1,Y1) in the first planar coordinate system.
At block 303, a determining unit determines whether the electronic device is rotated according to a rotation angle of the electronic device. In at least one embodiment, the determining unit determines the electronic device is rotated if the rotation angle of the electronic device is larger than a predetermined value, for example 5 degrees, and the process goes to block 304; otherwise, the determining unit determines the electronic device is not rotated if the rotation angle of the electronic device is smaller than the predetermined value, and the process goes to 306.
At block 304, a second coordinate defining unit defines a second planar coordinate system on the input display region and defines each touched point of the handwriting as a second coordinate. In at least one embodiment, the rotation angle is α, an origin O2 of the second planar coordinate system is overlapping with the origin O1 of the first planar coordinate system. The axis X2 of the second coordinate system has an angle α, which is opposite to a rotation direction of the electronic device, relating to the axis X1 of the first planar coordinate system. The axis Y2 of the second planar coordinate system has an angle α, which is opposite to the rotation direction of the electronic device, relating to the axis Y1 of the first planar coordinate system. Each touched point of the handwriting is defined as the second coordinate (X2,Y2) in the second planar coordinate system.
At block 305, a searching unit recognizes the handwriting according to the second coordinate of each touched point of the handwriting and retrieves one or more first characters (or words) which match the handwriting, in a database stored in a storage unit. The display control unit controls the display unit to display the retrieved one or more first characters (or words) on a search display region of the user interface for the user to select. If one of the retrieved one or more first characters (or words) is selected by the user, the display control unit controls the display unit to display the selected character (or word) on a text display region of the user interface.
At block 306, the searching unit recognizes the handwriting according to the first coordinate of each touched point of the handwriting and retrieves one or more second characters (or words) which match the handwriting, in a database stored in a storage unit. The display control unit controls the display unit to display the retrieved one or more second characters (or words) on the search display region of the user interface for the user to select. If one of the retrieved one or more second characters (or words) is selected by the user, the display control unit controls the display unit to display the selected character (or word) on a text display region of the user interface.
The embodiments shown and described above are only examples. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure, up to and including the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201310749003.0 | Dec 2013 | CN | national |