Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of screening technique and system to candidate regions, to improve the efficient of terminal input, improves user's input and experiences.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of screening technique to candidate regions, this method comprises:
Recognition result is discerned and obtained to the hand-written notes track data of importing in the record candidate regions through handwriting recognition engine to said hand-written notes track data;
According to said recognition result, the candidate word in the said candidate regions is filtered, and be presented in the said candidate regions after will filtering remaining candidate word rearrangement.
Said recognition result is discerned and obtained to hand-written notes track data, be specially:
Said handwriting recognition engine carries out feature extraction according to said hand-written notes track data;
Feature database in characteristic of being extracted and the recognition template storehouse is compared, and the stroked character that obtains optimum coupling English alphabet character or coupling is as recognition result.
Saidly candidate word in the candidate regions is filtered, is specially according to recognition result:
The initial of the phonetic of all candidate word is mated in said coupling English alphabet character that comparison is obtained and the said candidate regions, and candidate word that will it fails to match deletes from said candidate regions, keeps the candidate word that the match is successful in the said candidate regions.
Saidly candidate word in the candidate regions is filtered, is specially according to recognition result:
The first stroke of all candidate word mates in the stroked character of the said coupling that comparison is obtained and the said candidate regions, and candidate word that will it fails to match deletes from said candidate regions, keeps the candidate word that the match is successful in the said candidate regions.
This method further comprises:
To filter after remaining candidate word rearrangement is presented in the said candidate regions; Filter once more if desired; Then write down the hand-written notes track data of importing in the candidate regions again, and new recognition result is discerned and obtained to the hand-written notes track data of new input through handwriting recognition engine; According to said new recognition result, the candidate word in the current candidate regions is filtered once more, and be presented in the said candidate regions after will filtering remaining candidate word rearrangement.
The recognition result that said basis is new filters the candidate word in the current candidate regions once more, is specially:
If said new recognition result is the English alphabet character; The initial of then not carrying out the overmatching operation in the phonetic with all candidate word in said English alphabet character and the current candidate regions is mated; And the candidate word that will mate failure is deleted the successful candidate word of reservation coupling in the current candidate regions from current candidate regions;
If said new recognition result is a stroked character; The first stroke that does not then carry out the overmatching operation in the stroke with all candidate word in said stroked character and the current candidate regions matees; And the candidate word that will mate failure is deleted the successful candidate word of reservation coupling in the current candidate regions from current candidate regions.
The present invention also provides a kind of screening system to candidate regions, and this system comprises:
Data recordin module is used for writing down the hand-written notes track data that candidate regions is imported;
Handwriting recognition engine is used for recognition result is discerned and obtained to said hand-written notes track data;
The candidate word filtering module is used for based on said recognition result the candidate word in the said candidate regions being filtered, and is presented in the said candidate regions after will filtering remaining candidate word rearrangement.
Said handwriting recognition engine further comprises:
Characteristic extracting module is used for carrying out feature extraction according to said hand-written notes track data;
The characteristic comparing module is used for the feature database in characteristic of being extracted and recognition template storehouse is compared, and the stroked character that obtains optimum coupling English alphabet character or coupling is as recognition result.
Said candidate word filtering module is further used for; The initial of the phonetic of all candidate word is mated in said coupling English alphabet character that comparison is obtained and the said candidate regions; And the candidate word that will mate failure is deleted the successful candidate word of reservation coupling in the said candidate regions from said candidate regions.
Said candidate word filtering module is further used for; The first stroke of all candidate word matees in the stroked character of the said coupling that comparison is obtained and the said candidate regions; And the candidate word that will mate failure is deleted the successful candidate word of reservation coupling in the said candidate regions from said candidate regions.
Filtering after remaining candidate word rearrangement is presented in the said candidate regions, filter once more if desired, then said data recordin module writes down the hand-written notes track data of importing in the candidate regions again; New recognition result is discerned and obtained to said handwriting recognition engine to the hand-written notes track data of new input; Said candidate word filtering module filters the candidate word in the current candidate regions based on said new recognition result once more, and is presented in the said candidate regions after will filtering remaining candidate word rearrangement.
Said candidate word filtering module is further used for,
When said new recognition result is the English alphabet character; The initial of not carrying out the overmatching operation in the phonetic with all candidate word in said English alphabet character and the current candidate regions is mated; And the candidate word that will mate failure is deleted the successful candidate word of reservation coupling in the current candidate regions from current candidate regions;
When said new recognition result is stroked character; The first stroke that does not carry out the overmatching operation in the stroke with all candidate word in said stroked character and the current candidate regions matees; And the candidate word that will mate failure is deleted the successful candidate word of reservation coupling in the current candidate regions from current candidate regions.
A kind of screening technique and system provided by the present invention to candidate regions; The situation that candidate word when importing to the terminal in the candidate regions is too much, through the initial of handwriting recognition candidate word phonetic or the beginning stroke of candidate word, can the rapid screening candidate word; Make the candidate word quantity in the candidate regions reduce; The user can find required candidate word fast, thereby improves the efficient of terminal input, improves user's input and experiences.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment technical scheme of the present invention further is discussed in more detail.
A kind of screening technique provided by the present invention to candidate regions, as shown in Figure 3, mainly may further comprise the steps:
Step 301, recognition result is discerned and obtained to the hand-written notes track data of importing in the record candidate regions through handwriting recognition engine to hand-written notes track data.
When carrying out input operations such as phonetic, stroke the user; If produced the expansion of candidate word, then the user can be at the initial (several letters before also can being) or the first stroke (several strokes before also can being) of the quick hand-written candidate word phonetic that will select of candidate's spreading area (abbreviation candidate regions); Realize the hand-written notes track data imported in the terminal records candidate regions of input operation, and recognition result is discerned and obtained to hand-written notes track data through handwriting recognition engine.
Wherein, the handwriting recognition engine at terminal is discerned hand-written notes track data, and the operation that obtains recognition result is specially:
Handwriting recognition engine carries out feature extraction according to the hand-written notes track data that the user imports in candidate regions; Feature database in characteristic of being extracted and the pre-configured recognition template storehouse is compared, obtain the optimum coupling English alphabet character or the stroked character of coupling, and elect the coupling English alphabet character of said optimum or the stroked character of coupling as recognition result.
Step 302 according to recognition result, is filtered the candidate word in the candidate regions, and is presented in the candidate regions after will filtering remaining candidate word rearrangement.
If the recognition result that obtains in the step 301 is coupling English alphabet character; Then the initial of the phonetic of all candidate word is mated in terminal said coupling English alphabet character that comparison is obtained and the candidate regions; And the candidate word that will mate failure is deleted from candidate regions; Keep the successful candidate word of coupling in the candidate regions, and be presented in the candidate regions after the candidate word that the remains rearrangement;
If the recognition result that obtains in the step 301 is the stroked character of coupling; Then the first stroke of all candidate word matees in the stroked character of terminal said coupling that comparison is obtained and the candidate regions; And the candidate word that will mate failure is deleted from candidate regions; Keep the successful candidate word of coupling in the candidate regions, and be presented in the candidate regions after the candidate word that the remains rearrangement.
In addition; To filter after remaining candidate word rearrangement is presented in the candidate regions; Filter once more if desired; Then the terminal need be write down the hand-written notes track data of importing in the candidate regions again, and through handwriting recognition engine new recognition result is discerned and obtained to the hand-written notes track data of new input; According to said new recognition result, the candidate word in the current candidate regions is filtered once more, and be presented in the candidate regions after will filtering remaining candidate word rearrangement.Wherein, The operation of filtering once more is specially: if said new recognition result is the English alphabet character; The initial of then not carrying out the overmatching operation in the phonetic with all candidate word in said English alphabet character and the current candidate regions is mated; And the candidate word that will mate failure deletes from current candidate regions, keeps the successful candidate word of coupling in the current candidate regions, and the candidate word that remains is presented in the candidate regions after resequencing; If said new recognition result is a stroked character; The first stroke that does not then carry out the overmatching operation in the stroke with all candidate word in said stroked character and the current candidate regions matees; And the candidate word that will mate failure is deleted from current candidate regions; Keep the successful candidate word of coupling in the current candidate regions, and be presented in the candidate regions after the candidate word that the remains rearrangement.
Be example below with the portable terminal, and combine specific embodiment that the screening technique of above-mentioned candidate regions is further set forth in detail.
First shown in Figure 4, when the user on the mobile terminal through squares Pinyin input "D", it will appear in the candidate region many candidate words; Suppose you want to enter the word "but" because "but" the word first stroke is "Pie", that is written, then the user can quickly enter in the candidate region strokes "Pie" (Figure 4).Handwriting recognition engine of the mobile terminal in the candidate area based on the user input handwritten notes trajectory data for feature extraction, the extracted feature with a pre-configured in the library recognition template feature database for comparison, the recognition result is obtained stroke " Pie "; Subsequently, the mobile terminal of the stroke than the resulting" Pie "all the candidate and the candidate region of the first stroke to match words and failure to match the candidate word deleted from the candidate area, the candidate successfully retain match The candidate word, and retained the reordered candidate word displayed in the candidate region, the candidate region after filtering as shown in Figure 5, only "a", "more", "get", "hungry", "minute", "but" these candidate words.Thus, the user can from candidate regions, find very fast " but " word, thereby fast will " but " word submits to and goes up screen to get into edit box.
It should be noted that, in the results shown in Figure 5 on the basis of the candidate, if the user needs to be filtered again, the candidate region can be continued rapid input strokes "Shu."Handwriting recognition engine of the mobile terminal in the candidate area based on the user input handwritten notes trajectory data for feature extraction, the extracted feature with a pre-configured in the library recognition template feature database for comparison, a new recognition result is obtained stroke "Shu"; Subsequently, the mobile terminal of the stroke than the resulting "Shu" and the current candidate area strokes all the candidate words matching operations are not carried out the first stroke (ie, "the" word "Shu" strokes, "many" characters "a" stroke, "get" the word "Pie" strokes, "hungry" character "a" stroke, "minute" word
strokes, "but" the word "Shu" stroke) matching and fails to match the candidate word deleted from the current candidate region, candidate region to retain the current matching successful candidate word and preserved reordered candidate words shown in the candidate area.At this moment, only remaining " ", " but " these two candidate word, thus, just be more convenient for searching of user.
In addition, users can enter multiple strokes, for example: an input strokes "Ren", then the mobile terminal needs to be "Ren" and the candidate regions for all candidate words to match the first two strokes, resulting in only after a filter after left "and", "but" this two candidate words, the input efficiency is further improved.
As shown in Figure 7 again, when the user passes through the phonetic input on portable terminal, can in candidate regions, show many candidate word; What suppose that the user wants to import is " you " word, because the first letter of pinyin of " you " word is " n ", this moment, the user can input " n " or " N " (shown in Figure 7) fast on candidate regions.The handwriting recognition engine of portable terminal carries out feature extraction according to the hand-written notes track data that the user imports in candidate regions, the feature database in characteristic of being extracted and the pre-configured recognition template storehouse is compared, and the recognition result that obtains is letter " n "; Subsequently; The initial of all candidate word phonetics is mated in the said letter " n " that portable terminal obtains comparison and the candidate regions; And the candidate word that will mate failure deletes from candidate regions, keeps the successful candidate word of coupling in the candidate regions, and the candidate word that remains is presented in the candidate regions after resequencing; Candidate regions through after filtering is as shown in Figure 8, only remaining " you ", " ", " plan ", " Buddhist nun ", " mud ", " contrary ", " girl ", " Ni ", these several candidate word.Thus, the user can find " you " word very fast from candidate regions, goes up screen to get into edit box thereby fast " you " word is submitted to.
It should be noted that, in the results shown in Figure 8 on the basis of the candidate, if the user needs to be filtered again, the candidate region can be continued rapid input strokes "Pie."Handwriting recognition engine of the mobile terminal in the candidate area based on the user input handwritten notes trajectory data for feature extraction, the extracted feature with a pre-configured in the library recognition template feature database for comparison, a new recognition result is obtained stroke "Pie"; Subsequently, the mobile terminal of the stroke than the resulting "Pie" and the current candidate area strokes all the candidate words matching operations are not carried out the first stroke (ie, "you" word "Pie" strokes, "mean" word "Shu" strokes, "to be" the word of the "Shu" strokes, "Benny" the word "one" stroke, "mud" the word "dish" strokes, "reverse" the word "dish" stroke, etc. etc.) match, and the failure to match the candidate words from the current candidate region deleted retained in the current candidate area successfully matched candidate word, and retained the reordered candidate words displayed in the candidate region.At this moment, only remaining " you ", " Ni " these two candidate word, thus, just be more convenient for searching of user.
Corresponding above-mentioned screening technique to candidate regions, the present invention also provides a kind of screening system to candidate regions, and is as shown in Figure 9, and this system comprises: data recordin module 11, handwriting recognition engine 12 and candidate word filtering module 13 are formed.Wherein, data recordin module 11 is used for writing down the hand-written notes track data that candidate regions is imported.Handwriting recognition engine 12 is used for recognition result is discerned and obtained to hand-written notes track data.Candidate word filtering module 13 is used for based on recognition result, the candidate word in the candidate regions is filtered, and be presented in the candidate regions after will filtering remaining candidate word rearrangement.
Preferable, handwriting recognition engine 12 further comprises: characteristic extracting module 121 and characteristic comparing module 122.Characteristic extracting module 121 is used for carrying out feature extraction according to hand-written notes track data.Characteristic comparing module 122 is used for the feature database in characteristic of being extracted and recognition template storehouse is compared, and the stroked character that obtains optimum coupling English alphabet character or coupling is as recognition result.
Accordingly; Candidate word filtering module 13 is further used for; The initial of the phonetic of all candidate word is mated in coupling English alphabet character that comparison is obtained and the candidate regions, and the candidate word that will mate failure deletes from candidate regions, keeps the successful candidate word of coupling in the candidate regions; Perhaps, the first stroke of all candidate word matees in the stroked character of the said coupling that comparison is obtained and the candidate regions, and the candidate word that will mate failure deletes from candidate regions, keeps the successful candidate word of coupling in the candidate regions.
Preferable, filtering after remaining candidate word rearrangement is presented in the candidate regions, filter once more if desired, then data recordin module 11 writes down the hand-written notes track data of importing in the candidate regions again; New recognition result is discerned and obtained to the hand-written notes track data of 12 pairs of new inputs of handwriting recognition engine; Candidate word filtering module 13 filters the candidate word in the current candidate regions based on new recognition result once more, and is presented in the candidate regions after will filtering remaining candidate word rearrangement.Concrete; When new recognition result is the English alphabet character; The initial of not carrying out the overmatching operation in the phonetic of candidate word filtering module 13 with all candidate word in said English alphabet character and the current candidate regions is mated; And the candidate word that will mate failure is deleted the successful candidate word of reservation coupling in the current candidate regions from current candidate regions; When new recognition result is stroked character; The first stroke that does not carry out the overmatching operation in the stroke of candidate word filtering module 13 with all candidate word in said stroked character and the current candidate regions matees; And the candidate word that will mate failure is deleted the successful candidate word of reservation coupling in the current candidate regions from current candidate regions.
In sum; The present invention is directed to the too much situation of candidate word in when input candidate regions of terminal, through the initial of handwriting recognition candidate word phonetic or the beginning stroke of candidate word, can the rapid screening candidate word; Make the candidate word quantity in the candidate regions reduce; The user can find required candidate word fast, thereby improves the efficient of terminal input, improves user's input and experiences.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.