Device for practising Chinese character calligraphy
The invention belongs to the Chinese information processing technology field, relate to that the hardware configuration of practising Chinese character calligraphy and control program are common to be formed, do not have that paper copies and the device of practising Chinese character calligraphy is carried out in mimic for people.
From ancient times to the present, the method of practising Chinese character calligraphy mainly is to copy and mimic, a large amount of model cards at first all will be arranged, be a large amount of paper cards, in using collection, very inconvenient, facing the method for writing is main method in practising handwriting, its key is to face word and the copybook finished writing to advance to express comparison, is is especially punctuated and annotated by expert or instructor, is called " feedback calibration ", yet this step often can not be very timely, reduced by time restriction to practise handwriting efficient and the interest of practising handwriting, along with development of computer, people have developed the on-line handwritten Chinese character recognition device, online recognition technology result is the identification of Chinese character, emphasis is in the represented content of Chinese character, and it is desired to be discrimination and writing speed, and can not the Calligraph Art of Chinese character be compared and improve.
The objective of the invention is to, provide a kind of can be intuitively with writing with the device for practising Chinese character calligraphy that carries out the calligraphy art comparison, punctuates and annotates.
Following mode can realize the present invention:
Device for practising Chinese character calligraphy, hardware is formed and is comprised central processing unit, the display of copybook and handwriting input Chinese character shows the control mouth, and interior dress makes the ROM of the control program of device operation, can the handwriting input Chinese character write tablet, write the control mouth, data-carrier store, keyboard, the copybook storehouse is characterized in that:
A, the pen of writing input usefulness can be hard-tipped pen, or written whippy spring pen;
B, the control program that device is moved carry out: (1), startup as follows; (2), prepare: comprise that initialization and normal condition prompt show, (3), keyboard input, if there is key to press, enter key is handled, if no key is pressed, the continuation detection is write the control mouth and whether is write input, and (4), key are handled, according to the coding of key, the functional status buffer area and the word selection buffer area that are stored in number storage by function key and word selection key respectively are standby; (5), determine selected word address, be the word selection key code conversion selected word address; (6), get the display buffer district that selected graphemic code send number storage from the copybook storehouse; (7), institute's word selection sent show and on display, to show control mouthful, use when analyzing the stroke literary style of word for mimic; Enter preprocessor when (8), input being arranged on writing tablet; (9), preprocessor suitably handles hand-written input signal, comprise that the stroke of word is cut apart, smoothly, denoising, spatial sampling and standardization; (10), handle write font code send data-carrier store to write buffer area standby; (11), check and the functional status buffer area of data-carrier store to judge whether the being imitation state, not, directly show font code, be that the state of imitating is judged; (12), be to imitate state, proceed relevant the processing, if not imitate state, must be to face the state of writing; (13), copybook word and handwriting input are shown together central processor is combined with each other two kinds of font codes hereinto owing to imitate functional requirement; (14), send the display buffer district of data-carrier store compound font code, for demonstration is prepared; (15), relatively show, on display, see the situation that departs from of handwriting input word and copybook word at any time intuitively; (16), judge to imitate whether finish, if finish, carry out the comprehensive evaluation subroutine, if finish, proceed to write input, write the display buffer district that font code send data-carrier store; (17) face the state of writing, judge to face to write and whether finish,, then compare display subroutine,, continue to write input from writing the control mouth if do not finish if finish; (18), early morning the functional status buffer area, finish copybook and show or write, after copybook relatively shows, the functional status buffer area content in the data-carrier store removed, get time input record ready and use.
Face to write and finish to begin the comparison display subroutine that carries out, adopt following three kinds of modes to carry out, a kind of is to adopt skeleton profile Chinese character explicit representation one by one, the copybook word shows with the skeleton font, show with cutline font with the handwritten word that copybook does not overlap, another kind is the difference explicit representation, be font and the inconsistent part of copybook word that shows the handwriting input Chinese character better, can only demonstrate not superposed part of handwritten word and copybook word, also having a kind of is different tone explicit representations, and the copybook word shows with a kind of tone, partly show with the handwritten word that the copybook word does not overlap with another kind of tone, relatively the program of being shown in judges whether it is the profile demonstration one by one of sound frame, is then to carry out data processing, sending into display then shows, if difference shows, then also carry out data processing, send display to show again.
The comprehensive grading subroutine, be that vector representation used respectively in copybook word and handwritten word, calculate distance D and registration R between two vectors, judge handwritten word and copybook word degree of closeness in view of the above, its program is carried out as follows: generate vector, the following step will do word and calculates to figureofmerit, doing writing level again sorts out, goals for information is sent the display buffer district of data-carrier store, send display to show then, returns master routine again.
Copybook Chinese character that deposit in the storehouse of the present invention is the calligraphy copybook, under known handwriting input Chinese character condition, the registration that shows handwritten word and copybook word directly perceived, be convenient to correct, mimic and face card and can choose wantonly, the elastic head pen of similar writing brush makes drills to improve one's handwriting more true to nature, also allow hard-tipped pen input exercise hard-tipped pen calligraphical works, adopt electromagnetic induction type,, pressure sensitive or electrostatic coupling type write tablet, save a large amount of paper, the word of handwriting input can be stored, be convenient to analyze, sum up, adopt scoring, means such as voice and music help to strengthen the interest of practising handwriting, simplify keyboard, implement device is simplified.
Fig. 1 is a basic hardware arrangement plan of the present invention;
Fig. 2 is a control program process flow diagram of the present invention;
Fig. 3 is for comparing the display subroutine flow process.
Fig. 4 is the comprehensive grading subroutine
Fig. 5 is an elastic head synoptic diagram;
Fig. 6 is the hardware expanding configuration schematic diagram;
Fig. 7 is simple and easy keyboard synoptic diagram.
Embodiment:
Device for practising Chinese character calligraphy consists of central processing unit 1, the display 2 of copybook and handwriting input Chinese character, show control mouth 3, the RoM 4 of interior dress control program, can the handwriting input Chinese character write tablet 5, write control mouth 6, data-carrier store 7, keyboard 9, copybook storehouse 10, the pen 8 of writing input usefulness can be the nib of making of resilient material, shape such as brush writing skill are used for practicing Writing brush calligraphy, or practice hard-tipped pen calligraphical works with hard-tipped pen, writing tablet 5 is pressure-sensitive tablets, includes weak pressure sensor, sensing control circuit and A/D change-over circuit.It and write between the control mouthfuls 6 and use the exclusive data exchanged form.Write control mouthfuls 6 and be made up of sensing assays circuit, control circuit etc., keyboard 9 is simple and easy keyboards, is faced by the numerical key of 0-9, one and writes/imitate options button L/M and a start button K forms.
During use, press start button earlier, select suitable Chinese character corresponding sequence number (0-99) according to hundred Chinese characters in common use tables that sequence order in advance providing with the machine again, with numerical key sequence number is input in the device, again with options button determine to face write or imitate after, writing on the tablet 5 according to writing the Chinese character that demonstrates on the terminal display 2 with pen 8, wield the pen downwards and 8 increase writing tablet 5-L surface of contact, the compression area of writing on the tablet 5 increases, finally be converted to the stroke chap of electric signal, start writing 8 slightly, contact area reduces on the tablet 5 writing, and writes that compression area diminishes on the tablet 5, the stroke writing that device is received attenuates, therefore signal weaker, can write out the variable stroke of thickness according to writing needs.
Program circuit carries out as follows: behind the start button on (1) keypad, control program brings into operation among the rib M4, (2) preparation process, comprise that initialization, normal condition inspection and normal condition prompt show, initialization refers at first determine each parameters of operating part, and each parts is carried out the normal condition test, under normal circumstances, on display 2, demonstrate " normally " prompt, illustrate that adorning five is in normal condition, please the person of practising handwriting further operate; (3) the keyboard input judges whether each key of keyboard is pressed earlier, if there is key to press, the enter key handling procedure, if no button is pressed, the continuation detection is write control mouth 6 and whether is write input, (4) key is handled, according to the coding of key, the functional status buffer area and the word selection buffer area that are stored in number storage 7 by function key and word selection key respectively are standby, judge whether the key input is finished, do not finish and continue input, enter next step after finishing; (5) determine selected word address, central processing unit 1 is the word selection key code conversion selected word address; (6) graphemic code send the display buffer district, selected graphemic code is sent the display buffer district of data-carrier store 7; (7) institute's word selection is sent demonstration control mouth 3, on display 2, show; (8) write input, judging writing does not have not input on the tablet 5, if input is arranged, is for further processing, if there is not input, gets back to the situation that has keyboard not to press of checking; (9) pre-service is suitably handled hand-written input signal, comprises that the stroke of word is cut apart, and is level and smooth, denoising, spatial sampling and standardization etc.; (10) handle write font code send data-carrier store 7 to write buffer area standby; (11) copy, by checking the functional status buffer area of data-carrier store 7, judge whether it is the imitation state, if the imitation state carries out relevant operation, if not imitation state, directly font code is sent the display buffer district of data-carrier store 7, be presented on the display 2, imitation is divided into imitates and faces and write two states, imitates to be meant that the keyboard input finds out selected word, and demonstrate relevant copybook Chinese character on display 2, the person of practising handwriting is according to demonstration, write input, along with hand-written carrying out, the word of writing out just relatively shows with copybook on display 2 at any time, whether the stroke of handwritten word overlaps with the copybook word, all key elements such as the writing physical strength and the direction of wieling the pen just can give the person of practising handwriting with prompting immediately, are convenient to the practitioner in time adjust, and improve writing level; Facing and write, also is after the copybook word is presented on the display 2, and the Chinese character of the person's of practising handwriting handwriting input just is presented on the display 2 and makes comparisons after all having write, the horizontal condition with higher of this suitable calligraphy; (12) imitating, judge whether it is to imitate state, if proceed relevant the processing, if not imitate state, must be to face the state of writing; (13) imitating range request central processing unit 1 is combined with each other copybook graphemic code and handwritten word font code; (14) compound font code is sent the display buffer district of data-carrier store 7, for demonstration is prepared; (15) show; On the copybook display, see the situation that departs from of handwriting input word and copybook word at any time intuitively; (16) judge to imitate whether finish,, carry out the comprehensive grading subroutine,, proceed to write demonstration if do not finish if finish; (17) write the display buffer district that font code send number storage 7, prepare for writing demonstration; (18) judge to face to write whether finish, if finish, then compare display subroutine, transfer the sub-Cheng Chengxu of comprehensive grading afterwards, finish, continue to write input from writing control mouthfuls 6, present embodiment is got a kind of manner of comparison, i.e. skeleton profile explicit representation 2 one by one; (19) show or write after copybook relatively shows one by one finishing copybook, the functional status buffer area content of data-carrier store 7 is removed, get time input record ready and use.
For increasing the function of this device, can distinguish or increase simultaneously as lower device, as shown in Figure 6, the printer interface 11 that can join printer, the storer 12 of practising handwriting, the word of handwriting input before can storing, be convenient to collective analysis, the judgement person's of practising handwriting progressive speed, and remain weak point, also can be equipped with the voice output 13 of voice or music, instruct ROM15 with the computer interface 14 and the calligraphy of other computer exchange of information.