Delete the method and electronic equipment of the word of display on the touchscreen
Technical field
The present invention relates to a kind of electronic equipment, more particularly to a kind of method for deleting the word of display on the touchscreen and
Electronic equipment.
Background technology
With the development of industrialization, more and more electronic equipments with touch screen become the necessary of modern life
Product, especially in terms of individual mobile terminal.Screen size is constantly promoted, and resolution ratio gradually increases, and precision is gradually increased.Have
The user terminal of the electronic equipment class of touch screen has gradually merged PC machine and the function of mobile phone, occupies in people's lives more next
More consequence.And according to present development trend, touch screen gesture mode will finally replace traditional mouse and
Keyboard becomes the input mode of the mainstream of the following electronic device user with touch screen.
Such as in terms of copy editor, more and more applies accomplished on the electronic equipment with touch screen and answer
With.The word of traditional backspace based on PC machine deletes mode and is faced with the deficiency of its own and is set to the electronics with touch screen
Standby is inadaptable.User, which needs to move the cursor to, deletes the last of word paragraph, then clicks one by one and deletes word;Or it is long
Whole section of word is deleted by the backspace key on keyboard.This mode is themselves based on mouse and keyboard gesture, does not perform to completely tactile
The advantage and characteristic of screen, while can not also take into account the demand that user's monoblock deletes word.
In gesture before this, portion of techniques and patent or proposition are deleted in such a way that forward direction moves linearly touch point
Except word, or propose that reverse straight line deletes word.These gestures in the application more be used to switch on screen, lack it to deleting
Except the approval of word, it finally there are no and continued and developed in a particular application.
Therefore, simpler, the efficient and direct word of one kind how is developed to delete mode and can be able to develop and apply,
The experience that corresponding word is deleted to improve user in gesture touch screen letter application, has become practitioner in the art and urgently solves in fact
Certainly the technical issues of.
Invention content
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of deletion displays on the touchscreen
Word method and electronic equipment, cannot reach deletion word using the advantage for touching screen in the prior art for solving
The problem of purpose.
In order to achieve the above objects and other related objects, the present invention provides a kind of delete and shows word on the touchscreen
Method comprising:The amplitude threshold range that gesture is deleted in identification is set according to the size for the word being shown on the touch screen;
The irregular touch gestures that detected user is slipped on the touch screen are converted to corresponding trajectory coordinates sequence,
And determine that all tracing points in the trajectory coordinates sequence are all located within the scope of the amplitude threshold;From the trajectory coordinates sequence
The coordinate of multiple track key points is determined in all tracing points of row, and is met in the coordinate of each track key point preset
When deleting gesture identification rule, determine that the touch gestures are to delete gesture;When it is to delete gesture to determine the touch gestures,
The word in the touch screen zone corresponding to the trajectory coordinates sequence is deleted within the scope of the amplitude threshold.
Preferably, the amplitude threshold range includes:The range for the preset ratio that floated up and down based on word height.
Preferably, when detecting that the irregular touch gestures are discontinuous, the identification deletes the method for gesture also
Including:When the detected touch gestures are discontinuous, each adjacent continuous touch hand in the touch gestures is detected
Whether the time interval of gesture part is less than preset discontinuous time interval;Detecting each continuous touch gestures part
Time interval be less than preset discontinuous time interval when, determine in the trajectory coordinates sequence corresponding to the touch gestures
All tracing points are all located within the scope of the amplitude threshold;And it when it is to delete gesture to determine the touch gestures, determines
Touch screen zone within the scope of the amplitude threshold corresponding to each trajectory coordinates sequence, and will be in the touch screen zone
Word is deleted.
Preferably, further include:New touch gestures are not detected after executing time interval more than preset deletion, execute
The deletion step.
Preferably, the track key point includes:First tracing point, top n track inflection point, top n track highest/most
One kind in low spot or any of the above combination.
Preferably, it is preset delete gesture identification rule include it is following in one or any combination:The track is sat
The ordinate of first tracing point in mark sequence is located at [(YL2-20%*hL),(YL2+50%*hL)] in range, wherein YL2For phase
Nearest literal line bottom ordinate, h away from first track point coordinatesLFor the height of the word;The trajectory coordinates
The coordinate of first track inflection point or track highest/minimum point in sequence is located on the right side of the coordinate of first tracing point,
And ordinate is located at [(YL1-50%*hL),(YL2+20%*hL)] in range, wherein YL1For at a distance of first track point coordinates
Ordinate at the top of nearest literal line;Subsequent track inflection point or track highest/minimum point in the trajectory coordinates sequence
What coordinate was located on the right side of the coordinate of previous track inflection point or track highest/minimum point and ordinate interval is located at [(YL1-20%*
hL),(YL2+50%*hL)] and [(YL1-50%*hL),(YL2+20%*hL)] in range.
Preferably, preset deletion gesture identification rule further includes:Time interval between each track key point [0,
300ms] between.
Based on above-mentioned purpose, the present invention also provides a kind of electronic equipments with touch screen, include at least:Pre-process mould
Block, the amplitude threshold range for deleting gesture according to the size setting identification for the word being shown on the touch screen;Gesture
Detection module, the irregular touch gestures for slipping over detected user on the touch screen are converted to accordingly
Trajectory coordinates sequence, and determine that all tracing points in the trajectory coordinates sequence are all located within the scope of the amplitude threshold;Hand
Gesture determining module, the coordinate for determining multiple track key points from all tracing points of the trajectory coordinates sequence, and
When the coordinate of each track key point meets preset deletion gesture identification rule, determine that the touch gestures are to delete hand
Gesture;Removing module, for the gesture determining module determine the touch gestures be delete gesture when, in the amplitude threshold
The word in the touch screen zone corresponding to the trajectory coordinates sequence is deleted in range.
Preferably, the amplitude threshold range includes:The range for the preset ratio that floated up and down based on word height.
Preferably, the gesture detection module includes:First detection sub-module, in the detected touch hand
When gesture is discontinuous, whether the time interval of each adjacent continuous touch gestures part in the touch gestures is detected less than default
Discontinuous time interval;Second detection sub-module, between the time for detecting each continuous touch gestures part
When less than preset discontinuous time interval, all tracks in the trajectory coordinates sequence corresponding to the touch gestures are determined
Point is all located within the scope of the amplitude threshold;And
The removing module is used to, when it is to delete gesture to determine the touch gestures, determine in the amplitude threshold range
Touch screen zone corresponding to interior each trajectory coordinates sequence, and the word in the touch screen zone is deleted.
Preferably, the removing module is additionally operable to:It is not detected after executing time interval more than preset deletion new
Touch gestures are deleted corresponding word.
Preferably, the track key point includes:First tracing point, top n track inflection point, top n track highest/most
One kind in low spot or any of the above combination.
Preferably, it is preset delete gesture identification rule include it is following in one or any combination:The track is sat
The ordinate of first tracing point in mark sequence is located at [(YL2-20%*hL),(YL2+50%*hL)] in range, wherein YL2For phase
Nearest literal line bottom ordinate, h away from first track point coordinatesLFor the height of the word;The trajectory coordinates
The coordinate of first track inflection point or track highest/minimum point in sequence is located on the right side of the coordinate of first tracing point,
And ordinate is located at [(YL1-50%*hL),(YL2+20%*hL)] in range, wherein YL1For at a distance of first track point coordinates
Ordinate at the top of nearest literal line;Subsequent track inflection point or track highest/minimum point in the trajectory coordinates sequence
What coordinate was located on the right side of the coordinate of previous track inflection point or track highest/minimum point and ordinate interval is located at [(YL1-50%*
hL),(YL2+20%*hL)] and [(YL1-20%*hL),(YL2+50%*hL)] in range.
Preferably, preset deletion gesture identification rule further includes:Time interval between each track key point [0,
300ms] between.
As described above, the present invention realizes the deletion for word by identifying sawtooth pattern touch track, that is, pass through simulation
The mankind use erased by rubber word on papery carrier of characters, and the mode of word is covered using person's handwriting, according to touch track phase
For the row of word is high and the wide ratio of word, zigzag track is formed in the short time, judges user's deleting for this section of word
Reach deletion purpose except being intended to, the present invention deletes the text shown by electronic equipment using the advantage for touching screen, in conjunction with the mankind
Word, and then improve the experience that user deletes corresponding word in gesture touch screen letter application.
Description of the drawings
Fig. 1 is shown as the flow chart of the method for the word of the deletion display of the present invention on the touchscreen.
Fig. 2 is shown as the schematic diagram of touch gestures in the method for the word of the deletion display of the present invention on the touchscreen.
Fig. 3 is shown as a kind of flow of preferred embodiment of the method for the word of the deletion display of the present invention on the touchscreen
Figure.
Fig. 4 is shown as the structural schematic diagram of the electronic equipment with touch screen of the present invention.
Component label instructions
1 electronic equipment with touch screen
11 touch screens
12 preprocessing modules
13 gesture detection modules
14 gesture determining modules
15 removing modules
S1~S4 steps
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
Embodiment one
As shown in Figure 1, the present invention provides a kind of method for deleting the word of display on the touchscreen.The delet method master
It to be executed by deletion system, the deletion system is answering in the electronic equipment with touch screen with touch screen
With software, the electronic equipment with touch screen includes but not limited to:Mobile phone, tablet computer etc..
In step sl, the deletion system sets identification according to the size for the word being shown on the touch screen and deletes
The amplitude threshold range of gesture.
Specifically, the deletion system can obtain currently from the ocr software in the electronic equipment with touch screen
The information such as the word font size of display, line space, word space, and calculate according to the size of the touch screen width for word of often composing a piece of writing
Degree, length and the coordinate section on the touch screen, and the range that the length, width and coordinate section are constituted is set
For the amplitude threshold range.Wherein, the amplitude threshold range can moreover be only the threshold range of every style of writing word height.
Preferably, the amplitude threshold range can also be the model for the preset ratio that floats up and down based on word height
It encloses.For example, the amplitude threshold range is in [(YL1-50%*hL),(YL2+20%*hL)] or [(YL2-20%*hL),(YL2+50%*
hL)] in range, YL1For ordinate at the top of literal line, YL2For literal line bottom ordinate, hLFor the height of word.
In step s 2, the deletion system slips over detected user irregular tactile on the touch screen
It touches gesture and is converted to corresponding trajectory coordinates sequence, and it is described to determine that all tracing points in the trajectory coordinates sequence are all located at
Within the scope of amplitude threshold.
Specifically, when user skids off an irregular touch gestures on the touch screen, the deletion system one
While the trajectory coordinates sequence of the touch gestures is obtained, it is all corresponding to acquired trajectory coordinates Sequence Detection on one side
Whether tracing point is located within the scope of the amplitude threshold, when all tracing points are always positioned within the scope of the amplitude threshold, then after
It is continuous to execute step S3, conversely, then assert that the touch gestures are invalid.Wherein, the touch gestures are including but not limited to irregular
Waveform, irregular broken line or irregular spiral shape etc..
For example, when user skids off the touch hand of about one fluctuation on the second style of writing word shown by the touch screen
Gesture, the deletion system obtain corresponding track with the touch gestures according to the coordinate origin of the preset touch screen
Coordinate sequence, and corresponding literal line is determined according to the preceding M coordinate in the trajectory coordinates sequence, then determine that the track is sat
Whether the tracing point corresponding to all coordinates in mark sequence each falls within the scope of the amplitude threshold, if so, continuing to execute
Step S3, conversely, then assert that the touch gestures are invalid.
In step s3, the deletion system determines that multiple tracks are closed from all tracing points of the trajectory coordinates sequence
The coordinate of key point, and when the coordinate of each track key point meets preset deletion gesture identification rule, determine described touch
It is to delete gesture to touch gesture.
Wherein, the track key point includes any wish that can react the irregular touch gestures that user is slipped over
It is the key point for deleting word.For example, user's custom with irregular broken line gesture slips over shown word, then the rail
Mark key point may include:First tracing point, top n track inflection point.For another example, user is accustomed to helix gesture to slip over
The word of display, then the track key point may include:First tracing point, top n track highest/minimum point etc..It can from above
See, the selection of track key point can be in first tracing point, top n track inflection point, top n track highest/minimum point
A kind of or arbitrary combination, N are preset quantity.Preferably, the deletion gesture identification rule further includes:Each track key point it
Between time interval between [0,300ms].
Wherein, preset deletion gesture identification rule includes but not limited to following a kind of or arbitrary combination:
1)The ordinate of first tracing point in the trajectory coordinates sequence is located at [(YL2-20%*hL),(YL2+50%*
hL)] in range, wherein YL2For at a distance of the nearest literal line bottom ordinate of first track point coordinates, hLFor the text
The height of word;
2)The coordinate of first track inflection point or track highest/minimum point in the trajectory coordinates sequence is located at described the
On the right side of the coordinate of one tracing point and ordinate is located at [(YL1-50%*hL),(YL2+20%*hL)] in range, wherein YL1For phase
Away from ordinate at the top of the nearest literal line of first track point coordinates;
3)The coordinate of subsequent track inflection point or track highest/minimum point in the trajectory coordinates sequence is located at previous
On the right side of the coordinate of track inflection point or track highest/minimum point and ordinate interval is located at [(YL1-50%*hL),(YL2+20%*
hL)] and [(YL1-20%*hL),(YL2+50%*hL)] in range.
For example, the sliding for most users is accustomed to, i.e., as shown in Fig. 2, Most users more get used to use from lower-left
To it is right it is tiltedly upper start, the touch gestures of reciprocal broken line reflect that it deletes the wish of word, and the deletion system is known by track
Other algorithm determines the coordinate of first tracing point and first three track inflection point from the trajectory coordinates sequence, is deleted further according to above-mentioned
Except gesture identification rule, confirm whether the ordinate of first tracing point is located at [(Y successivelyL2-20%*hL),(YL2+50%*
hL)] in range, and whether the coordinate of first track inflection point is located at the seat of first tracing point in first three track inflection point
On the right side of mark and ordinate is located at [(YL1-50%*hL),(YL2+20%*hL)] in range, the coordinate of second track inflection point whether position
On the right side of the coordinate of first track inflection point and whether ordinate interval is located at [(YL1-20%*hL),(YL2+50%*hL)] model
In enclosing, whether the coordinate of third track inflection point be located on the right side of the coordinate of second track inflection point and ordinate interval
Positioned at [(YL1-50%*hL),(YL2+20%*hL)] in range, if being entirely, assert the touch gestures be delete gesture, if its
In have it is at least one be unsatisfactory for corresponding condition, then assert that the touch gestures are invalid.
In step s 4, the deletion system is when it is to delete gesture to determine the touch gestures, in the amplitude threshold
The word in the touch screen zone corresponding to the trajectory coordinates sequence is deleted in range.
Specifically, when the deletion system detects that the deletion gesture operated by user terminates(I.e. from the touch screen
It lifts)When, the difference of the abscissa by the abscissa of first tracing point in the trajectory coordinates sequence to the last one tracing point
As the length of the trajectory coordinates sequence, and the range that is surrounded according to the length and the amplitude threshold range calculates
The word covered in the range corresponding to the trajectory coordinates sequence, and these words are deleted.
For example, as shown in Fig. 2, the deletion system determines the text to be deleted according to { a1 ..., an } trajectory coordinates sequence
The length of word, and according to the length and the amplitude threshold range, determine { a1 ..., an } trajectory coordinates sequence coverage
Interior word(That is " touch screen text delete gesture and "), and deleted.
Preferably, new touch hand is not detected after executing time interval more than preset deletion in the deletion system
Gesture executes the deletion step S4.Wherein, it can be 500ms or more that the deletion, which executes time interval,.
Embodiment two
What is different from the first embodiment is that as shown in figure 3, when the word to be deleted of user is that continuous multirow or rising space are deleted
Except when, the irregular touch gestures that are slipped over are discontinuous.For this kind of situation, the step S2 includes:Step S21,
S22。
In the step s 21, the deletion system detects the touch when the detected touch gestures are discontinuous
Whether the time interval of each adjacent continuous touch gestures part is less than preset discontinuous time interval in gesture.Wherein,
The discontinuous time interval, which should be less than deleting, executes time interval.For example, the discontinuous time interval [100,500] it
Between.
Specifically, the deletion system detect user in the irregular touch gestures slipped on the touch screen when,
The coordinate for each tracing point that the touch gestures are passed through is obtained on one side, on one side by identifying user on the touch screen
The action press, lifted determines that the touch gestures are discontinuous, when detecting that the touch gestures are discontinuous, into one
Whether the time interval that step detects each adjacent continuous touch gestures part is less than the discontinuous time interval, if so,
Continue step S22, if it is not, then assert that the touch gestures terminate.
In step S22, the deletion system is detecting that the time interval of each continuous touch gestures part is small
When preset discontinuous time interval, determine all tracing points in the trajectory coordinates sequence corresponding to the touch gestures all
Within the scope of the amplitude threshold.
Specifically, the deletion system is detecting that it is default that the time interval of each continuous touch gestures part is less than
Discontinuous time interval when, determine all tracing points in the trajectory coordinates sequence corresponding to the touch gestures whether all position
In within the scope of the amplitude threshold, if so, S3 is thened follow the steps, if it is not, then assert that the touch gestures are invalid gesture.
Then, the deletion system executes step S3 to judge whether the touch gestures that user is slipped over are to delete gesture,
If so, assert that touch gestures are deletion gesture, and step S41 is executed, conversely, then assert that touch gestures institute's interval time exists
Within the discontinuous time interval, but touch gestures are invalid gesture.
For example, the deletion system obtains first tracing point, preceding N using Trajectory Arithmetic from the trajectory coordinates sequence
The coordinate of a track highs and lows, and according to preset deletion gesture identification rule determine the touch gestures whether be
Delete gesture.
It should be noted that it should be appreciated by those skilled in the art that the deletion system can be from a continuous touch
Multiple track key points are chosen in a series of trajectory coordinates corresponding to gesture part, and carry out gesture identification, then the deletion
System can then be assert by discontinuous each touch hand only by identifying that first continuous touch gestures part is to delete gesture
The touch gestures that gesture part is constituted are to delete gesture;
In addition, the deletion system can also be selected from each trajectory coordinates corresponding to multiple continuous touch gestures parts
Multiple track key points are taken, then the deletion system can be determined by identifying multiple continuous touch gestures parts by not connecting
Whether the touch gestures that continuous each touch gestures part is constituted are to delete gesture.
In step S41, the deletion system is determined when it is to delete gesture to determine the touch gestures in the amplitude
Touch screen zone in threshold range corresponding to each trajectory coordinates sequence, and the word in the touch screen zone is given
It deletes.
For example, the trajectory coordinates of the trajectory coordinates sequence include:{ a11, a21, a31, a61, a71, a81 }, then it is described
Deletion system is according to respective first coordinate and the last one coordinate and institute in { a11, a21, a31 } and { a61, a71, a81 }
The touch screen zone that amplitude threshold range is enclosed is stated, calculates the word in respectively enclosed region, and deleted.
Embodiment three
As shown in figure 4, the present invention provides a kind of electronic equipment with touch screen.The electronics with touch screen 11 is set
Standby 1 includes but not limited to:Mobile phone, tablet computer etc..The hardware that the electronic equipment 1 includes includes processor(Such as include CPU
Chip), memory(For example, FLASH memory, memory etc.), microphone, loud speaker, touch screen(Also known as touch-sensitive display panel
Or touching display screen)And its sensor, player, voicefrequency circuit, wireless communication module, system bus and input/output port
Deng.The electronic equipment 1 includes:Preprocessing module 12, gesture detection module 13, gesture determining module 14, removing module 15.
The preprocessing module 12 is used to be deleted according to the size setting identification for the word being shown on the touch screen 11
The amplitude threshold range of gesture.In this present embodiment, the preprocessing module 12 includes that memory, processor and the two carry out
Interactive interlock circuit and software.
Specifically, the word currently shown that the processor in the preprocessing module 12 will be stored in the memory
The information such as font size, line space, word space, and according to the size of the touch screen 11 come calculate often the style of writing width of word, length and
Coordinate section on the touch screen 11, and the range that the length, width and coordinate section are constituted is set as described
Amplitude threshold range.Wherein, the amplitude threshold range can moreover be only the threshold range of every style of writing word height.
Preferably, the amplitude threshold range can also be the model for several ratios that float up and down based on word height
It encloses.For example, the amplitude threshold range is in [(YL1-50%*hL),(YL2+20%*hL)] or [(YL2-20%*hL),(YL2+50%*
hL)] in range, YL1For ordinate at the top of literal line, YL2For literal line bottom ordinate, hLFor the height of word.
The gesture detection module 13 is irregular for slipping over detected user on the touch screen 11
Touch gestures are converted to corresponding trajectory coordinates sequence, and determine that all tracing points in the trajectory coordinates sequence are all located at institute
It states within the scope of amplitude threshold.In this present embodiment, the gesture detection module 13 includes touch panel sensor, processor, storage
Device and for interlock circuit and software interactively with each other.
Specifically, when user skids off an irregular touch gestures on the touch screen 11, the gestures detection
The trajectory coordinates sequence of the touch gestures is supplied to processor by the touch panel sensor in module 13, and the processor is on one side
The trajectory coordinates sequence is temporary in memory, it is all corresponding to acquired trajectory coordinates Sequence Detection on one side
Whether tracing point is located within the scope of the amplitude threshold, when all tracing points are always positioned within the scope of the amplitude threshold, then after
It is continuous to execute step S3, conversely, then assert that the touch gestures are invalid.Wherein, the touch gestures are including but not limited to irregular
Waveform, irregular broken line or irregular spiral shape etc..
For example, when user skids off the touch hand of about one fluctuation on the second style of writing word shown by the touch screen 11
Gesture, the gesture detection module 13 obtain phase according to the coordinate origin of the preset touch screen 11 with the touch gestures
The trajectory coordinates sequence answered, and corresponding literal line is determined according to the preceding M coordinate in the trajectory coordinates sequence, then determine institute
State whether the tracing point corresponding to all coordinates in trajectory coordinates sequence each falls within the scope of the amplitude threshold, if so,
Step S3 is continued to execute, conversely, then assert that the touch gestures are invalid.
The gesture determining module 14 is used to determine that the touch gestures are to delete gesture in the gesture detection module 13
When, the coordinate of multiple track key points is determined from all tracing points of the trajectory coordinates sequence, and close in each track
When the coordinate of key point meets preset deletion gesture identification rule, determine that the touch gestures are to delete gesture.In the present embodiment
In, the gesture determining module 14 includes the interlock circuit and software that memory, processor and the two interact.
Wherein, the track key point includes any wish that can react the irregular touch gestures that user is slipped over
It is the key point for deleting word.For example, user's custom with irregular broken line gesture slips over shown word, then the rail
Mark key point may include:First tracing point, top n track inflection point.For another example, user is accustomed to helix gesture to slip over
The word of display, then the track key point may include:First tracing point, top n track highest/minimum point etc..It can from above
See, the selection of track key point can be in first tracing point, top n track inflection point, top n track highest/minimum point
A kind of or arbitrary combination, N are preset quantity.Preferably, the deletion gesture identification rule further includes:Each track key point it
Between time interval between [0,300ms].
Wherein, preset deletion gesture identification rule includes but not limited to following a kind of or arbitrary combination:
1)The ordinate of first tracing point in the trajectory coordinates sequence is located at [(YL2-20%*hL),(YL2+50%*
hL)] in range, wherein YL2For at a distance of the nearest literal line bottom ordinate of first track point coordinates, hLFor the text
The height of word;
2)The coordinate of first track inflection point or track highest/minimum point in the trajectory coordinates sequence is located at described the
On the right side of the coordinate of one tracing point and ordinate is located at [(YL1-50%*hL),(YL2+20%*hL)] in range, wherein YL1For phase
Away from ordinate at the top of the nearest literal line of first track point coordinates;
3)The coordinate of subsequent track inflection point or track highest/minimum point in the trajectory coordinates sequence is located at previous
On the right side of the coordinate of track inflection point or track highest/minimum point and ordinate interval is located at [(YL1-50%*hL),(YL2+20%*
hL)] and [(YL1-20%*hL),(YL2+50%*hL)] in range.
For example, the sliding for most users is accustomed to, i.e., as shown in Fig. 2, Most users more get used to use from lower-left
To it is right it is tiltedly upper start, the touch gestures of reciprocal broken line reflect that it deletes the wish of word, and the gesture determining module 14 passes through
Track identification algorithm determines the coordinate of first tracing point and first three track inflection point from the trajectory coordinates sequence, further according to
Above-mentioned deletion gesture identification rule, confirms whether the ordinate of first tracing point is located at [(Y successivelyL2-20%*hL),(YL2
+50%*hL)] in range, and whether the coordinate of first track inflection point is located at first track in first three track inflection point
On the right side of the coordinate of point and ordinate is located at [(YL1-50%*hL),(YL2+20%*hL)] in range, the coordinate of second track inflection point
Whether whether be located on the right side of the coordinate of first track inflection point and ordinate interval is located at [(YL1-20%*hL),(YL2+50%*
hL)] in range, whether the coordinate of third track inflection point is located on the right side of the coordinate of second track inflection point and ordinate interval
Whether be located at [(YL1-50%*hL),(YL2+20%*hL)] in range, if being entirely, assert that the touch gestures are to delete hand
Gesture, if wherein have it is at least one be unsatisfactory for corresponding condition, assert that the touch gestures are invalid.
The removing module 15 is used for when the gesture determining module 14 determines that the touch gestures are to delete gesture,
The word in the touch screen zone corresponding to the trajectory coordinates sequence is deleted within the scope of the amplitude threshold.In
In the present embodiment, the removing module 15 includes, touch panel sensor, memory, processor and for phase interactively with each other
Powered-down road and software.
Specifically, when the touch panel sensor in the removing module 15 no longer exports the deletion gesture operated by user
Trajectory coordinates(Lifted from the touch screen 11)When, the processor assert that the deletion gesture terminates, then the processing
The difference of abscissa of the device using the abscissa of first tracing point in the trajectory coordinates sequence to the last one tracing point is as institute
State the length of trajectory coordinates sequence, and range that the length and the amplitude threshold range are surrounded is calculated into the track
The word covered in the range corresponding to coordinate sequence, and these words are deleted.
For example, as shown in Fig. 2, what the removing module 15 to be deleted according to the determination of { a1 ..., an } trajectory coordinates sequence
The length of word, and according to the length and the amplitude threshold range, determine { a1 ..., an } trajectory coordinates sequential covering model
Enclose interior word(I.e. " 11 acts of words of touch screen delete gestures and "), and deleted.
Preferably, new touch hand is not detected after executing time interval more than preset deletion in the removing module 15
Gesture is deleted corresponding word.Wherein, it can be 500ms or more that the deletion, which executes time interval,.
Example IV
Unlike embodiment three, when the word that user to be deleted is continuous multirow or rising space is deleted, slipped over
Irregular touch gestures be it is discontinuous.
For this kind of situation, the gesture detection module 13 includes:First detection sub-module, the second detection sub-module(
It is unillustrated).
First detection sub-module is detected when the detected touch gestures are discontinuous in the touch gestures
Whether the time interval of each adjacent continuous touch gestures part is less than preset discontinuous time interval.Wherein, it is described not
Continuous time interval, which should be less than deleting, executes time interval.For example, the discontinuous time interval is between [100,500].
Specifically, the irregular touch hand that first detection sub-module is slipped in detection user on the touch screen
When gesture, the coordinate for each tracing point that the touch gestures are passed through is obtained on one side, on one side by identifying user in the touch
The action pressed, lifted on screen determines that the touch gestures are discontinuous, when detecting that the touch gestures are discontinuous
When, whether the time interval for further detecting each adjacent continuous touch gestures part is less than the discontinuous time interval,
If so, continuing step S22, if it is not, then assert that the touch gestures terminate.
Second detection sub-module is used to detect that the time interval of each continuous touch gestures part is less than
When preset discontinuous time interval, all tracing points all positions in the trajectory coordinates sequence corresponding to the touch gestures are determined
In within the scope of the amplitude threshold.
Specifically, second detection sub-module is detecting that the time interval of each continuous touch gestures part is small
When preset discontinuous time interval, determine that all tracing points in the trajectory coordinates sequence corresponding to the touch gestures are
It is no to be all located within the scope of the amplitude threshold, if so, output order is with initiation gesture confirmation module 14, if it is not, then assert institute
It is invalid gesture to state touch gestures.
Then, the gesture confirmation module 14 come judge each touch gestures that user is slipped over whether be delete gesture, if
It is then to assert that touch gestures are to delete gesture, and output order to be to start the removing module 15, conversely, then assert described touch
Gesture institute's interval time is touched within the discontinuous time interval, but touch gestures are invalid gesture.
For example, the gesture determining module 14 obtains first track using Trajectory Arithmetic from the trajectory coordinates sequence
The coordinate of point, top n track highs and lows, and the touch gestures are determined according to preset deletion gesture identification rule
Whether it is to delete gesture.
It should be noted that it should be appreciated by those skilled in the art that the gesture determining module 14 can be continuous from one
Touch gestures part corresponding to a series of trajectory coordinates in choose multiple track key points, and carry out gesture identification, then institute
Gesture determining module 14 is stated only by identifying that first continuous touch gestures part is to delete gesture can then to assert by not connecting
The touch gestures that continuous each touch gestures part is constituted are to delete gesture;
In addition, the gesture determining module 14 can also be sat from each track corresponding to multiple continuous touch gestures parts
Multiple track key points are chosen in mark, then the gesture determining module 14 can be by identifying multiple continuous touch gestures parts
To determine whether the touch gestures being made of discontinuous each touch gestures part are to delete gesture.
The removing module 15 is additionally operable to, when it is to delete gesture to determine the touch gestures, determine in the amplitude threshold
Touch screen zone in range corresponding to each trajectory coordinates sequence, and the word in the touch screen zone is deleted
It removes.
For example, the trajectory coordinates of the trajectory coordinates sequence include:{ a11, a21, a31, a61, a71, a81 }, then it is described
Removing module 15 according to respective first coordinate and the last one coordinate in { a11, a21, a31 } and { a61, a71, a81 } and
The touch screen zone that the amplitude threshold range is enclosed calculates the word in respectively enclosed region, and is deleted.
In conclusion the method and electronic equipment of the word of the deletion display of the present invention on the touchscreen, are used according to people
The custom of stroke word is applied on touch screen, to identify deletion gesture, can effectively and rapidly be determined from various touch gestures
Delete gesture;And then deleted the word corresponding to the region according to the region that the coordinate for deleting gesture is constituted, so
Achieve the purpose that delete word;In addition, the recognition rule more refined is set for specific gesture, it can be more accurate, quick
Identification delete gesture;In addition, being directed to the discontinuous deletion gestures such as the line feed deletion in practical application, rising space deletion, go forward side by side
The deletion of the corresponding word of row, the present invention can identify multiple discontinuous deletion gestures with a kind of identification method, effectively simplify
Identification step avoids the repeated work of system, while improving the Experience Degree of user.So the present invention effectively overcomes now
There is the various shortcoming in technology and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology can all carry out modifications and changes to above-described embodiment without violating the spirit and scope of the present invention.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should by the present invention claim be covered.