Background technology
The keyboard input is the most traditional at present, the most general a kind of input mode, but because we the employed keyboard overwhelming majority is a QWERTY keyboard, if Chinese character is imported, just must use a kind of input method of Chinese character, though various input methods based on keyboard emerge in an endless stream, for example: " five ", " phonetic ", " Intelligent ABC ", " Zheng's sign indicating number " or the like, the appearance of these input methods has also brought certain convenience for the Chinese character typing, but these input methods also exist many shortcomings simultaneously, such as: the spelling input method dialect disturbs big, phonetically similar word is many, repetition rate of coding height, and five-stroke input method needs to learn by heart coding inevitably, input rule etc., thereby various input method all can't be accomplished satisfactory to both parties neat U.S. at learnability and ease for use.
In recent years, the proposition of hand-written inputting method, input has proposed great challenge to keyboard, it is hand-written on touch-screen by built-in stylus that it refers to the electronic product terminal, the recognition system of touch-screen by inside is converted to the discernible standard letter of electronic product terminal to hand-written various fonts and is presented on the touch-screen, so just improved the speed of input widely; And the importer need not additionally to train and can use.
But, handwriting input is used alone as a kind of input method at present traditional electronic product terminal, in input mode is in keyboard input and handwriting input and the electronic product deposited, carry out the Chinese character input and need at first to select to determine handwriting input mode or keyboard entry method, dual mode switches and can not finish automatically, use particularly inconvenience, have bigger use limitation.
Summary of the invention
The technical problem to be solved in the present invention is: a kind of device that can realize handwriting input automatically is provided, no matter which kind of method the input state of this system's electronic product terminal initial is, can discern beginning handwriting input state as required automatically, simple to operate, it is convenient to realize.
The present invention realizes by following technical proposals:
A kind of device of automatic realization handwriting input comprises: handwriting pad, and display screen, stylus also comprises:
Hand-written procedure identification unit is used for judging whether to carry out the handwriting input process according to the relative operating state of stylus with handwriting pad;
Dot matrix recognizer unit is used to store the algorithm of this word being discerned according to input trajectory information;
Hand-written logical algorithm unit is used for calling related algorithm from dot matrix recognizer unit according to input trajectory and carries out literal identification, carries out the reading of other related data, calculating and judgment processing;
The hand-written processing unit of finishing is used for the word that identification is finished dealing with is exported.
Further, this device also comprises hand-written state recognition unit, and described hand-written state recognition unit also comprises:
Refer to sense of touch notice of invitation unit, be used to receive the hand-written trigger pip of stylus contact handwriting pad;
Take off sense of touch notice of invitation unit, be used to receive stylus and leave handwriting pad, finish the signal of handwriting input.
Further, described handwriting pad and display screen are touch-screen.
Further, described hand-written procedure identification unit is according to the relative operating state of stylus with handwriting pad, judge whether stylus carries out handwriting input and realize by following method: the first timer and first setpoint distance are set, judge stylus on handwriting pad the displacement in the first timer timing whether greater than first setpoint distance, if show that then stylus is carrying out handwriting input.
Further, described stylus displacement is to calculate by calculating stylus position coordinates of starting point and terminal point on handwriting pad.
Further, this device also comprises further:
Keyboard operation perception unit is used to receive the button operation trigger pip;
The keyboard input block is used under keyboard input service state, receives the input information of keyboard;
Processing unit is finished in the keyboard input, is used for the information of keyboard input is made up, and generates Chinese character, and after confirming the result is exported.
Further, described keyboard operation perception element output signal triggers hand-written state recognition unit and quits work, and described hand-written state recognition unit output signal triggers the keyboard input block and quits work.
Compared with prior art, the device of handwriting input proposed by the invention can be discerned the handwriting input state automatically, need not to carry out the setting of hand-written inputting method in input process, makes that the switching of handwriting input is more succinct, convenience.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is further introduced, but not as a limitation of the invention.
With reference to figure 1, a kind of automatic realization hand input device comprises: button operation perception unit 1, keyboard input block 2, keyboard input are finished processing unit 3, refer to sense of touch notice of invitation unit 4, are taken off sense of touch notice of invitation unit 5, hand-written procedure identification unit 6, handwriting tracks receives and display unit 7, dot matrix recognizer unit 8, hand-written logical algorithm unit 9 and the hand-written processing unit 10 of finishing, wherein:
Keyboard operation perception unit 1 is used to receive the button operation trigger pip;
Keyboard input block 2, be used to receive keyboard input state trigger pip after, under keyboard input service state, receive the input information of keyboard;
Processing unit 3 is finished in the keyboard input, is used for the information of keyboard input is recognized, made up, and generates possible selection Chinese character, and the result after will confirming exports to the display screen demonstration;
Refer to sense of touch notice of invitation unit 4, be used to receive the signal of stylus contact handwriting pad, wherein be provided with finger and touch timer, refer to touch timer zero clearing when stylus contact handwriting pad and restart;
Take off sense of touch notice of invitation unit 5, be used to receive the signal that stylus leaves handwriting pad, wherein be provided with to take off and touch timer, take off to touch and take off when touching handwriting pad zero clearing at stylus and restart;
Hand-written procedure identification unit 6 after being used to receive hand-written state trigger pip and stopping hand-written state trigger pip, judges whether stylus carries out handwriting input;
Handwriting tracks receives and display unit 7, is used for temporarily storing and showing the track of hand-written process;
Dot matrix recognizer unit 8 is used to store the algorithm of this word being discerned according to input trajectory information;
Hand-written logical algorithm unit 9 is used for calling related algorithm from dot matrix recognizer unit 8 according to input trajectory and carries out literal identification and carry out the reading of other related data, calculating and judgment processing;
The hand-written processing unit 10 of finishing is used for that the word that identification is finished dealing with is outputed to display screen and shows.
Referring to figs. 2 and 3 shown in, utilize in the electronic product of this device, in carrying out Chinese character input process, if use originally is the keyboard entry method input, then will convert to and utilize handwriting pad to carry out manual input mode, this system realizes that automatically the course of work of handwriting input is as follows:
Step 101: when the electronics applications program start, keyboard input block 2 starts, and loads the keyboard spelling input method, opens the interface of input method below screen;
Step 102: utilize the combination of a plurality of buttons on the keyboard that electronic product carries, carry out the Chinese character input, finish affirmation and the output that processing unit 3 carries out the Chinese character input by the keyboard input and show;
With the mobile phone is example: input " urging ", successively press 2 keys and 8 key combinations, the interface of input method top shows possible phonetic elements combination " bu cu cun cuo cui ", move right and select the phonetic element to choose " cu ", pressing the OK key moves to focus in the candidate tabulation of interface of input method below, the candidate that moves right is pressed the OK key and is selected the input candidate " urge " demonstration.
Step 103: trigger handwriting input, finish the input of " advancing ", its realization is specially:
Step 1031: refer to that sense of touch notice of invitation unit 4 detects hand-written touch pen and presses on the handwriting area of touch-screen, send hand-written state trigger pip, send trigger pip to keyboard input block 2 simultaneously, keyboard input block 2 is quit work to hand-written procedure identification unit 6;
Step 1032: hand-written procedure identification unit 6 judge stylus in the timing of first timer whether the displacement in the handwriting input zone greater than first distance, if, then starting handwriting tracks automatically receives and display unit 7, interface of input method empties, and change to handwriting interface, if not, otherwise processed;
Wherein: the displacement of stylus is to obtain by the change calculations of calculating stylus position coordinates in the first timer timing;
Step 1033: stylus is finished the input of " advancing " on handwriting pad, handwriting tracks receives with display unit 7 records and by display screen and shows this input trajectory, receive stylus when leaving the signal of touch-screen when taking off sense of touch notice of invitation unit 5, show that this word input finishes, hand-written logical algorithm unit 9 calls related algorithm according to input trajectory from dot matrix recognizer unit 8 carries out literal identification and carries out reading of other related data, calculate and judgment processing, the hand-written processing unit 10 of finishing is exported demonstration with selecting " advancing " the word ground result who finishes dealing with to export to display screen by display screen.
Thus, finished the input of " promotion ", in keyboard input " urging " afterwards, this system's Direct Recognition the switching of handwriting input state, and need not artificial setting.
Step 104: if in the handwriting input process, carry out keyboard operation, button operation perception unit 1 triggers handwriting tracks and receives and display unit 7 power cut-offs, withdraws from the handwriting input mode automatically, switches to keyboard entry method, can continue to utilize the keyboard input.
In another embodiment, can utilize touch-screen to realize the function of handwriting pad and display screen simultaneously.