The foreign matter detecting method of touch-screen and touch-screen
Technical field
The present invention relates to a kind of foreign matter detecting method, relate in particular to a kind of touch-screen foreign matter detecting method andTouch-screen.
Background technology
People are in use when the electronic equipment with touch-screen, easy residual different with electrostatic charge on touch-screenThing, as grease etc., this foreign matter will affect touch-screen and receive the input of contact etc. after accumulation for a long timeSignal, lost efficacy the subregion of touch-screen, experienced thereby affect user. But some foreign matter naked eyesBe difficult to identification, therefore need it to detect and clear up.
Summary of the invention
The technical problem to be solved in the present invention is to overcome the foreign matter having on touch-screen in prior art to be difficult toDistinguish and affect the defect that user experiences, a kind of foreign matter detecting method and touch-screen of touch-screen is provided.
The present invention solves above-mentioned technical problem by following technical proposals:
A foreign matter detecting method for touch-screen, its feature is, comprises the following steps:
S1, detect the electric current that the electrode of touch-screen flows out, and be the coordinate figure on touch-screen by current conversion;
S2, judge that coordinate figure is whether in the effective range of this touch-screen, and by this touch-screen effectivelyCoordinate figure in scope is as effective coordinate figure;
S3, detect the pressure at effective coordinate figure place of this touch-screen;
S4, judge S3Whether the pressure recording be less than a default threshold value, and pressure is less than to this threshold valueEffectively coordinate figure is as foreign matter coordinate figure;
S5, output alarm signal, this alarm signal is used for being illustrated in foreign matter coordinate figure place and has foreign matter.
According to the medium of the operation principle of touch-screen and transmission information, touch-screen is divided into four kinds, they divideWei resistance-type, condenser type, infrared-type and surface acoustic wave type, on mobile terminal, mostly useCapacitive touch screen. For capacitive touch screen, can flow out by the electrode on four angles of touch-screenElectric current calculate the coordinate figure of touch point on touch-screen.
In the time having foreign matter with electrostatic charge as grease on touch-screen, foreign matter generally can occupy certain positionRegion therefore has multiple coordinate figures in the time obtaining the coordinate figure of foreign matter, now needs screening to have at touch-screenCoordinate figure within the scope of effect is as effective coordinate figure. The foreign matter of discovering because user is more difficult produces touch-screenPressure conventionally much smaller than finger to touch-screen produce pressure, therefore can be by foreign matter at effective coordinateWhen being less than this threshold value, the pressure at value place determines that there is foreign matter at effective coordinate figure place. Wherein, by each effective coordinatePressure and this threshold value that value place obtains compare respectively, using qualified effective coordinate figure as foreign matterCoordinate figure. Send an alarm signal to user detecting when there is foreign matter at foreign matter coordinate figure place, inform userThere is foreign matter in the foreign matter coordinate figure place on touch-screen, need be as early as possible to its cleaning.
Preferably, this alarm signal is for to paint markd image at foreign matter coordinate figure place. For more directly perceivedGround manifests the residual condition of foreign matter on touch-screen, by representing on the image of touch screen surface in an imageCorresponding foreign matter coordinate figure place make the mark that has foreign matter, user only need be in those mark to this foreign matterWipe.
Preferably, step S4With step S5Between comprise:
S41, all foreign matter coordinate figures are divided into at least one coordinate figure group, wherein in same coordinate figure groupForeign matter coordinate figure in adjacent, the different coordinate figure group of foreign matter coordinate figure is non-conterminous;
Step S5For: output one second image, in this second image in position corresponding to each coordinate figure groupPlace is all painted with one second mark. Wherein, position corresponding to each coordinate figure group is adjacent foreign matter coordinate figureThe integral position linking together.
For the adjoining foreign matter coordinate figure of a class, can be classified as a coordinate figure group, to embody more intuitivelyThe distribution situation of foreign matter on touch-screen, if regard the position on touch-screen as latticed division, soBelong to adjacent foreign matter coordinate figure, adjacent foreign matter for the coordinate figure in touch-screen adjacent meshCoordinate figure can represent that those positions all exist foreign matter, more can user by an overall markKnow intuitively the distribution situation of different big or small foreign matters on touch-screen.
The present invention also provides a kind of touch-screen, and its feature is, comprises a coordinate figure acquisition module, oneOne judge module, one second judge module, a pressure detecting module and an alarm module,
The electric current that this coordinate figure acquisition module flows out for detection of the electrode of touch-screen by current conversion is alsoCoordinate figure on touch-screen;
This first judge module is used for using the coordinate figure in the effective range of this touch-screen as effective seatScale value;
This pressure detecting module is for detection of the pressure at effective coordinate figure place of this touch-screen;
Effective coordinate figure that this second judge module is used for pressure to be less than a default threshold value is as foreign matterCoordinate figure;
This alarm module is for output alarm signal, and this alarm signal is used for being illustrated in foreign matter coordinate figure place and depositsAt foreign matter.
Preferably, this alarm signal is for to paint markd image at foreign matter coordinate figure place.
Preferably, this touch-screen also comprises a grouping module, and this second judge module is for being less than pressureEffective coordinate figure of this threshold value is as foreign matter coordinate figure and enable this grouping module, and this grouping module is used for willAll adjacent foreign matter coordinate figures are divided at least one coordinate figure group, then enable this alarm module, whereinForeign matter coordinate figure in adjacent, the different coordinate figure group of foreign matter coordinate figure in same coordinate figure group is non-conterminous;
This alarm module is used for exporting one second image, corresponding in each coordinate figure group in this second imagePosition is all painted with one second mark.
Positive progressive effect of the present invention is: the foreign matter detecting method of this touch-screen and touch-screen can be examinedSurvey on touch-screen whether have foreign matter, in the time there is foreign matter, can detect the position at foreign matter place, and accuseKnow that user clears up timely, thereby avoided touch-screen because losing the subregion that the existence of foreign matter causesEffect and affect user experience.
Brief description of the drawings
Fig. 1 is the foreign matter detecting method flow chart of the touch-screen of the embodiment of the present invention 1.
Fig. 2 is the foreign matter detecting method flow chart of the touch-screen of the embodiment of the present invention 2.
Fig. 3 is the schematic diagram of the touch-screen of the embodiment of the present invention 2.
Detailed description of the invention
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention toAmong described scope of embodiments.
Embodiment 1
The present embodiment provides a kind of foreign matter detecting method of touch-screen, as shown in Figure 1, comprises the following steps:
The electric current that the electrode of step 100, detection touch-screen flows out, and be on touch-screen by current conversionCoordinate figure, the quantity of this coordinate figure can because of the size of foreign matter, the distribution situation on touch-screen be different with foreign matterAnd it is different;
Step 101, judge that coordinate figure is whether in the effective range of this touch-screen, and will be at this touch-screenEffective range in coordinate figure as effective coordinate figure;
Step 102, detect the pressure at effective coordinate figure place of this touch-screen;
Whether the pressure that step 103, determining step 102 record is less than a default threshold value, and by pressureBe less than effective coordinate figure of this threshold value as foreign matter coordinate figure, wherein, judgement is for multiple effective coordinatesThe pressure at value place carries out;
Step 104, output alarm signal, this alarm signal is used for being illustrated in foreign matter coordinate figure place and exists differentThing. This alarm signal is for to paint markd image at foreign matter coordinate figure place.
The foreign matter detecting method of this touch-screen can detect on touch-screen whether have foreign matter, when there being foreign matterTime can detect the position at foreign matter place, and inform that user clears up timely.
Embodiment 2
The present embodiment provides a kind of foreign matter detecting method of touch-screen, as shown in Figure 2, and the present embodiment and realityThe difference of executing example 1 is, between step 103 and step 104, comprises:
Step 1031, all foreign matter coordinate figures are divided into at least one coordinate figure group, wherein same coordinate figureForeign matter coordinate figure in adjacent, the different coordinate figure group of foreign matter coordinate figure in group is non-conterminous;
Step 104 is: output one second image is in this second image, corresponding in each coordinate figure groupPosition is all painted with one second mark.
For instance, in the time that one remains to touch-screen surperficial with the contactant of electrostatic charge, touch-screenElectrode has corresponding outflow of bus current, for the contactant of difformity size, according to capacitive touch screenPrinciple, draw the multiple coordinate figures of this contactant on touch-screen by this Current calculation. Suppose there is A,B, C, D, E, six coordinate figures of F, and in those coordinate figures coordinate figure F not touch-screen effectivelyIn scope, therefore only detect the pressure at effective coordinate figure A, B, C, D, E place. Wherein, effectively sitThe pressure at scale value E place is greater than this threshold value, illustrates that the pressure that E place produces is more to derive from fingerTo touch-screen applied pressure, therefore determine that foreign matter coordinate figure A, B, C, D place exist foreign matter.
According to the grid of on touch-screen, coordinate figure being divided, wherein, foreign matter coordinate figure A, B, C areBelong in adjacent grid, therefore foreign matter coordinate figure A, B, C are classified as to the first coordinate figure group, willForeign matter coordinate figure D is classified as the second coordinate figure group. In the time of output the second image, the second image can image be shownShow the foreign matter distribution situation of touch screen surface, in the second image in the first coordinate figure group and the second coordinate figure groupCorresponding position shows respectively one second mark, to represent that those second mark exist a foreign matter. Wherein,The second mark that the first coordinate figure group corresponding position shows shows that foreign matter coordinate figure A, B, C are is oneThe foreign matter in piece region, particularly, can be by foreign matter coordinate figure A, B, C being linked together or in the lumpPainted demonstration carrys out this first coordinate figure group of mark, and the colored spots that the second coordinate figure group can be independent shows.In reaching embodiment 1 effect, make user more can know intuitively different big or small foreign matters at touch-screenOn distribution situation.
The present embodiment also provides a kind of touch-screen, and as shown in Figure 3, this touch-screen comprises that a coordinate figure obtainsModule 1, one first judge module 2, a pressure detecting module 3, one second judge module 4, a groupingModule 5 and an alarm module 6,
The electric current that coordinate figure acquisition module 1 flows out for detection of the electrode of touch-screen and by current conversion for touchingTouch the coordinate figure on screen;
The first judge module 2 is for using the coordinate figure in the effective range of this touch-screen as effective coordinateValue;
Pressure detecting module 3 is for detection of the pressure at effective coordinate figure place of this touch-screen;
The second judge module 4 is sat as foreign matter for the effective coordinate figure that pressure is less than to a default threshold valueScale value;
Grouping module 5 is for being divided at least one coordinate figure group by all adjacent foreign matter coordinate figures, thenEnable this alarm module.
Alarm module 6 is for exporting one second image, in this second image, in each coordinate figure group correspondencePosition be all painted with one second mark.
In sum, the foreign matter detecting method of this touch-screen can detect on touch-screen, whether there is foreign matter,In the time there is foreign matter, can detect the position at foreign matter place, and inform that user clears up timely, fromAnd lost efficacy and affect user's experience in the subregion of having avoided touch-screen to cause because of the existence of foreign matter.
Although more than described the specific embodiment of the present invention, those skilled in the art should manageSeparate, these only illustrate, and protection scope of the present invention is limited by appended claims. ThisThe technical staff in field is not deviating under the prerequisite of principle of the present invention and essence, can be to these enforcement sidesFormula is made various changes or modifications, but these changes and amendment all fall into protection scope of the present invention.