Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme of the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, other embodiments all that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belong to the scope of protection of the invention.
A kind of process flow diagram calibrating the method for touch-screen input that Fig. 1 provides for the embodiment of the present invention.With reference to Fig. 1, the embodiment of the present invention provides a kind of method of calibrating touch-screen input, and described method can be performed, such as, by execution such as touch-screen mobile phone, panel computer, personal digital assistants (PDA) by the various mobile terminals with touch-screen.Described method comprises:
11, the record triggering command inputted by interface of input method is received, described record triggering command comprises the first character and the second character, wherein, described first character is the character carrying out deletion action last input front, described second character is the character carrying out first input after deletion action, and the viewing area of described first character is the first viewing area, the viewing area of described second character is the second viewing area.
In embodiments of the present invention, described interface of input method can be virtual full keyboard interface or nine grids interface etc.Described record triggering command in this article refers to three button operations carried out continuously successively, and these three times middle the one-touch successively in continuous key-press operation are operating as deletion action, described deletion action for example can for pressing back lattice key or pressing other buttons identical with time lattice key function.Such as, press q key successively continuously, namely Hui Gejian, w key can be and once record triggering command.In embodiments of the present invention, described record triggering command performs record operation in order to triggering mobile terminals.Particularly, for example, when record triggering command is r key, Hui Gejian, g key, when pressing r key, Hui Gejian, g key successively continuously, can triggering mobile terminals record character r and character g.
During application this method, described " the first character " can be considered user because gesture custom the character of mistake input, described " the second character " can be considered that user corrects a mistake the character of input and the correct characters that inputs.For example, when record triggering command is r key, Hui Gejian, g key, " the first character " is character r, and " the second character " is character g.
12, the number of times receiving described record triggering command in cycle fixed time is recorded in.
Such as, at the appointed time in the cycle, press record triggering command first (such as, press r key continuously successively, Hui Gejian, g key) time, record described record triggering command (r key, Hui Gejian, g key) number of times be 1, second time is pressed described record triggering command and (is pressed r key continuously successively, Hui Gejian, g key) time, record described record triggering command and (press r key continuously successively, Hui Gejian, g key) number of times be 2, the rest may be inferred, press described record triggering command each time backward, the described triggering command of record (presses r key successively continuously, Hui Gejian, g key) number of times add 1.Wherein, described cycle fixed time can be the cycle any time, such as one week, one month, two months etc., but in order to the input habit making record result can either reflect user, be unlikely again and cause record excessively (namely, not reflecting that the common input error of input habit is also recorded), preferably, described cycle fixed time is one month.
Concrete implementation can be for example: the whole buttons on interface of input method are numbered in order, and such as a, b, c, d... reference numeral is 1,2,3,4..., carries out record, such as map [] [] with a two-dimensional array.When first time presses c key, Hui Gejian, b key successively continuously, because c corresponds to numbering 3, b corresponds to numbering 2, thus, arranging map [3] [2] is 1, and when second time presses c key, Hui Gejian, b key successively continuously, arranging map [3] [2] is 2..., the rest may be inferred later, do not repeat them here.
13, when the number of times of the described record triggering command of reception of described record reaches pre-set threshold value, described first viewing area in described interface of input method and described second viewing area are calibrated.
Described pre-set threshold value can for any value preset, but be the input habit enabling the number of times of the described record triggering command of the reception of described record accurately reflect user, such as, user wants when carrying out touch-screen input by character G, because some gestures are accustomed to, input be but G, it is the input habit of user that this process occurs once can not reflect completely, only have when this process occurs more repeatedly, the input habit of user could be reflected.Thus, preferably, described pre-set threshold value be 3 or be greater than 3 any value.
When the number of times of the described record triggering command of reception of described record reaches pre-set threshold value, corresponding calibration operation can be carried out.
Alternatively, in one embodiment of the invention, after described first viewing area in described interface of input method and described second viewing area being calibrated described in step 13, described method also can comprise: arranging the number of times receiving described record triggering command is zero, to restart to record the number of times receiving described record triggering command.So, after primary calibration completes, described record triggering command is rearranged into zero, follow-up when pressing described triggering command, need to restart calculation times, avoid because described record triggering command number of times reaches pre-set threshold value, press described record triggering command each time all need to carry out calibration operation and the excessive calibration caused follow-up.
The method of the calibration touch-screen input that the embodiment of the present invention provides, receiving record triggering command also records the number of times of the record triggering command received, the number of times of the record triggering command received can reflect the input habit of user time larger, thus, by the number of times of described for the reception of described record record triggering command is compared with pre-set threshold value, when the number of times of the described record triggering command of reception of described record reaches pre-set threshold value, can determine that described record triggering command occurs frequent, and then the first viewing area described in described record triggering command and described second viewing area are calibrated, thus, can input according to user habit dynamic calibration, improve the accuracy of touch-screen input.
Further, in another embodiment of the present invention, in a step 11, after receiving described record triggering command, described method also can comprise: record the first character described in described record triggering command and described second character.
Now carry out calibration to the first viewing area described in described interface of input method and described second viewing area described in step 13 can comprise:
Obtain the position relationship of described first viewing area and described second viewing area.
Particularly, a kind of implementation obtains the position relationship of described first viewing area and described second viewing area.Certainly, the present invention also can adopt other modes as known in the art to obtain the position relationship of described first viewing area and described second viewing area.
According to the described position relationship obtained, change described first viewing area and described second viewing area and calibrate.
Wherein, the position relationship between described first character and described second character can comprise following two kinds of position relationships: there is frontier point between described first viewing area and described second viewing area, there is boundary line between described first viewing area and described second viewing area.Be described in detail with regard to these two kinds of position relationships below.
Alternatively, when there is frontier point between described first viewing area and described second viewing area, the described described position relationship according to obtaining, changing described first viewing area and described second viewing area can specifically comprise:
When keeping the total area of described first viewing area and described second viewing area constant, described frontier point is moved in direction along the line between the center and the center of described second viewing area of described first viewing area and towards described first center, viewing area, to reduce described first viewing area, increase described second viewing area simultaneously.Wherein, preferably, the displacement of described frontier point is less than 10% of the catercorner length of described first viewing area or described second viewing area.So, the displacement of described frontier point is less, can not affect greatly described first viewing area, and follow-up when again reaching calibration condition, again can carry out calibration operation, can not produce the problem that calibration is excessive.
Alternatively, when there is boundary line between described first viewing area and described second viewing area, the described described position relationship according to obtaining, changing described first viewing area and described second viewing area can specifically comprise:
When keeping the total area of described first viewing area and described second viewing area constant, along perpendicular to the line between the center of described first viewing area and the center of described second viewing area, and move described boundary line towards the direction of described first viewing area, to reduce described first viewing area, increase described second viewing area simultaneously.
Wherein, preferably, the displacement of described boundary line is less than 10% of the length of side of described first viewing area or described second viewing area.So, the displacement of described frontier point is less, can not affect greatly described first viewing area, and follow-up when again reaching calibration condition, again can carry out calibration operation, can not produce the problem that calibration is excessive.
For a better understanding of the present invention, for specific embodiment, the present invention is further described below.Also notably, embodiment cited is below a part of embodiment of the present invention, and those skilled in the art are by content of the present invention, and can be easy to expect other embodiments, they all within the scope of the invention.
A kind of particular flow sheet calibrating the method for touch-screen input that Fig. 2 provides for the embodiment of the present invention.The schematic diagram being shown in a part for the interface of input method on touch-screen that Fig. 3 A provides for the embodiment of the present invention.Fig. 3 B is the schematic diagram of character R shown in calibration chart 2 and character G.Below in conjunction with Fig. 2, Fig. 3 A and Fig. 3 B, to record, triggering command is character R, Hui Gejian, character G is described the present embodiment, and the method for the calibration touch-screen input that the present embodiment provides comprises:
21, all buttons on interface of input method are numbered in order.Detailed implementation can record the number of times of receiving record triggering command with a two-dimensional array map [] [].Wherein, character a-z corresponds to 1-26, character R and corresponds to 18, character G corresponding to 7.Certainly, other modes also can be adopted to complete the function of this step.
22, the record triggering command (that is, pressing character R, Hui Gejian, character G successively continuously) that user is inputted by interface of input method is received, and record.
Particularly, with reference to Fig. 3 A, user has pressed character " G ", but due to the reason that some gestures are accustomed to, input method people for he press be " R " letter, user sees that the result of input is not desired, just presses back lattice key by character " R " rollback, cautiously again goes by character " G ".Now, the record triggering command (that is, pressing character R, Hui Gejian, character G successively continuously) that inputted by interface of input method of user described in mobile terminal records.First time is when receiving described record triggering command, record map [18] [7]=1, when second time receives described record triggering command, record map [18] [7]=2, often receive once described record triggering command, the value of map [18] [7] adds 1 on upper basis once backward.
23, when the number of times of the record triggering command recorded reaches pre-set threshold value, touch-screen input is calibrated.Namely in map [18] [7] >=3(pre-set threshold value) time, character R and character G is calibrated.
Calibration steps is specially: when the total area of the viewing area of the viewing area and character G that keep character R is constant, line between the center and the center of character G viewing area of character R viewing area, and the frontier point moved towards the direction of character R between character R and character G, to increase the viewing area of character G, reduce the viewing area of character R simultaneously.Wherein, the displacement of described frontier point is less than 10% of the catercorner length of the viewing area of character R or the viewing area of described character G.
Particularly, with reference to Fig. 3 B, before calibration, the frontier point between character R and character G is at position 1 place, and line 4 is through the frontier point at 1 place and perpendicular to the line 3 center of character R viewing area and the center of character G viewing area.During calibration, along line 3 and towards the direction at the center of character R, frontier point is moved to position 2 from position 1, accordingly, line 4 moves to line 5 place.Line 5 is the separatrix of character R and character G viewing area.Character R is divided into two parts by line 5: the blank parts in character R viewing area and dash area, and wherein, dash area belongs to character G after calibration, and blank parts belongs to character R.User follow-up again by intersection between character R and character G time, character R or character G can be distinguished according to the position relationship of intersection and separatrix 5.It should be noted that, dash area in character R viewing area can also be other any shapes, such as, with position 1 for the center of circle, position 2 is a part for the circle of radius, a part for this circle is the part of the viewing area falling into character R, and can certainly be other shapes, the embodiment of the present invention limit.
24, after calibration, arranging the number of times receiving described record triggering command is zero, receives described record triggering command to restart record.Namely, after calibration completes, arrange map [18] [7]=0.
Embodiment is above illustrated the situation that there is frontier point between two viewing areas corresponding to two characters.It is noted that the embodiment of the present invention is also applicable to the situation that there is boundary line between two viewing areas.There is the situation of boundary line between two viewing areas with embodiment is roughly the same above, difference is only calibration process.Below in conjunction with Fig. 3 C, to record, triggering command is character T, Hui Gejian, character G carries out brief description to calibration process in the case.
As shown in Figure 3 C, before calibration, boundary line between the viewing area of character T and the viewing area of character G is at position 7 place, during calibration, boundary line perpendicular to the line between the center of the viewing area of character T and the center of the viewing area of character G, and is moved to position 8 from position 7 towards the direction of the viewing area of character T by edge.After calibration, the dash area between position 7 and position 8 belongs to the viewing area of character G, and the viewing area of position 8 is only the blank parts of character T viewing area.Like this, user follow-up again by intersection between character T and character G time, character T or character G can be distinguished.
The method of the calibration touch-screen input that the embodiment of the present invention provides, receiving record triggering command also records the number of times of the record triggering command received, the number of times of the record triggering command received can reflect the input habit of user time larger, thus, by the number of times of described for the reception of described record record triggering command is compared with pre-set threshold value, when the number of times of the described record triggering command of reception of described record reaches pre-set threshold value, can determine that described record triggering command occurs frequent, and then the first viewing area described in described record triggering command and described second viewing area are calibrated, thus, can input according to user habit dynamic calibration, improve the accuracy of touch-screen input.
Corresponding with said method, the embodiment of the present invention also provides a kind of mobile terminal 40, and as shown in Figure 4, described mobile terminal 40 comprises touch-screen 41, storer 42 and central processing unit 43.
Touch-screen 41, for display input method interface, and for receiving the record triggering command that user is inputted by interface of input method, described record triggering command comprises the first character and the second character, wherein, described first character is the character carrying out last input before deletion action, and described second character is the character carrying out first input after deletion action, and the viewing area of described first character is the first viewing area, the viewing area of described second character is the second viewing area.
Storer 42, for being recorded in the cycle fixed time number of times receiving described record triggering command.
Central processing unit 43, for when the number of times of the described record triggering command of reception that described storer 42 records reaches pre-set threshold value, calibrates the first viewing area described in described interface of input method and described second viewing area.
Alternatively, described storer 42 also for: after described central processing unit is calibrated the first viewing area described in described interface of input method and described second viewing area, arranging the number of times receiving described record triggering command is zero, to restart to record the number of times receiving described record triggering command.
The mobile terminal that the embodiment of the present invention provides, touch-screen 41 receiving record triggering command is also recorded the number of times of received record triggering command by storer 42, the number of times of the record triggering command received can reflect the input habit of user time larger, thus, by the number of times of described for the reception of described record record triggering command is compared with pre-set threshold value, when the number of times of the described record triggering command of reception of described record reaches pre-set threshold value, can determine that described record triggering command occurs frequent, and then central processing unit 43 is calibrated the first viewing area described in described record triggering command and described second viewing area, thus, can input according to user habit dynamic calibration, improve the accuracy of touch-screen input.
Alternatively, in another embodiment of the present invention, described storer 42 also for:
After the described record triggering command of reception, record the first character described in described record triggering command and described second character;
Described central processing unit 43 for:
Obtain the position relationship of described first viewing area and described second viewing area;
According to the described position relationship obtained, change described first viewing area and described second viewing area and calibrate.
Wherein, the position relationship between described first character and described second character can comprise following two kinds of position relationships: there is frontier point between described first viewing area and described second viewing area, there is boundary line between described first viewing area and described second viewing area.
Alternatively, when there is frontier point between described first viewing area and described second viewing area, described central processing unit 43 for:
When keeping the total area of described first viewing area and described second viewing area constant, described frontier point is moved in direction along the line between the center and the center of described second viewing area of described first viewing area and towards described first center, viewing area, to reduce described first viewing area, increase described second viewing area simultaneously.Preferably, the displacement of described frontier point is less than 10% of the catercorner length of described first viewing area or described second viewing area.
Alternatively, when there is boundary line between described first viewing area and described second viewing area, described central processing unit 43 for:
When keeping the total area of described first viewing area and described second viewing area constant, along perpendicular to the line between the center of described first viewing area and the center of described second viewing area, and move described boundary line towards the direction of described first viewing area, to reduce described first viewing area, increase described second viewing area simultaneously.Preferably, the displacement of described boundary line is less than 10% of the length of side of described first viewing area or described second viewing area.
It should be noted that in above-mentioned mobile terminal embodiment, included all parts is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional part, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, and described storage medium can be ROM (read-only memory), disk or CD etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.