A kind of braille Chinese character converter and method thereof
Technical field
The present invention relates to braille input technology field, particularly a kind of braille Chinese character converter and method thereof.
Background technology
Along with China is for undertakings for disabled people growing interest, and the continuous progress of information society, blind person should enjoy the freedom of experiencing the information age, also should obtain the right that uses electronic product, special blind person is method and the approach that blind person and normal visual acuity personage carry out written communication, and this just need to be converted into Chinese character braille is easy, quickly.
Blind person uses Braille writing and exchanges.Braille claims again braille, and international braille is that basic structure forms by 6 protruding round dots, taking " side " as unit, is to specialize in blind person to touch the letter symbol of reading, writing.The braille that is foundation structure by 6 points that Blair (Braille) creates, the projection having on paper, what have is not protruding, forms 64 kinds of variations, i.e. 64 kinds of symbols.At each symbol left and right two row, each three points of every row, are called 1,2,3 points from top to bottom from the left side, be called 4,5,6 points from top to bottom, as shown in Figure 1 from the right.
At present, occurred that some aim at braille input media or the method for blind person's design, most devices or method can only be carried out the digitizing input of braille, can not carry out the conversion of braille Chinese character.Most input medias adopt keyboard inputting Braille, and as computer keyboard, cell phone keyboard, blind person need to, in strict accordance with the keyboard position input braille limiting, operate easy not, flexible.
Patent of invention number is 01118674.7 " Chinese braille is to the automatic switching method of Chinese character ", books printed in braille scanning recognition is become to braille text, or with keyboard inputting Braille text, this braille text is used as to phonetic stream, utilize Chinese braille comprehensive knowledge base, realize the automatic conversion of braille to Chinese character.The method conversion accuracy is high, be applicable to large in batches braille Chinese character conversion, but blind person can not get involved transfer process, cannot carry out necessary amendment, is not suitable for the Chinese character conversion of a small amount of braille or personalized word.
Patent of invention number is 200610034539.4 " patent half square braille digital coding Chinese character inputting method ", original button braille input method is improved, one side input is split as to en input, when blind person inputs a side, without button repeatedly, has improved input efficiency.But this input method requires blind person to remember too much rule and coded system.
Application number is 200910042415.4 " planarization input method of braille ", adopts special symbol "+" and " O " to replace concave point and the salient point in braille, three-dimensional braille is converted on touch pad or touch-screen to the input of plane braille.The method has been broken the writing characteristics of Braille, and requires the every input 1 side's point of blind person all will input the information of whole 6, and efficiency is not high.
Application number is 201210502329.9 " a kind of braille input method based on gesture identification ", inputs contrast gesture feature storehouse according to the user of gesture induction collection, restores corresponding braille information.The method goes out the corresponding table of a set of gesture braille according to the graphic feature information definition of 6 braille positions, needs blind person's learning and memory gesture, and has abandoned the writing characteristics of Braille.
In sum, braille input method of the prior art, adopts the method that defines new regulation, although can realize the input of braille, is not easy to blind person's study and grasp; Once for a long time need not, easily forget, be unfavorable for blind person's actual use.
Summary of the invention
The technical matters of object of the present invention and solution is the defect existing for prior art, proposes a kind of braille Chinese character converter and method thereof, realizes natural, the quickly conversion of braille to Chinese character.Blind person only need, according to the custom of daily writing braille, impact Braille on the touch-screen of device of the present invention, can realize fast the conversion of braille to Chinese character, and the typing of word.The present invention stores up standard syllable eigenwert storehouse and character word stock by embedded database, realizes the quick-searching of syllable and word.
In order to realize above-mentioned object, technical scheme of the present invention is:
A kind of braille Chinese character converter, formed by voice synthetic module 2, usb interface module 3 and microprocessor 4 in the touch-screen 1 and the housing 14 that are separately positioned on housing 14, in order to comprise, braille obtains wherein said microprocessor 4 and the embedded microprocessor of braille Chinese character conversion program module, and described microprocessor 4 is connected with touch-screen 1, voice synthetic module 2 and usb interface module 3 respectively.
Described touch-screen 1 is clicked the coordinate of Braille for gathering blind person, and reaches microprocessor 4; On four jiaos of outside frameworks of touch-screen 1, be respectively equipped with protruding triangle positioning mark, be used to indicate the bounds of touch-screen 1; Touch-screen 1 right side outside framework is provided with the initial guiding of protruding circle mark, is used to indicate blind person and clicks the reference position of Braille.
Described voice synthetic module 2 is for exporting the voice of prompting blind person operation.
Described usb interface module 3, for being connected with other digital devices, is exported braille and Chinese character information.
Described microcontroller 4 is embedded microprocessor, and operation braille Chinese character converse routine, for the treatment of Braille information and the conversion of braille Chinese character.
In order to realize above-mentioned object, another technical scheme of the present invention is:
The conversion method of a kind of braille Chinese character converter of the present invention, comprises the steps:
(1) generate standard syllable eigenwert storehouse, taking syllable as unit, deposit the braille eigenwert that syllable is corresponding; Generate character word stock, deposit the information such as Chinese character, syllable identifier, word frequency, everyday expressions;
(2) user's natural sequential write according to " right-to-left " on described touch-screen 1 impacts Braille; Described microprocessor (4) gathers Braille information, and by braille eigenwert acquisition algorithm, obtains braille eigenwert;
(3) described microprocessor 4 mates braille eigenwert with the eigenwert in standard syllable eigenwert storehouse, if mate unsuccessfully, goes to step (7); If the match is successful, obtain syllable identifier;
(4) in character word stock, search corresponding Chinese character, letter, numeral and punctuation mark according to syllable identifier, and point out with voice mode by described voice synthetic module 2;
(5) if Chinese character, described microprocessor 4 with use recently and word frequently sequence list unisonance candidate word, read aloud one by one the prompting word relevant to unisonance candidate word by described voice synthetic module 2 with voice mode, select for user; User adopts and clicks the selected current Chinese character that word is corresponding of reading aloud of touch-screen 1 mode, adopt and double-click the selected current whole word of reading aloud of touch-screen 1 mode, employing is drawn touch-screen 1 mode left and is ended and skip the current unisonance candidate word of reading aloud, and employing is drawn touch-screen 1 mode to the right and read aloud previous unisonance candidate word;
(6) user's employing is upwards drawn touch-screen 1 mode and is deleted the last selected Chinese character or word;
(7) user adopts stroke touch-screen 1 mode downwards to finish this braille Chinese character conversion, otherwise, go to step (2);
(8) described usb interface module 3 is exported the Chinese character word string after braille and the conversion of user input.
The braille eigenwert acquisition algorithm that above-mentioned steps (2) is described, comprises the steps:
(1) user impacts one " side " or many " side " Braille on described touch-screen 1; The coordinate of described microprocessor 4 real time record points, sequentially, to impacting time-out;
(2) the institute coordinate a little of described microprocessor 4 to record, sorts respectively to x coordinate figure and y coordinate figure, analyzes and rotating coordinate system, calculates the mean value of braille line-spacing, row distance, and " side " spacing, generates 6 judgement templates;
(3) described microprocessor 4 is taking " side " as unit, and right-to-left, by each point and 6 judgement template matches, generates braille eigenwert;
(4) described microprocessor 4 merges each " side " braille eigenwert, produces braille eigenwert.
Beneficial effect: a kind of braille Chinese character converter of the present invention and method thereof, for user's designs such as blind person and vision disorder personages, without memory button and predefine rule, only need be accustomed to (according to braille daily writing, right-to-left is clicked Braille), on touch-screen, with finger stroke Braille and swiping, can carry out the conversion of braille Chinese character.This input method provides verbal association function, and used Chinese character or word are carried out to word frequency or word frequency sequence, and high frequency Chinese character or word are preferentially selected, and has improved the efficiency of braille conversion Chinese character.
Apparatus and method of the present invention are simple to operate, nature, without special study and training, are conducive to apply.Device of the present invention is as a kind of braille input and blind Chinese conversion equipment, be connected with digital devices such as computing machine, PDA, mobile phones, can realize between blind person and normal person immediately, communication text easily, as mail, note, chat etc., can greatly improve blind person's ability to exchange and quality of life.
Brief description of the drawings
Fig. 1 is the bit map/bitmap of the Braille of prior art;
Fig. 2 is the aufbauprinciple block diagram of a kind of braille Chinese character converter of the present invention;
Fig. 3 is the front schematic view of a kind of braille Chinese character converter touch-screen of the present invention;
Fig. 4 is the process flow diagram of the conversion method of a kind of braille Chinese character converter of the present invention;
Fig. 5 is the bit map/bitmap of the Braille input of a kind of braille Chinese character converter of the present invention;
Fig. 6 is the structure illustration in the standard syllable eigenwert storehouse of the conversion method of a kind of braille Chinese character converter of the present invention;
Fig. 7 is the structure illustration of the character word stock of the conversion method of a kind of braille Chinese character converter of the present invention;
Fig. 8 is the process flow diagram of the braille eigenwert acquisition algorithm of the conversion method of a kind of braille Chinese character converter of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention will be further described.
As shown in Figure 2, a kind of braille Chinese character converter, formed by voice synthetic module 2, usb interface module 3 and microprocessor 4 in the touch-screen 1 and the housing 14 that are separately positioned on housing 14, in order to comprise, braille obtains wherein said microprocessor 4 and the embedded microprocessor of braille Chinese character conversion program module, and described microprocessor 4 is connected with touch-screen 1, voice synthetic module 2 and usb interface module 3 respectively.
Described touch-screen 1 is selected capacitive touch screen, and its surface adopts heavy sheet glass or plastics, sturdy and durable, is applicable to blind person's operation.Touch-screen 1 is connected with microprocessor 4 by SPI interface, clicks the coordinate of Braille for gathering blind person.As shown in Figure 3, on four jiaos of outside frameworks of touch-screen 1, be respectively equipped with protruding triangle positioning mark 11, be used to indicate the bounds of touch-screen 1, right side outside framework is provided with the initial guiding of protruding circle mark 12, is used to indicate blind person and clicks the reference position of Braille; In Fig. 3, touch-screen 1 body 13 is fixed on device case 14.
Described voice synthetic module 2 is selected Chinese speech synthesis chip XF-S4040, this chip can synthesize Chinese text and English alphabet arbitrarily, support the text of GB2312, GBK, BIG5, tetra-kinds of ISNs of UNICODE, phonetic synthesis effect is clear, natural, accurate, there are 6 kinds of speaker sound, be connected with microprocessor 4 by I2C bus.
Described usb interface module 3 is usb circuit, for being connected with other digital devices, and output braille and Chinese character information.
Described microprocessor 4 is selected the embedded microprocessor of ARM9 core, and operation braille Chinese character converse routine, for the treatment of Braille information and the conversion of braille Chinese character.
As shown in Figure 4, for the conversion method of a kind of braille Chinese character converter of the present invention, comprise the steps:
(1) generate standard syllable eigenwert storehouse, taking syllable as unit, deposit the braille eigenwert that syllable is corresponding; Generate character word stock, deposit the information such as Chinese character, syllable identifier, word frequency, everyday expressions;
(2) user's natural sequential write according to " right-to-left " on described touch-screen 1 impacts Braille; Described microprocessor 4 gathers Braille information, and by braille eigenwert acquisition algorithm, obtains braille eigenwert;
(3) described microprocessor 4 mates braille eigenwert with the eigenwert in standard syllable eigenwert storehouse, if mate unsuccessfully, goes to step (7); If the match is successful, obtain syllable identifier;
(4) in character word stock, search corresponding Chinese character, letter, numeral and punctuation mark according to syllable identifier, and point out with voice mode by described voice synthetic module 2;
(5) if Chinese character, described microprocessor 4 with use recently and word frequently sequence list unisonance candidate word, read aloud one by one the prompting word relevant to unisonance candidate word by described voice synthetic module 2 with voice mode, select for user; User adopts and clicks the selected current Chinese character that word is corresponding of reading aloud of touch-screen 1 mode, adopt and double-click the selected current whole word of reading aloud of touch-screen 1 mode, employing is drawn touch-screen 1 mode left and is ended and skip the current unisonance candidate word of reading aloud, and employing is drawn touch-screen 1 mode to the right and read aloud previous unisonance candidate word;
(6) user's employing is upwards drawn touch-screen 1 mode and is deleted the last selected Chinese character or word;
(7) user adopts stroke touch-screen 1 mode downwards to finish this braille Chinese character conversion, otherwise, go to step (2);
(8) described usb interface module 3 is exported the Chinese character word string after braille and the conversion of user input.
In method described above, user impacts Braille by the natural sequential write of " right-to-left ".A kind of braille Chinese character converter of the present invention, gathers the some bit number of Braille as shown in Figure 5.
Standard syllable eigenwert storehouse described above, taking Chinese phonetic alphabet syllable as unit, deposits the braille eigenwert that syllable is corresponding.
Chinese braille Pinyin coding is that the initial consonant of Chinese and simple or compound vowel of a Chinese syllable are combined into syllable.Inventor merges the Braille eigenwert of syllable, generates the Standard Eigenvalue of syllable, stores in standard syllable characteristic value data storehouse, and its structure as shown in Figure 6.For example: this syllable of ba, is made up of initial consonant b and simple or compound vowel of a Chinese syllable a.The braille of initial consonant b is
point position eigenwert is 12, and the braille of simple or compound vowel of a Chinese syllable a is
point position eigenwert is 35, and two side's brailles of syllabication ba are
point position feature coding is 12 ' 35, and this coding is the Standard Eigenvalue of ba syllable.
Therefore, Chinese braille at least needs two " side " braille to represent a Chinese-character pronunciation.If mark-on tone, needs to increase one " side " tone braille again, totally three " side " braille.Input tone information, can reduce the quantity of candidate word, improve efficiency of selection.
Consider other characters of input, and simplify storage, by English alphabet, numeral and punctuation mark, regard an independent syllable as, be stored in same standard syllable feature database with the Chinese phonetic alphabet.
Character word stock described above, deposits the information such as Chinese character, syllable identifier, tone, word frequency, everyday expressions, and its structure as shown in Figure 7, is convenient to retrieve unisonance Chinese character, and selects word to carry out dynamic order frequently according to Chinese character.When unisonance character reminding, the first Chinese character of the last input of prompting, secondly points out according to word frequency height.Support verbal association function, be convenient to blind person's Rapid input Chinese character.
The database such as standard syllable eigenwert storehouse, character word stock described above, all adopts SQLite design.SQLite is a kind of relationship type embedded database, and transplantability is good, efficient and reliable.
As shown in Figure 8, the braille eigenwert acquisition algorithm of a kind of braille Chinese character converter of the present invention, comprises the steps:
(1) user impacts one " side " or many " side " Braille on described touch-screen 1; The coordinate of described microprocessor 4 real time record points, sequentially, to impacting time-out;
(2) the institute coordinate a little of described microprocessor 4 to record, sorts respectively to x coordinate figure and y coordinate figure, analyzes and rotating coordinate system, calculates the mean value of braille line-spacing, row distance, and " side " spacing, generates 6 judgement templates;
(3) described microprocessor 4 is taking " side " as unit, and right-to-left, by each point and 6 judgement template matches, generates braille eigenwert;
(4) described microprocessor 4 merges each " side " braille eigenwert, produces braille eigenwert.
Blind person's daily writing braille need to be got ready by scale and awl on paper, and existing keyboard braille input method is also that button is corresponding one by one with braille point.This algorithm is strictly not spacing to getting ready, correct as long as the some position of Braille distributes relatively, and braille is write and allowed in many ways, and some column pitch can convergent-divergent.Therefore, this algorithm has stronger adaptability, and the blind users that is applicable to different writing styles uses.
Using method
1. blind users right-to-left on the touch-screen 1 of device of the present invention impacts Braille with finger or braille pen.
2. the braille that device of the present invention is inputted by voice message corresponds to Chinese character, letter, numeral, punctuate etc.
If 3. Chinese character, and have phonetically similar word, user is according to the word of voice message, and point touching screen 1 is selected the current Chinese character that word is corresponding of reading aloud, or double-clicks touch-screen 1 and select the current word of reading aloud; Swipe and end and skip the current unisonance candidate word of reading aloud by a left side, swipe and read aloud previous unisonance candidate word by the right side; Delete the last selected Chinese character or word by above swiping; By under swipe and finish the conversion of this braille Chinese character.
4. device of the present invention, by the Chinese character word string after the braille of user's input and conversion, exports other digital devices of connect to by USB interface.
The present embodiment is more excellent embodiment of the present invention; it should be noted that; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these changes and distortion all should belong to the protection domain of the appended claim of the present invention.