CN103713795A - Automatic error correction method for resistive touch screen - Google Patents
Automatic error correction method for resistive touch screen Download PDFInfo
- Publication number
- CN103713795A CN103713795A CN201310717103.5A CN201310717103A CN103713795A CN 103713795 A CN103713795 A CN 103713795A CN 201310717103 A CN201310717103 A CN 201310717103A CN 103713795 A CN103713795 A CN 103713795A
- Authority
- CN
- China
- Prior art keywords
- coordinate
- touch screen
- correcting
- resistive touch
- automatic error
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Position Input By Displaying (AREA)
Abstract
The invention discloses an automatic error correction method for a resistive touch screen. The automatic error correction method for the resistive touch screen comprises the steps of reading parameter data of the product model, judging whether a reference file corresponding to the product model exists or not; if the reference file does not exist, automatically generating the reference file which provides reference for follow-up correction; if the reference file exists, obtaining an upper left coordinate clicked by a user, and calculating a difference between the upper left coordinate and an upper left coordinate in the reference file; judging whether the absolute value of the difference exceeds a preset range or not, if not, accomplishing correction of the upper left coordinate, and accomplishing correction of an upper right coordinate, a lower right coordinate, a lower left coordinate and a central point coordinate in sequence in the same mode. According to the automatic error correction method for the resistive touch screen, correction misoperation can be avoided, the phenomenon that suspended halt of the resistive touch screen is caused due to misoperation of a user can be effectively avoided, and efficiency of the correction program is improved; meanwhile, after the user clicks the resistive touch screen, sampling interval delay is triggered, and misoperation such as continuous clicks can be effectively prevented.
Description
Technical field
The present invention relates to touch screen correction method, relate in particular to the bearing calibration of a kind of resistive touch screen automatic error-correcting.
Background technology
Adopt in the mobile terminal of touch-screen, the debugging of touch screen performance is one of major issue because the cause of electromagnetic noise, touch-screen easily exist click inaccurate, have problems such as shake.Tslib is a program of increasing income, and can provide functions such as filtering, debounce, calibration for the sampled data that touch-screen driver obtains, and the adaptation layer driving usually used as touch-screen, for the application on upper strata provides a unified interface.
In prior art, for touch screens, need carry out Direct Sampling by original correction program, using the data of Direct Sampling as calibration standard, the problem of this kind of method existence is, when user puts wrong local or due to after clicking the too small maloperations such as double hit that cause of sampling interval, system is directly usingd the coordinate figure that obtains of sampling as calibration standard, cause LCD to show that screen and touch sensitive display coordinate system deviation are very large, after user enters application program, screen presents torpor, simultaneously, the disposable correction of using while being system initialization due to Tslib, after user misoperation, finished product machine cannot be proofreaied and correct again, must open housing carries out just re-executing correction program after software debugging, the inconvenience that causes user to use.
Summary of the invention
The technical problem to be solved in the present invention is, for the deficiencies in the prior art, the bearing calibration of a kind of resistive touch screen automatic error-correcting is provided, the coordinate that the method is clicked user and the coordinate in reference paper compare calculated difference, by judging whether the absolute value of this difference exceeds preset range, coordinate is carried out to error correction and correction, thereby avoid mistake to proofread and correct, effectively prevent that the screen that user misoperation brings is seemingly-dead, improved the efficiency of correction program, meanwhile, user clicks rear triggering sampling interval and postpones, and effectively prevents the maloperations such as double hit.
For solving the problems of the technologies described above, the present invention adopts following technical scheme.
The bearing calibration of resistive touch screen automatic error-correcting, it comprises the steps: step S1, reads product type supplemental characteristic; Step S2, judges whether the reference paper corresponding with this product type exists, and if not, performs step S3, if so, performs step S6; Step S3, calls original correction program, performs step afterwards S4; Step S4, the correcting button of systemic presupposition in point in Preset Time, if all correcting buttons, all by point, perform step S5 in Preset Time, if having a correcting button at least not by point, is back to step S3; Step S5, creates the reference paper corresponding with this product type, jumps to afterwards step S10; Step S6, a checkpoint position blinking cursor, obtains the coordinate that user clicks this cursor, calculates the absolute value of the difference of this checkpoint corresponding coordinate in this coordinate and reference paper; Step S7, judges whether the absolute value of this difference exceeds preset range, if so, performs step S8, if not, performs step S9; Step S8, whether the cumulative time is proofreaied and correct in judgement overtime, if so, jumps to step S3, if not, is back to step S6; Step S9, the method according to step S6 to step S8, completes the correction of all checkpoints successively; Step S10, carries out coordinate transform computing, and points out and proofread and correct successfully on screen.
Preferably, the Preset Time in step S4 is 5S at least.
Preferably, in step S4, the correcting button of systemic presupposition is at least two.
Preferably, in described step S4, described button is four.
Preferably, in described step S8, judge whether trimming process is overtime to comprise: judgement is proofreaied and correct the cumulative time and whether is greater than 5s.
Preferably, in described step S3, described original correction program comprises the steps: step S30, obtains upper left corner coordinate in system, upper right corner coordinate, lower right corner coordinate, lower left corner coordinate and center point coordinate; Step S31, the checkpoint place display highlighting on screen successively, and prompting user clicks this cursor; Step S32, user clicks the cursor of above-mentioned checkpoint successively.
Preferably, the default duration of time delay before execution step S9.
Preferably, the duration of time delay is 500ms at least.
Preferably, described step S7 judges whether the absolute value of this difference exceeds preset range and be, whether the absolute value that judges this difference exceeds at least positive and negative 2% of corresponding coordinate in reference paper.
Preferably, in described step S6, the coordinate that obtains user's click comprises the steps: step S60, screen checkpoint position display cursor, and prompting user clicks this cursor; Step S61, obtains user and clicks the coordinate that this cursor produces.
In resistive touch screen automatic error-correcting disclosed by the invention bearing calibration, first read product type supplemental characteristic, judge whether the reference paper corresponding with this product type exists, if there is not reference paper, call original correction program, the correcting button of systemic presupposition in putting in Preset Time afterwards, if all correcting buttons are all by point in Preset Time, create the reference paper corresponding with this product type, carry out coordinate transform computing, and point out and proofread and correct successfully on screen, if have a correcting button within Preset Time at least not by point, the original correction program of re invocation create reference paper, if there is reference paper, a checkpoint position blinking cursor, obtain the coordinate that user clicks this cursor, calculate the absolute value of the difference of this checkpoint corresponding coordinate in this coordinate and reference paper, whether the absolute value that judges this difference exceeds preset range, if exceed preset range, whether the cumulative time is proofreaied and correct in judgement overtime, if overtime, call original correction program, if it is not overtime, again obtain the coordinate of this cursor, if the absolute value of above-mentioned difference does not exceed preset range, with reference to the aligning step of above-mentioned checkpoint, complete successively the correction of all checkpoints, carry out afterwards coordinate transform computing, and point out and proofread and correct successfully on screen.The coordinate that the method is clicked user and the coordinate in reference paper compare calculated difference, by judging whether the absolute value of this difference exceeds preset range, coordinate is carried out to error correction and correction, thereby avoid mistake to proofread and correct, effectively prevent that the screen that user misoperation brings is seemingly-dead, improved the efficiency of correction program, simultaneously, user clicks rear triggering sampling interval and postpones, effectively prevent the maloperations such as double hit, in addition, utilize the method after user misoperation, again to touch-screen, to proofread and correct, without carrying out again software debugging etc., more user-friendly.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in more detail.
The invention discloses the bearing calibration of a kind of resistive touch screen automatic error-correcting, as shown in Figure 1, the method comprises the steps:
Step S1, reads product type supplemental characteristic;
Step S2, judges whether the reference paper corresponding with this product type exists, and if not, performs step S3, if so, performs step S6;
Step S3, calls original correction program, performs step afterwards S4.In this step S3, original correction program comprises: step S30, obtains upper left corner coordinate in system, upper right corner coordinate, lower right corner coordinate, lower left corner coordinate and center point coordinate; Step S31, the checkpoint place display highlighting on screen successively, and prompting user clicks this cursor; Step S32, user clicks the cursor of above-mentioned checkpoint successively.Above-mentioned original correction program can be the correction program that system carries, wherein, determine successively upper left corner coordinate, upper right corner coordinate, lower right corner coordinate, lower left corner coordinate and center point coordinate, the data of each coordinate with X-axis coordinate front, Y-axis coordinate after sequential combination, according to 5 groups of coordinate datas, create the reference paper corresponding with this product type, this reference paper exists with the form of text.
Step S4, the correcting button of systemic presupposition in point in Preset Time, this Preset Time is 5S at least, according to actual needs, this Preset Time can be made as 10S, 20S etc., if all correcting buttons, all by point, perform step S5 in this Preset Time, if have a correcting button at least not by point, be back to step S3.As a kind of optimal way, the quantity of the correcting button of systemic presupposition is at least two, preferably four and more than, the quantity of correcting button is more, the calibration reference file of generation is more accurate.
Step S5, creates the reference paper corresponding with this product type, jumps to afterwards step S10;
Step S6, a checkpoint position blinking cursor, obtains the coordinate that user clicks this cursor, calculates the absolute value of the difference of this checkpoint corresponding coordinate in this coordinate and reference paper.In said process, the coordinate that obtains user's click further comprises the steps: step S60, screen checkpoint position display cursor, and prompting user clicks this cursor; Step S61, obtains user and clicks the coordinate that this cursor produces.
Step S7, judges whether the absolute value of this difference exceeds preset range, if so, performs step S8, if not, performs step S9.In the present embodiment, whether the absolute value that judges this difference exceeds preset range is, whether the absolute value that judges this difference exceeds at least positive and negative 2% of corresponding coordinate in reference paper, and preset range is less, proofreaies and correct more accurately, and this correcting range can also be positive and negative 5%.
Step S8, whether the cumulative time is proofreaied and correct in judgement overtime, if so, jumps to step S3, if not, is back to step S6.In this step, judge whether trimming process is overtime to comprise: judgement is proofreaied and correct the cumulative time and whether is greater than 5s, as desirable 10S, 20S etc.
Step S9, the method according to step S6 to step S8, completes the correction of all checkpoints successively.Before carrying out this step, can time delay preset duration, the duration of this time delay is 500ms at least, makes user click rear triggering sampling interval and postpones, and effectively prevents the maloperations such as double hit, the method to step S8 according to step S6, completes the correction of all checkpoints successively afterwards; Wherein, owing to having added reference paper, make comparisons, especially when user puts wrong local or due to after clicking the too small maloperations such as double hit that cause of sampling interval, the coordinate figure that system is usingd in reference paper is as calibration standard, effectively reduce the deviation of LED display coordinate system and touch sensitive display coordinate system, avoid user to enter application program after screen present torpor.
Step S10, carries out coordinate transform computing, and points out and proofread and correct successfully on screen.
In resistive touch screen automatic error-correcting disclosed by the invention bearing calibration, first read product type supplemental characteristic, judge whether the reference paper corresponding with this product type exists, if there is not reference paper, call original correction program, the correcting button of systemic presupposition in putting in Preset Time afterwards, if all correcting buttons are all by point in Preset Time, create the reference paper corresponding with this product type, carry out coordinate transform computing, and point out and proofread and correct successfully on screen, if have a correcting button within Preset Time at least not by point, the original correction program of re invocation create reference paper, if there is reference paper, a checkpoint position blinking cursor, obtain the coordinate that user clicks this cursor, calculate the absolute value of the difference of this checkpoint corresponding coordinate in this coordinate and reference paper, whether the absolute value that judges this difference exceeds preset range, if exceed preset range, whether the cumulative time is proofreaied and correct in judgement overtime, if overtime, call original correction program, if it is not overtime, again obtain the coordinate of this cursor and continue to proofread and correct, if the absolute value of above-mentioned difference does not exceed preset range, with reference to the aligning step of above-mentioned checkpoint, complete successively the correction of all checkpoints, carry out afterwards coordinate transform computing, and point out and proofread and correct successfully on screen.In original correction program on screen successively at check point display highlighting, user clicks cursor successively according to prompting can realize correction.Because this bearing calibration is fairly simple, user only need click screen as much number of times according to the number of cursor complete verification, cursor or while there is double hit situation, verification still can be passed through, and so can cause the inaccurate situation of verification in user does not put.User is clicked to the coordinate of each checkpoint to method provided by the invention and the coordinate in reference paper compares calculated difference, by judging whether the absolute value of this difference exceeds preset range, coordinate is carried out to error correction and correction, only at a check point by rear next checkpoint of ability verification, thereby avoid mistake to proofread and correct, effectively prevent that the screen that user misoperation brings is seemingly-dead, improved the efficiency of correction program.In addition the present invention is not only applicable to exist the situation of the reference paper corresponding with touch-screen product type, also be applicable to the situation that does not exist the reference paper corresponding with touch-screen product type or reference paper to damage, under latter event, by the present invention, can generate voluntarily corresponding reference paper, be convenient to the verification of screen from now on.Simultaneously, at checkpoint, proofread and correct by rear time delay after default duration a bit under verification again, can effectively prevent the maloperations such as double hit, and utilize the method after user misoperation, again to touch-screen, to proofread and correct, without carrying out again software debugging etc., more user-friendly.
More than preferred embodiment of the present invention just, is not limited to the present invention, all modifications of making in technical scope of the present invention, is equal to and replaces or improvement etc., all should be included in the scope that the present invention protects.
Claims (10)
1. the bearing calibration of resistive touch screen automatic error-correcting, is characterized in that, comprises the steps:
Step S1, reads product type supplemental characteristic;
Step S2, judges whether the reference paper corresponding with this product type exists, and if not, performs step S3, if so, performs step S6;
Step S3, calls original correction program, performs step afterwards S4;
Step S4, the correcting button of systemic presupposition in point in Preset Time, if all correcting buttons, all by point, perform step S5 in Preset Time, if having a correcting button at least not by point, is back to step S3;
Step S5, creates the reference paper corresponding with this product type, jumps to afterwards step S10;
Step S6, a checkpoint position blinking cursor, obtains the coordinate that user clicks this cursor, calculates the absolute value of the difference of this checkpoint corresponding coordinate in this coordinate and reference paper;
Step S7, judges whether the absolute value of this difference exceeds preset range, if so, performs step S8, if not, performs step S9;
Step S8, whether the cumulative time is proofreaied and correct in judgement overtime, if so, jumps to step S3, if not, is back to step S6;
Step S9, the method according to step S6 to step S8, completes the correction of all checkpoints successively;
Step S10, carries out coordinate transform computing, and points out and proofread and correct successfully on screen.
2. resistive touch screen automatic error-correcting as claimed in claim 1 bearing calibration, is characterized in that, the Preset Time in step S4 is 5S at least.
3. resistive touch screen automatic error-correcting as claimed in claim 1 bearing calibration, is characterized in that, in described step S4, the correcting button of systemic presupposition is at least two.
4. resistive touch screen automatic error-correcting as claimed in claim 3 bearing calibration, is characterized in that, in described step S4, described button is four.
5. resistive touch screen automatic error-correcting as claimed in claim 1 bearing calibration, is characterized in that, in described step S8, judges whether trimming process is overtime to comprise: judgement is proofreaied and correct the cumulative time and whether is greater than 5s.
6. resistive touch screen automatic error-correcting as claimed in claim 1 bearing calibration, is characterized in that,
In described step S3, described original correction program comprises the steps:
Step S30, obtains upper left corner coordinate in system, upper right corner coordinate, lower right corner coordinate, lower left corner coordinate and center point coordinate;
Step S31, the checkpoint place display highlighting on screen successively, and prompting user clicks this cursor;
Step S32, user clicks the cursor of above-mentioned checkpoint successively.
7. resistive touch screen automatic error-correcting as claimed in claim 1 bearing calibration, is characterized in that, the default duration of time delay before execution step S9.
8. resistive touch screen automatic error-correcting as claimed in claim 7 bearing calibration, is characterized in that, the duration of time delay is 500ms at least.
9. resistive touch screen automatic error-correcting as claimed in claim 1 bearing calibration, it is characterized in that, described step S7 judges whether the absolute value of this difference exceeds preset range and be, whether the absolute value that judges this difference exceeds at least positive and negative 2% of corresponding coordinate in reference paper.
10. resistive touch screen automatic error-correcting as claimed in claim 1 bearing calibration, is characterized in that,
In described step S6, the coordinate that obtains user's click comprises the steps:
Step S60, screen checkpoint position display cursor, and prompting user clicks this cursor;
Step S61, obtains user and clicks the coordinate that this cursor produces.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310717103.5A CN103713795B (en) | 2013-12-20 | 2013-12-20 | A kind of Automatic error correction method for resistive touch screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310717103.5A CN103713795B (en) | 2013-12-20 | 2013-12-20 | A kind of Automatic error correction method for resistive touch screen |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103713795A true CN103713795A (en) | 2014-04-09 |
CN103713795B CN103713795B (en) | 2016-06-15 |
Family
ID=50406822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310717103.5A Active CN103713795B (en) | 2013-12-20 | 2013-12-20 | A kind of Automatic error correction method for resistive touch screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103713795B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104267866A (en) * | 2014-09-15 | 2015-01-07 | 福建升腾资讯有限公司 | Asymmetric touch screen calibrating method and system |
CN104331190A (en) * | 2014-11-27 | 2015-02-04 | 天津天地伟业数码科技有限公司 | Method and device applied to calibration of touch screens of embedded devices |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101201713A (en) * | 2006-12-13 | 2008-06-18 | 株式会社和冠 | Coordinate input apparatus |
US20110167628A1 (en) * | 2002-12-10 | 2011-07-14 | Neonode, Inc. | Component bonding using a capillary effect |
CN102736816A (en) * | 2012-07-06 | 2012-10-17 | 青岛海信移动通信技术股份有限公司 | Resistive touch screen calibration method and mobile terminal |
CN102819475A (en) * | 2011-06-08 | 2012-12-12 | 鸿富锦精密工业(深圳)有限公司 | System and method for calibrating touch screen of electronic device |
US8355009B2 (en) * | 2007-04-25 | 2013-01-15 | Mcdermid William J | Method and apparatus for determining coordinates of simultaneous touches on a touch sensor pad |
-
2013
- 2013-12-20 CN CN201310717103.5A patent/CN103713795B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110167628A1 (en) * | 2002-12-10 | 2011-07-14 | Neonode, Inc. | Component bonding using a capillary effect |
CN101201713A (en) * | 2006-12-13 | 2008-06-18 | 株式会社和冠 | Coordinate input apparatus |
US8355009B2 (en) * | 2007-04-25 | 2013-01-15 | Mcdermid William J | Method and apparatus for determining coordinates of simultaneous touches on a touch sensor pad |
CN102819475A (en) * | 2011-06-08 | 2012-12-12 | 鸿富锦精密工业(深圳)有限公司 | System and method for calibrating touch screen of electronic device |
CN102736816A (en) * | 2012-07-06 | 2012-10-17 | 青岛海信移动通信技术股份有限公司 | Resistive touch screen calibration method and mobile terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104267866A (en) * | 2014-09-15 | 2015-01-07 | 福建升腾资讯有限公司 | Asymmetric touch screen calibrating method and system |
CN104267866B (en) * | 2014-09-15 | 2017-04-12 | 福建升腾资讯有限公司 | Asymmetric touch screen calibrating method and system |
CN104331190A (en) * | 2014-11-27 | 2015-02-04 | 天津天地伟业数码科技有限公司 | Method and device applied to calibration of touch screens of embedded devices |
Also Published As
Publication number | Publication date |
---|---|
CN103713795B (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105824559B (en) | False touch recognition and processing method and electronic equipment | |
CN105593868B (en) | Fingerprint identification method and device and mobile terminal | |
CN105159539B (en) | Touch-control response method, device and the wearable device of wearable device | |
CN103412723A (en) | Mobile terminal unlocking method and mobile terminal unlocking system | |
CN102968217A (en) | Reference updating method and system for touch screen as well as touch terminal | |
CN107219515A (en) | The parameter calibrating method and terminal of a kind of range sensor | |
CN106293315A (en) | The method and apparatus that floating frame shows | |
EP2703959A1 (en) | Terminal and method for inputting in terminal using positive and negative ends of stylus | |
CN105844123A (en) | Method and device for identity authentication on terminal, and terminal | |
US20140340321A1 (en) | Mistouch identification method and device using the same | |
CN104049874A (en) | Touch handwriting generation method and system of stylus | |
CN107562473B (en) | Application program display method and mobile terminal | |
CN103617002A (en) | Method and device for achieving touch interface | |
CN104166515A (en) | Touch screen unlocking method and system for mobile terminal | |
CN104715181A (en) | Login system and method of application software | |
EP3156889A1 (en) | Terminal control method and device | |
TWI605379B (en) | Form processing method and terminal | |
CN105138241A (en) | Application startup method and system based on mobile terminal and mobile terminal | |
CN104657053A (en) | Method for realizing particular functions by multi-point gestures at touch screen terminal | |
CN101980118A (en) | Method for calibrating touch screen in Android platform | |
CN104657077A (en) | Cursor positioning method | |
WO2014206069A1 (en) | Method and apparatus for saving web page content | |
CN104182154A (en) | Method and device for avoiding faulty operation of handheld touch screen and mobile equipment | |
CN103713795A (en) | Automatic error correction method for resistive touch screen | |
CN106200976A (en) | A kind of motion-activated method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |