Summary of the invention
The shortcoming of prior art, the object of the present invention is to provide a kind of deletion to be presented at method and the electronic equipment of the word on touch-screen in view of the above, can not utilize the advantage of touch screen to reach the problem of deleting word object for solving prior art.
For achieving the above object and other relevant objects, the invention provides a kind of method that deletion is presented at the word on touch-screen, it comprises: according to the size that is presented at the word on described touch-screen, set the amplitude threshold scope that gesture is deleted in identification; The irregular touch gestures that detected user is slipped on described touch-screen is converted to corresponding trajectory coordinates sequence, and determines that all tracing points in described trajectory coordinates sequence are all positioned at described amplitude threshold scope; From all tracing points of described trajectory coordinates sequence, determine the coordinate of a plurality of track key points, and when the coordinate of track key point meets default deletion gesture identification rule described in each, determine that described touch gestures is for deleting gesture; At definite described touch gestures, while deleting gesture, within the scope of described amplitude threshold, the word in the corresponding described touch screen zone of described trajectory coordinates sequence is deleted.
Preferably, described amplitude threshold scope comprises: fluctuate as the basis scope of a preset ratio of the word height of take.
Preferably, described irregular touch gestures detected when discontinuous, the method that gesture is deleted in described identification also comprises: when detected described touch gestures is discontinuous, whether the time interval of detecting each adjacent continuous touch gestures part in described touch gestures is less than the default discontinuous time interval; When the time interval that each continuous described touch gestures part detected is less than the default discontinuous time interval, determine that all tracing points in the corresponding trajectory coordinates sequence of described touch gestures are all positioned at described amplitude threshold scope; And at definite described touch gestures when deleting gesture, determine within the scope of described amplitude threshold the corresponding touch screen zone of trajectory coordinates sequence described in each, and the word in described touch screen zone deleted.
Preferably, also comprise: after surpassing default deletion execution time interval, new touch gestures do not detected, carry out described delete step.
Preferably, described track key point comprises: first tracing point, top n track flex point, top n track be the highest/and a kind of or above combination in any in minimum point.
Preferably, default deletion gesture identification rule comprises with lower one or any combination: the ordinate of first tracing point in described trajectory coordinates sequence is positioned at [(Y
l2-20%*h
l), (Y
l2+ 50%*h
l)] in scope, wherein, Y
l2for at a distance of the nearest literal line of described first tracing point coordinate bottom ordinate, h
lheight for described word; First track flex point or track in described trajectory coordinates sequence be the highest/and coordinate right side and ordinate that the coordinate of minimum point is positioned at described first tracing point be positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope, wherein, Y
l1for at a distance of the nearest literal line top ordinate of described first tracing point coordinate; Follow-up track flex point or track in described trajectory coordinates sequence be the highest/coordinate of minimum point be positioned at previous track flex point or track the highest/the coordinate right side of minimum point and ordinate interval be positioned at [(Y
l1-20%*h
l), (Y
l2+ 50%*h
l)] and [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope.
Preferably, default deletion gesture identification rule also comprises: the time interval between each track key point is between [0,300ms].
Based on above-mentioned purpose, the present invention also provides a kind of electronic equipment with touch-screen, and it at least comprises: pretreatment module, for setting according to the size that is presented at the word on described touch-screen the amplitude threshold scope that gesture is deleted in identification; Gestures detection module, is converted to corresponding trajectory coordinates sequence for the irregular touch gestures that detected user is slipped on described touch-screen, and determines that all tracing points in described trajectory coordinates sequence are all positioned at described amplitude threshold scope; Gesture determination module, determines the coordinate of a plurality of track key points for all tracing points from described trajectory coordinates sequence, and when the coordinate of track key point meets default deletion gesture identification rule described in each, determines that described touch gestures is for deleting gesture; Removing module, for determining that at described gesture determination module described touch gestures, while deleting gesture, is deleted the word in the corresponding described touch screen zone of described trajectory coordinates sequence within the scope of described amplitude threshold.
Preferably, described amplitude threshold scope comprises: fluctuate as the basis scope of a preset ratio of the word height of take.
Preferably, described gestures detection module comprises: the first detection sub-module, for when detected described touch gestures is discontinuous, whether the time interval of detecting each adjacent continuous touch gestures part in described touch gestures is less than the default discontinuous time interval; The second detection sub-module, while being less than the default discontinuous time interval for the time interval each continuous described touch gestures part being detected, determine that all tracing points in the corresponding trajectory coordinates sequence of described touch gestures are all positioned at described amplitude threshold scope; And
Described removing module at definite described touch gestures for deletion is during gesture, determine within the scope of described amplitude threshold the corresponding touch screen zone of trajectory coordinates sequence described in each, and the word in described touch screen zone deleted.
Preferably, described removing module also for: after surpassing default deletion execution time interval, new touch gestures do not detected, corresponding word deleted.
Preferably, described track key point comprises: first tracing point, top n track flex point, top n track be the highest/and a kind of or above combination in any in minimum point.
Preferably, default deletion gesture identification rule comprises with lower one or any combination: the ordinate of first tracing point in described trajectory coordinates sequence is positioned at [(Y
l2-20%*h
l), (Y
l2+ 50%*h
l)] in scope, wherein, Y
l2for at a distance of the nearest literal line of described first tracing point coordinate bottom ordinate, h
lheight for described word; First track flex point or track in described trajectory coordinates sequence be the highest/and coordinate right side and ordinate that the coordinate of minimum point is positioned at described first tracing point be positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope, wherein, Y
l1for at a distance of the nearest literal line top ordinate of described first tracing point coordinate; Follow-up track flex point or track in described trajectory coordinates sequence be the highest/coordinate of minimum point be positioned at previous track flex point or track the highest/the coordinate right side of minimum point and ordinate interval be positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] and [(Y
l1-20%*h
l), (Y
l2+ 50%*h
l)] in scope.
Preferably, default deletion gesture identification rule also comprises: the time interval between each track key point is between [0,300ms].
As mentioned above, the present invention realizes the deletion for word by identification sawtooth pattern touch track, by simulating human, on papery carrier of characters, use erased by rubber word, with use person's handwriting to cover the mode of word, row height and the wide ratio of word according to touch track with respect to word, in the short time, form zigzag track, judgement user is intended to reach deletion object for the deletion of this section of word, the present invention utilizes the advantage of touch screen, in conjunction with the mankind, delete the shown word of electronic equipment, and then improve the experience that user deletes corresponding word in gesture touch screen letter application.
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this instructions.The present invention can also be implemented or be applied by other different embodiment, and the every details in this instructions also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.It should be noted that, in the situation that not conflicting, the feature in following examples and embodiment can combine mutually.
Embodiment mono-
As shown in Figure 1, the invention provides a kind of method that deletion is presented at the word on touch-screen.Described delet method is mainly carried out by deletion system, and described deletion system is the application software being arranged in the electronic equipment with touch-screen with touch-screen, described in there is touch-screen electronic equipment include but not limited to: mobile phone, panel computer etc.
In step S1, described deletion system sets according to the size that is presented at the word on described touch-screen the amplitude threshold scope that gesture is deleted in identification.
Particularly, described deletion system obtains the information such as the word font size, line space, word space of current demonstration in can the ocr software from the described electronic equipment with touch-screen, and width, length and the interval of the coordinate on described touch-screen of according to the size of described touch-screen, calculating every style of writing word, and the scope that described length, width and coordinate interval are formed is set as described amplitude threshold scope.Wherein, described amplitude threshold scope can also be only the threshold range of every style of writing word height.
Preferably, described amplitude threshold scope can also be to take fluctuate as the basis scope of a preset ratio of word height.For example, described amplitude threshold scope is at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] or [(Y
l2-20%*h
l), (Y
l2+ 50%*h
l)] in scope, Y
l1for literal line top ordinate, Y
l2for literal line bottom ordinate, h
lheight for word.
In step S2, the irregular touch gestures that described deletion system slips over detected user on described touch-screen is converted to corresponding trajectory coordinates sequence, and determines that all tracing points in described trajectory coordinates sequence are all positioned at described amplitude threshold scope.
Particularly, when user skids off an irregular touch gestures on described touch-screen, described deletion system obtains the trajectory coordinates sequence of described touch gestures on one side, according to the corresponding all tracing points of obtained trajectory coordinates Sequence Detection, whether be positioned at described amplitude threshold scope on one side, when all tracing points are positioned at described amplitude threshold scope all the time, continue execution step S3, otherwise, assert that this touch gestures is invalid.Wherein, described touch gestures includes but not limited to irregular waveform, irregular broken line or irregular spirality etc.
For example, when user skids off a touch gestures for fluctuation up and down on the second shown style of writing word of described touch-screen, the true origin of the described touch-screen that described deletion system basis is default is corresponding trajectory coordinates sequence along with described touch gestures obtains, and determine corresponding literal line according to front M coordinate in described trajectory coordinates sequence, determine again whether the corresponding tracing point of all coordinates in described trajectory coordinates sequence all falls within the scope of described amplitude threshold, if, continue execution step S3, otherwise, assert that this touch gestures is invalid.
In step S3, described deletion system is determined the coordinate of a plurality of track key points from all tracing points of described trajectory coordinates sequence, and when the coordinate of track key point meets default deletion gesture identification rule described in each, determine that described touch gestures is for deleting gesture.
Wherein, described track key point comprises that any wish that can react the irregular touch gestures that user slips over is the key point of deleting word.For example, user habit slips over shown word by irregular broken line gesture, and described track key point can comprise: first tracing point, top n track flex point.And for example, user habit slips over shown word by helix gesture, and described track key point can comprise: the first tracing point, top n track be the highest/minimum point etc.Therefore, track key point choose can be first tracing point, top n track flex point, top n track the highest/a kind of or combination in any in minimum point, N is default quantity.Preferably, described deletion gesture identification rule also comprises: the time interval between each track key point is between [0,300ms].
Wherein, default deletion gesture identification rule includes but not limited to following a kind of or combination in any:
1) ordinate of first tracing point in described trajectory coordinates sequence is positioned at [(Y
l2-20%*h
l), (Y
l2+ 50%*h
l)] in scope, wherein, Y
l2for at a distance of the nearest literal line of described first tracing point coordinate bottom ordinate, h
lheight for described word;
2) first track flex point in described trajectory coordinates sequence or track the highest/coordinate right side and ordinate that the coordinate of minimum point is positioned at described first tracing point be positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope, wherein, Y
l1for at a distance of the nearest literal line top ordinate of described first tracing point coordinate;
3) the follow-up track flex point in described trajectory coordinates sequence or track the highest/coordinate of minimum point be positioned at previous track flex point or track the highest/the coordinate right side of minimum point and ordinate interval be positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] and [(Y
l1-20%*h
l), (Y
l2+ 50%*h
l)] in scope.
For example, slip custom for most of users, as shown in Figure 2, large multi-user more gets used to using from lower-left the extremely right side tiltedly to start, back and forth the touch gestures of broken line reflects the wish of its deletion word, described deletion system is determined the coordinate of first tracing point and first three track flex point from described trajectory coordinates sequence by track identification algorithm, then according to above-mentioned deletion gesture identification rule, confirms successively whether the ordinate of described first tracing point is positioned at [(Y
l2-20%*h
l), (Y
l2+ 50%*h
l)] in scope, and coordinate right side and ordinate that in first three track flex point, whether the coordinate of first track flex point is positioned at described first tracing point are positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope, whether the coordinate of second track flex point is positioned at the [(Y that whether is positioned at the coordinate right side of first track flex point and ordinate interval
l1-20%*h
l), (Y
l2+ 50%*h
l)] in scope, whether the coordinate of the 3rd track flex point is positioned at the [(Y that whether is positioned at the coordinate right side of second track flex point and ordinate interval
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope, if all, assert that this touch gestures, for deleting gesture, if wherein there is at least one not meet corresponding condition, assert that this touch gestures is invalid.
In step S4, described deletion system, is deleted the word in the corresponding described touch screen zone of described trajectory coordinates sequence while deleting gesture at definite described touch gestures within the scope of described amplitude threshold.
Particularly, when described deletion system detects the operated deletion gesture of user and finishes (lifting from described touch-screen), difference using the horizontal ordinate of first tracing point in described trajectory coordinates sequence to the horizontal ordinate of last tracing point is as the length of described trajectory coordinates sequence, and calculate according to the scope that described length and described amplitude threshold scope surround the word covering in the corresponding described scope of described trajectory coordinates sequence, and these words are deleted.
For example, as shown in Figure 2, described deletion system is according to { a1,, an} trajectory coordinates sequence is determined the length of the word that will delete, and according to described length and described amplitude threshold scope, determine { a1,, the word within the scope of an} trajectory coordinates sequential covering (" touch screen word delete gesture and "), and deleted.
Preferably, described deletion system does not detect new touch gestures after surpassing default deletion execution time interval, carries out described delete step S4.Wherein, described deletion execution time interval can be more than 500ms.
Embodiment bis-
Different from embodiment mono-, as shown in Figure 3, the word that will delete as user is continuous multirow or rising space while deleting, and the irregular touch gestures slipping over is discontinuous.For this kind of situation, described step S2 comprises: step S21, S22.
In step S21, described deletion system is when detected described touch gestures is discontinuous, and whether the time interval of detecting each adjacent continuous touch gestures part in described touch gestures is less than the default discontinuous time interval.Wherein, the described discontinuous time interval should be less than and delete execution time interval.For example, the described discontinuous time interval is between [100,500].
Particularly, described deletion system is when detecting the irregular touch gestures that user slips on described touch-screen, obtain on one side described touch gestures the coordinate of each tracing point of process, by identification user, the action of pressing, lifting on described touch-screen determines that described touch gestures is discontinuous on one side, when described touch gestures being detected when discontinuous, whether the time interval of further detecting each adjacent continuous touch gestures part is less than the described discontinuous time interval, if, continue step S22, if not, assert that described touch gestures finishes.
In step S22, described deletion system, when the time interval that each continuous described touch gestures part detected is less than the default discontinuous time interval, determines that all tracing points in the corresponding trajectory coordinates sequence of described touch gestures are all positioned at described amplitude threshold scope.
Particularly, described deletion system is when the time interval that each continuous described touch gestures part detected is less than the default discontinuous time interval, determine whether all tracing points in the corresponding trajectory coordinates sequence of described touch gestures are all positioned at described amplitude threshold scope, if, perform step S3, if not, assert that described touch gestures is invalid gesture.
Then, described deletion system execution step S3 judges whether the touch gestures that user slips over is to delete gesture, if, assert that touch gestures is deletion gesture, and perform step S41, otherwise, assert that touch gestures institute interval time is within the described discontinuous time interval, but touch gestures is invalid gesture.
For example, described deletion system utilizes Trajectory Arithmetic from described trajectory coordinates sequence, to obtain the coordinate of first tracing point, top n track highs and lows, and determines according to default deletion gesture identification rule whether described touch gestures is to delete gesture.
It should be noted that, those skilled in the art should understand that, described deletion system can be chosen a plurality of track key points from the corresponding a series of trajectory coordinates of continuous touch gestures part, and carry out gesture identification, described deletion system can be partly only deletion gesture by first continuous touch gestures of identification, assert that the touch gestures consisting of discontinuous each touch gestures part is to delete gesture;
In addition, described deletion system also can be chosen a plurality of track key points from corresponding each trajectory coordinates of a plurality of continuous touch gestures parts, and described deletion system can partly come to determine whether the touch gestures consisting of discontinuous each touch gestures part is to delete gesture by identifying a plurality of continuous touch gestures.
In step S41, described deletion system, is determined within the scope of described amplitude threshold the corresponding touch screen zone of trajectory coordinates sequence described in each, and the word in described touch screen zone is deleted when deleting gesture at definite described touch gestures.
For example, the trajectory coordinates of described trajectory coordinates sequence comprises: { a11, a21, a31, a61, a71, a81}, described deletion system is according to { a11, a21, a31} and { a61, a71, the touch screen zone that in a81}, first coordinate and last coordinate and described amplitude threshold scope are enclosed separately, calculates the word in institute's region separately, and is deleted.
Embodiment tri-
As shown in Figure 4, the invention provides a kind of electronic equipment with touch-screen.The described electronic equipment 1 with touch-screen 11 includes but not limited to: mobile phone, panel computer etc.The hardware that described electronic equipment 1 comprises comprises processor (chip that for example comprises CPU), storer (such as being FLASH storer, internal memory etc.), microphone, loudspeaker, touch-screen (also claiming touch-sensitive display screen or touching display screen) and sensor thereof, player, voicefrequency circuit, wireless communication module, system bus and input/output port etc.Described electronic equipment 1 comprises: pretreatment module 12, gestures detection module 13, gesture determination module 14, removing module 15.
Described pretreatment module 12 is for setting according to the size that is presented at the word on described touch-screen 11 the amplitude threshold scope that gesture is deleted in identification.In the present embodiment, described pretreatment module 12 comprises that storer, processor and the two carry out mutual interlock circuit and software.
Particularly, processor in described pretreatment module 12 is by information such as the word font size of the current demonstration of storing in described storer, line space, word spaces, and width, length and the interval of the coordinate on described touch-screen 11 of according to the size of described touch-screen 11, calculating every style of writing word, and the scope that described length, width and coordinate interval are formed is set as described amplitude threshold scope.Wherein, described amplitude threshold scope can also be only the threshold range of every style of writing word height.
Preferably, described amplitude threshold scope can also be to take fluctuate as the basis scope of some ratios of word height.For example, described amplitude threshold scope is at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] or [(Y
l2-20%*h
l), (Y
l2+ 50%*h
l)] in scope, Y
l1for literal line top ordinate, Y
l2for literal line bottom ordinate, h
lheight for word.
Described gestures detection module 13 is converted to corresponding trajectory coordinates sequence for the irregular touch gestures that detected user is slipped on described touch-screen 11, and determines that all tracing points in described trajectory coordinates sequence are all positioned at described amplitude threshold scope.In the present embodiment, described gestures detection module 13 comprises touch panel sensor, processor, storer and for mutual each other interlock circuit and software.
Particularly, when user skids off an irregular touch gestures on described touch-screen 11, touch panel sensor in described gestures detection module 13 offers processor by the trajectory coordinates sequence of described touch gestures, described processor is temporarily stored in described trajectory coordinates sequence in storer on one side, according to the corresponding all tracing points of obtained trajectory coordinates Sequence Detection, whether be positioned at described amplitude threshold scope on one side, when all tracing points are positioned at described amplitude threshold scope all the time, continue execution step S3, otherwise, assert that this touch gestures is invalid.Wherein, described touch gestures includes but not limited to irregular waveform, irregular broken line or irregular spirality etc.
For example, when user skids off a touch gestures for fluctuation up and down on the second shown style of writing word of described touch-screen 11, the true origin of the described touch-screen 11 that described gestures detection module 13 bases are default is corresponding trajectory coordinates sequence along with described touch gestures obtains, and determine corresponding literal line according to front M coordinate in described trajectory coordinates sequence, determine again whether the corresponding tracing point of all coordinates in described trajectory coordinates sequence all falls within the scope of described amplitude threshold, if, continue execution step S3, otherwise, assert that this touch gestures is invalid.
Described gesture determination module 14 is for when described gestures detection module 13 is determined described touch gestures for deletion gesture, from all tracing points of described trajectory coordinates sequence, determine the coordinate of a plurality of track key points, and when the coordinate of track key point meets default deletion gesture identification rule described in each, determine that described touch gestures is for deleting gesture.In the present embodiment, described gesture determination module 14 comprises that storer, processor and the two carry out mutual interlock circuit and software.
Wherein, described track key point comprises that any wish that can react the irregular touch gestures that user slips over is the key point of deleting word.For example, user habit slips over shown word by irregular broken line gesture, and described track key point can comprise: first tracing point, top n track flex point.And for example, user habit slips over shown word by helix gesture, and described track key point can comprise: the first tracing point, top n track be the highest/minimum point etc.Therefore, track key point choose can be first tracing point, top n track flex point, top n track the highest/a kind of or combination in any in minimum point, N is default quantity.Preferably, described deletion gesture identification rule also comprises: the time interval between each track key point is between [0,300ms].
Wherein, default deletion gesture identification rule includes but not limited to following a kind of or combination in any:
1) ordinate of first tracing point in described trajectory coordinates sequence is positioned at [(Y
l2-20%*h
l), (Y
l2+ 50%*h
l)] in scope, wherein, Y
l2for at a distance of the nearest literal line of described first tracing point coordinate bottom ordinate, h
lheight for described word;
2) first track flex point in described trajectory coordinates sequence or track the highest/coordinate right side and ordinate that the coordinate of minimum point is positioned at described first tracing point be positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope, wherein, Y
l1for at a distance of the nearest literal line top ordinate of described first tracing point coordinate;
3) the follow-up track flex point in described trajectory coordinates sequence or track the highest/coordinate of minimum point be positioned at previous track flex point or track the highest/the coordinate right side of minimum point and ordinate interval be positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] and [(Y
l1-20%*h
l), (Y
l2+ 50%*h
l)] in scope.
For example, slip custom for most of users, as shown in Figure 2, large multi-user more gets used to using from lower-left the extremely right side tiltedly to start, back and forth the touch gestures of broken line reflects the wish of its deletion word, described gesture determination module 14 is determined the coordinate of first tracing point and first three track flex point from described trajectory coordinates sequence by track identification algorithm, then according to above-mentioned deletion gesture identification rule, confirms successively whether the ordinate of described first tracing point is positioned at [(Y
l2-20%*h
l), (Y
l2+ 50%*h
l)] in scope, and coordinate right side and ordinate that in first three track flex point, whether the coordinate of first track flex point is positioned at described first tracing point are positioned at [(Y
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope, whether the coordinate of second track flex point is positioned at the [(Y that whether is positioned at the coordinate right side of first track flex point and ordinate interval
l1-20%*h
l), (Y
l2+ 50%*h
l)] in scope, whether the coordinate of the 3rd track flex point is positioned at the [(Y that whether is positioned at the coordinate right side of second track flex point and ordinate interval
l1-50%*h
l), (Y
l2+ 20%*h
l)] in scope, if all, assert that this touch gestures, for deleting gesture, if wherein there is at least one not meet corresponding condition, assert that this touch gestures is invalid.
Described removing module 15, for when described gesture determination module 14 is determined described touch gestures for deletion gesture, is deleted the word in the corresponding described touch screen zone of described trajectory coordinates sequence within the scope of described amplitude threshold.In the present embodiment, described removing module 15 comprises, touch panel sensor, storer, processor and for mutual each other interlock circuit and software.
Particularly, when the touch panel sensor in described removing module 15 is no longer exported the trajectory coordinates (lifting from described touch-screen 11) of the operated deletion gesture of user, described processor assert that described deletion gesture finishes, the difference of described processor using the horizontal ordinate of first tracing point in described trajectory coordinates sequence to the horizontal ordinate of last tracing point is as the length of described trajectory coordinates sequence, and the scope that described length and described amplitude threshold scope surround is calculated to the word covering in the corresponding described scope of described trajectory coordinates sequence, and these words are deleted.
For example, as shown in Figure 2, described removing module 15 is according to { a1,, an} trajectory coordinates sequence is determined the length of the word that will delete, and according to described length and described amplitude threshold scope, determine { a1,, the word within the scope of an} trajectory coordinates sequential covering (" 11 acts of words of touch-screen delete gestures and "), and deleted.
Preferably, described removing module 15 does not detect new touch gestures after surpassing default deletion execution time interval, and corresponding word is deleted.Wherein, described deletion execution time interval can be more than 500ms.
Embodiment tetra-
Different from embodiment tri-, the word that will delete as user is continuous multirow or rising space while deleting, and the irregular touch gestures slipping over is discontinuous.
For this kind of situation, described gestures detection module 13 comprises: the first detection sub-module, the second detection sub-module (all not giving diagram).
Described the first detection sub-module is when detected described touch gestures is discontinuous, and whether the time interval of detecting each adjacent continuous touch gestures part in described touch gestures is less than the default discontinuous time interval.Wherein, the described discontinuous time interval should be less than and delete execution time interval.For example, the described discontinuous time interval is between [100,500].
Particularly, described the first detection sub-module is when detecting the irregular touch gestures that user slips on described touch-screen, obtain on one side described touch gestures the coordinate of each tracing point of process, on one side by identification user pressing on described touch-screen, the action of lifting determines that described touch gestures is discontinuous, when described touch gestures being detected when discontinuous, whether the time interval of further detecting each adjacent continuous touch gestures part is less than the described discontinuous time interval, if, continue step S22, if not, assert that described touch gestures finishes.
When described the second detection sub-module is less than the default discontinuous time interval for the time interval each continuous described touch gestures part being detected, determine that all tracing points in the corresponding trajectory coordinates sequence of described touch gestures are all positioned at described amplitude threshold scope.
Particularly, described the second detection sub-module is when the time interval that each continuous described touch gestures part detected is less than the default discontinuous time interval, determine whether all tracing points in the corresponding trajectory coordinates sequence of described touch gestures are all positioned at described amplitude threshold scope, if, output order is confirmed module 14 with initiation gesture, if not, assert that described touch gestures is invalid gesture.
Then, described gesture confirms whether each touch gestures that module 14 judges that user slips over is to delete gesture, if, assert that touch gestures is to delete gesture, and output order is to start described removing module 15, otherwise, assert that described touch gestures institute interval time is within the described discontinuous time interval, but touch gestures is invalid gesture.
For example, described gesture determination module 14 utilizes Trajectory Arithmetic from described trajectory coordinates sequence, to obtain the coordinate of first tracing point, top n track highs and lows, and determines according to default deletion gesture identification rule whether described touch gestures is to delete gesture.
It should be noted that, those skilled in the art should understand that, described gesture determination module 14 can be chosen a plurality of track key points from the corresponding a series of trajectory coordinates of continuous touch gestures part, and carry out gesture identification, described gesture determination module 14 can be partly only deletion gesture by first continuous touch gestures of identification, assert that the touch gestures consisting of discontinuous each touch gestures part is to delete gesture;
In addition, described gesture determination module 14 also can be chosen a plurality of track key points from corresponding each trajectory coordinates of a plurality of continuous touch gestures parts, and described gesture determination module 14 can partly come to determine whether the touch gestures consisting of discontinuous each touch gestures part is to delete gesture by identifying a plurality of continuous touch gestures.
Described removing module 15 also at definite described touch gestures when deleting gesture, determine within the scope of described amplitude threshold the corresponding touch screen zone of trajectory coordinates sequence described in each, and the word in described touch screen zone deleted.
For example, the trajectory coordinates of described trajectory coordinates sequence comprises: { a11, a21, a31, a61, a71, a81}, described removing module 15 is according to { a11, a21, a31} and { a61, a71, the touch screen zone that in a81}, first coordinate and last coordinate and described amplitude threshold scope are enclosed separately, calculates the word in institute's region separately, and is deleted.
In sum, deletion of the present invention is presented at method and the electronic equipment of the word on touch-screen, according to people, by the custom of stroke word, is applied on touch-screen, identifies deletion gesture, can from various touch gestures, determine and delete gesture effectively and rapidly; And then the corresponding word in Jiang Gai region, region forming according to the coordinate of deleting gesture deleted, so reach the object of deleting word; In addition, for specific gesture, set the recognition rule of more refinement, can identify more accurately and rapidly deletion gesture; In addition, for discontinuous deletion gestures such as the line feed deletion in practical application, rising space deletions, and carry out the deletion of corresponding word, the present invention can identify a plurality of discontinuous deletion gestures with a kind of recognition method, effectively simplify identification step, avoided the repeated work of system, improved user's Experience Degree simultaneously.So the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.