CN106610755A - Touch screen calibration method and apparatus - Google Patents
Touch screen calibration method and apparatus Download PDFInfo
- Publication number
- CN106610755A CN106610755A CN201611022390.8A CN201611022390A CN106610755A CN 106610755 A CN106610755 A CN 106610755A CN 201611022390 A CN201611022390 A CN 201611022390A CN 106610755 A CN106610755 A CN 106610755A
- Authority
- CN
- China
- Prior art keywords
- calibration
- value
- local
- deviation
- calibration value
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention provides a touch screen calibration method and apparatus. The method includes the steps of calculating the deviation of local calibration value in local calibration program and a backup calibration value in MCU, comparing the deviation with a preset first calibration threshold and a second calibration threshold, resetting the local calibration value to the backup calibration value when the deviation is greater than the first calibration threshold, and emitting a prompt dialog box when the when the deviation is smaller than or equals to the first calibration threshold and greater than the second calibration threshold. Wrong calibration values caused by error action, unauthorized rewrite, unknown mistakes of touch screen frame software and hardware can be prevented by setting calibration thresholds.
Description
Technical field
The present invention relates to touch screen technology field, more particularly to a kind of method and device of touch screen calibration.
Background technology
The general frame software that touches is provided with an initial calibration value of touch, and the calibration value ensure that most touch frame
Physical coordinates almost overlap with the coordinate of actual displayed, but the deviation that different complete machine structure has some different degrees of causes phase
Same touch calibration value occurs that touch is inaccurate, little skew occurs, it is therefore desirable to carry out touch screen calibration.
But, existing touch screen calibration passes through software calibration or manual calibration.But regardless of calibration, at some not
In the case of knowing, calibration value by misoperation, rewrite privately, or may touch frame software, hardware and unknown error occur, cause school
The entanglement of quasi- value, these the occurrence of be accidental or random, as related software is all extremely complex, cause the reason for occurring
It is difficult to search, it is huge to ultimately result in touch skew, or cannot touch completely
The content of the invention
In view of above-mentioned condition, it is necessary to for prior art alignment parameter easily by the problem of outside change, there is provided one
Plant the method and device of touch screen calibration.
The embodiment of the present invention provides a kind of method of touch screen calibration, including step,
Calculate the deviation of the backup calibration value in the local calibration value and MCU in local calibration program;
The comparison deviation and default first calibration threshold value and the second calibration threshold value, when the deviation is more than the first calibration
During threshold value, the local calibration value is reset to into the backup calibration value;When the deviation is less than or equal to the described first calibration
During threshold value, simultaneously greater than the second calibration threshold value, prompting frame is sent.
Said method, wherein, the touch screen is at least provided with 2 calibration points, the sheet in the calculating local calibration program
In ground calibration value and MCU back up calibration value deviation the step of include:
The local calibration value of each calibration point and the difference of backup calibration value are calculated respectively;
The meansigma methodss of the difference are calculated, and are obtained the local calibration value and deviation are obtained with the backup calibration value.
Said method, wherein, it is described by the local calibration value reset to it is described backup calibration value the step of include:
Local calibration value is zeroed out;
The calibration value that MCU is backed up is copied in local calibration program.
Said method, wherein, it is described to include the step of send prompting frame:
Sending prompting user carries out the prompting frame of manual calibration;
The calibration value after manual calibration is preserved, and the local calibration value is reset to the calibration after the manual calibration
Value.
Said method, wherein, when the local calibration value is less than or equal to second calibration threshold value, perform described
Ground calibration procedure;
It is described by the local calibration value reset to it is described backup calibration value the step of after also include:Perform and reset locally
Local calibration program after calibration value.
The embodiment of the present invention additionally provides a kind of device of touch screen calibration, including:
Computing module, for the deviation of the backup calibration value in calculating the local calibration value in local calibration program and MCU;
Comparison module, for the comparison deviation and default first calibration threshold value and the second calibration threshold value;
Module is reset, for when the deviation is more than the first calibration threshold value, the local calibration value being reset to described
Backup calibration value;
Reminding module, for being less than or equal to first calibration threshold value, the simultaneously greater than second calibration threshold when the deviation
During value, prompting frame is sent.
Said apparatus, wherein, the touch screen at least provided with 2 calibration points, the computing module specifically for:
The local calibration value of each calibration point and the difference of backup calibration value are calculated respectively;
The meansigma methodss of the difference are calculated, and are obtained the local calibration value and deviation are obtained with the backup calibration value.
Said apparatus, wherein, the replacement module is specifically included:
Dump block, for local calibration value is zeroed out;
Replication module, the calibration value for MCU is backed up are copied in local calibration program.
Said apparatus, wherein, the reminding module is specifically included:
Prompting submodule, carries out the prompting frame of manual calibration for sending prompting user;
Submodule is preserved and reset, for preserving the calibration value after manual calibration, and the local calibration value is reset to
Calibration value after the manual calibration.
Said apparatus, wherein, described device also includes calibration procedure performing module, for according to the local calibration program
In calibration value touch screen is calibrated.
The present invention arranges two calibration threshold values, when more than the first calibration threshold value, illustrates that calibration value is changed by mistake or mistake occurs
Disorderly, it is so the calibration value in local calibration program to be reset to the calibration value of backup, huge so as to avoid touch skew, or
Situation about cannot touch completely;When calibration value is between the first calibration threshold value and the second calibration threshold value, user is according to reality for guiding
The situation on border is modified calibration value.The present invention avoids calibration value from rewriting by misoperation, privately by arranging calibration threshold value, or
Person touches frame software, hardware and unknown error occurs, causes the situation of calibration value entanglement.
Description of the drawings
Fig. 1 is the method flow diagram of touch screen calibration provided in an embodiment of the present invention;
The method flow diagram of the touch screen calibration that Fig. 2 is provided for another embodiment of the present invention;
Fig. 3 is the structured flowchart of touch screen calibration device provided in an embodiment of the present invention;
The structured flowchart of the reminding module in the touch screen calibration device that Fig. 4 is provided for further embodiment of this invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
With reference to explained below and accompanying drawing, it will be clear that in terms of these and other of embodiments of the invention.In these descriptions
In accompanying drawing, some particular implementations in embodiments of the invention are specifically disclosed, represent the enforcement for implementing the present invention
Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.Conversely, the present invention
Embodiment includes all changes, modification and the equivalent fallen in the range of the spirit and intension of attached claims.
Refer to the method that Fig. 1 is a kind of touch screen calibration provided in an embodiment of the present invention, including step S11~S17.
Step S11, writes initial calibration value in touch screen calibration program, and arranges the first calibration threshold value and the second school
Quasi- threshold value, wherein the first calibration threshold value is more than second calibration threshold value.
In above-mentioned steps, the empirical value that the first calibration threshold value and the second calibration threshold value are obtained after multiple authentication.First
The higher limit of calibration value of the calibration threshold value to write in calibration procedure, when more than first calibration threshold value, touch skew is huge,
Or cannot touch completely.Second calibration threshold value allows for the change of the calibration value that different complete machine structures cause, or environment because
The change of calibration value caused by plain and a higher limit arranging, the calibration value that the change of the difference and environment of complete machine structure causes
Variable quantity less.
Step S12, the initial calibration value in touch screen calibration program is backuped in MCU, used as backup calibration value.
Step S13, calculates the deviation of the backup calibration value in the local calibration value and MCU in local calibration program.Every time
The deviation of the backup calibration value in the local calibration value and MCU in local calibration program will be calculated during start.The touch screen
At least provided with 2 calibration points, such as 3 points or 5 points calibrations, calculate in the local calibration value and MCU in local calibration program
The step of deviation of backup calibration value, specifically includes:
The local calibration value of each calibration point and the difference of backup calibration value are calculated respectively;
The meansigma methodss of the difference are calculated, and are obtained the local calibration value and deviation are obtained with the backup calibration value.
Step S14, the comparison deviation and default first calibration threshold value and the second calibration threshold value, when the deviation is more than
During the first calibration threshold value, execution step S15, when the deviation be less than or equal to first calibration threshold value, simultaneously greater than second
During calibration threshold value, execution step S16, when the deviation is less than or equal to second calibration threshold value, execution step S17.
In above-mentioned steps, the deviation is that the local calibration value of each calibration point is average with the difference of backup calibration value
Value,.
The local calibration value is reset to the backup calibration value by step S15, and after performing replacement local calibration value
Local calibration program.Further, the step is specially:Local calibration value is zeroed out;The calibration value that MCU is backed up is replicated
To in local calibration program.
Step S16, sends prompting frame.In the step, prompting frame is used to point out user to carry out manual calibration, and guides user
The step of pointing out according to prompting frame is calibrated.
Step S17, performs local calibration program.When the deviation is less than the second calibration threshold value, illustrate that calibration value must change
Change is, in allowed band, therefore can directly to perform local calibration program.
The embodiment of the present invention arrange two calibration threshold values, when more than the first calibration threshold value when, illustrate calibration value changed by mistake or
Generation entanglement, so the calibration value in local calibration program is reset to the calibration value of backup, it is huge so as to avoid touch skew
Situation about greatly, or completely cannot touch;When calibration value is between the first calibration threshold value and the second calibration threshold value, user is guided
Modified calibration value according to actual situation.The present embodiment avoids calibration value by misoperation, private by arranging calibration threshold value
From rewriting, or there is unknown error in touch frame software, hardware, cause the situation of calibration value entanglement.
Fig. 2 is referred to, is improved as one kind of the embodiment of the present invention, in another embodiment of the invention, above-mentioned steps
S16 is specifically included:
Step S161, sending prompting user carries out the prompting frame of manual calibration;
Step S162, preserves the calibration value after user's manual calibration, and the local calibration value is reset to described manual
Calibration value after calibration, performs the local calibration program after resetting local calibration value.
Fig. 3 please be participate in, the embodiment of the present invention additionally provides a kind of device for realizing the touch screen calibration of said method.
The device includes computing module 10, comparison module 20, resets module 30, reminding module 40 and calibration procedure performing module 50.Its
In,
Computing module 10 is used to calculating and backs up the inclined of calibration value in local calibration value in local calibration program and MCU
Difference.The deviation of the backup calibration value in the local calibration value and MCU in local calibration program will be calculated when starting shooting every time.It is described
Touch screen at least provided with 2 calibration points, such as 3 points or 5 points calibrations, calculate local calibration value in local calibration program with
The step of deviation of the backup calibration value in MCU, specifically includes:
The local calibration value of each calibration point and the difference of backup calibration value are calculated respectively;
The meansigma methodss of the difference are calculated, and are obtained the local calibration value and deviation are obtained with the backup calibration value.
Comparison module 20 is used for the comparison deviation and default first calibration threshold value and the second calibration threshold value.First calibration
The empirical value that threshold value and the second calibration threshold value are obtained after multiple authentication.First calibration threshold value is the school that writes in calibration procedure
The higher limit of quasi- value, when more than first calibration threshold value, touch skew is huge, or cannot touch completely.Second calibration threshold
Value allows for the change of the calibration value that different complete machine structures cause, or caused by environmental factorss the change of calibration value and arrange
One higher limit, the variable quantity of the calibration value that the change of the difference and environment of complete machine structure causes less.
Module 30 is reset for when the deviation is more than the first calibration threshold value, the local calibration value being reset to described
Backup calibration value.The replacement module 30 is specifically included:Dump block, for local calibration value is zeroed out;Replication module,
Calibration value for MCU is backed up is copied in local calibration program.
Reminding module 40 is used to be less than or equal to first calibration threshold value, the simultaneously greater than second calibration threshold when the deviation
During value, prompting frame is sent.
Calibration procedure performing module 50, for calibrating to touch screen according to the calibration value in local calibration program.
After starting shooting every time, backup calibration value in the local calibration value that compares in local calibration program and MCU is first passed through
Deviation and the first calibration threshold value and the second calibration threshold value, when the deviation is more than the first calibration threshold value, by local calibration value weight
Backup calibration value is set to, and performs the local calibration program after resetting local calibration value;When the deviation is less than or equal to first
During calibration threshold value, simultaneously greater than the second calibration threshold value, prompting frame is sent, to point out user to carry out manual calibration;When the deviation
During less than or equal to second calibration threshold value, local calibration program is performed.
The present embodiment avoids calibration value from rewriting by misoperation, privately by arranging calibration threshold value, or touch frame software,
There is unknown error in hardware, causes the situation of calibration value entanglement.
Further, as another embodiment of the present invention, as shown in figure 4, the reminding module 40 is specifically included:
Prompting submodule 401, carries out the prompting frame of manual calibration for sending prompting user;
Submodule 402 is preserved and reset, for preserving the calibration value after manual calibration, and the local calibration value is reset
For the calibration value after the manual calibration.Prompting submodule 401 sends prompting frame, and the instruction that user is ejected according to prompting frame is pressed
Step carries out touch screen calibration, and the calibration value after manual calibration is write local calibration by preserving and resetting submodule 402
In program, and preserve, use when being easy to start shooting next time.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
Example ", or the description of " some examples " etc. mean specific features with reference to the embodiment or example description, structure, material or spy
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example are referred to necessarily.And, the specific features of description, structure, material or feature can be any
One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
These embodiments can be carried out with various changes, modification, replacement and modification in the case of the principle and objective that depart from the present invention, this
The scope of invention is limited by claim and its equivalent.
Claims (10)
1. a kind of method of touch screen calibration, it is characterised in that including step,
Calculate the deviation of the backup calibration value in the local calibration value and MCU in local calibration program;
The comparison deviation and default first calibration threshold value and the second calibration threshold value, when the deviation is more than the first calibration threshold value
When, the local calibration value is reset to into the backup calibration value;When the deviation is less than or equal to first calibration threshold value,
During simultaneously greater than the second calibration threshold value, prompting frame is sent.
2. the method for claim 1, it is characterised in that the touch screen is at least provided with 2 calibration points, the calculating sheet
In local calibration value and MCU in ground calibration procedure back up calibration value deviation the step of include:
The local calibration value of each calibration point and the difference of backup calibration value are calculated respectively;
The meansigma methodss of the difference are calculated, and are obtained the local calibration value and deviation are obtained with the backup calibration value.
3. the method for claim 1, it is characterised in that described that the local calibration value is reset to into the backup calibration
The step of value, includes:
Local calibration value is zeroed out;
The calibration value that MCU is backed up is copied in local calibration program.
4. the method for claim 1, it is characterised in that described to include the step of send prompting frame:
Sending prompting user carries out the prompting frame of manual calibration;
The calibration value after manual calibration is preserved, and the local calibration value is reset to the calibration value after the manual calibration.
5. the method for claim 1, it is characterised in that when the local calibration value is less than or equal to the described second calibration
During threshold value, the local calibration program is performed;
It is described by the local calibration value reset to it is described backup calibration value the step of after also include:Perform and reset local calibration
Local calibration program after value.
6. a kind of device of touch screen calibration, it is characterised in that include:
Computing module, for the deviation of the backup calibration value in calculating the local calibration value in local calibration program and MCU;
Comparison module, for the comparison deviation and default first calibration threshold value and the second calibration threshold value;
Module is reset, for when the deviation is more than the first calibration threshold value, the local calibration value being reset to the backup
Calibration value;
Reminding module, for being less than or equal to first calibration threshold value when the deviation, during simultaneously greater than the second calibration threshold value,
Send prompting frame.
7. device as claimed in claim 6, it is characterised in that the touch screen is at least provided with 2 calibration points, the calculating mould
Block specifically for:
The local calibration value of each calibration point and the difference of backup calibration value are calculated respectively;
The meansigma methodss of the difference are calculated, and are obtained the local calibration value and deviation are obtained with the backup calibration value.
8. device as claimed in claim 6, it is characterised in that the replacement module is specifically included:
Dump block, for local calibration value is zeroed out;
Replication module, the calibration value for MCU is backed up are copied in local calibration program.
9. device as claimed in claim 6, it is characterised in that the reminding module is specifically included:
Prompting submodule, carries out the prompting frame of manual calibration for sending prompting user;
Submodule is preserved and reset, for preserving the calibration value after manual calibration, and the local calibration value is reset to described
Calibration value after manual calibration.
10. device as claimed in claim 6, it is characterised in that described device also includes calibration procedure performing module, for pressing
Touch screen is calibrated according to the calibration value in the local calibration program.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610942247 | 2016-11-02 | ||
CN2016109422474 | 2016-11-02 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106610755A true CN106610755A (en) | 2017-05-03 |
CN106610755B CN106610755B (en) | 2019-09-20 |
Family
ID=58635962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611022390.8A Active CN106610755B (en) | 2016-11-02 | 2016-11-16 | A kind of method and device of touch screen calibration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106610755B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683896A (en) * | 2018-05-04 | 2018-10-19 | 歌尔科技有限公司 | A kind of calibration method of projection device, device, projection device and terminal device |
CN106610755B (en) * | 2016-11-02 | 2019-09-20 | 广州视源电子科技股份有限公司 | A kind of method and device of touch screen calibration |
CN114201072A (en) * | 2021-11-29 | 2022-03-18 | 深圳市德明利技术股份有限公司 | Calibration method, device and equipment of touch chip and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101566901A (en) * | 2008-04-23 | 2009-10-28 | 索尼爱立信移动通信日本株式会社 | Contact-sensing device, mobile information terminal, and capacitance calibration program and method |
CN102968217A (en) * | 2012-12-07 | 2013-03-13 | 深圳市汇顶科技股份有限公司 | Reference updating method and system for touch screen as well as touch terminal |
CN103677452A (en) * | 2012-08-30 | 2014-03-26 | 华为终端有限公司 | Capacitive touch screen calibration method and capacitive touch device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106610755B (en) * | 2016-11-02 | 2019-09-20 | 广州视源电子科技股份有限公司 | A kind of method and device of touch screen calibration |
-
2016
- 2016-11-16 CN CN201611022390.8A patent/CN106610755B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101566901A (en) * | 2008-04-23 | 2009-10-28 | 索尼爱立信移动通信日本株式会社 | Contact-sensing device, mobile information terminal, and capacitance calibration program and method |
CN103677452A (en) * | 2012-08-30 | 2014-03-26 | 华为终端有限公司 | Capacitive touch screen calibration method and capacitive touch device |
CN102968217A (en) * | 2012-12-07 | 2013-03-13 | 深圳市汇顶科技股份有限公司 | Reference updating method and system for touch screen as well as touch terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106610755B (en) * | 2016-11-02 | 2019-09-20 | 广州视源电子科技股份有限公司 | A kind of method and device of touch screen calibration |
CN108683896A (en) * | 2018-05-04 | 2018-10-19 | 歌尔科技有限公司 | A kind of calibration method of projection device, device, projection device and terminal device |
CN114201072A (en) * | 2021-11-29 | 2022-03-18 | 深圳市德明利技术股份有限公司 | Calibration method, device and equipment of touch chip and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106610755B (en) | 2019-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10402005B2 (en) | Touch method and device, touch display apparatus | |
TWI546711B (en) | Method and computing device for determining angular contact geometry | |
US10678303B2 (en) | Method for controlling electronic device and electronic device | |
CN106610755A (en) | Touch screen calibration method and apparatus | |
US10318152B2 (en) | Modifying key size on a touch screen based on fingertip location | |
US20160188079A1 (en) | Controlling Method of Foldable Screen and Electronic Device | |
KR101372122B1 (en) | Method and apparatus for correcting gesture on touch screen based on vector | |
US20130154947A1 (en) | Determining a preferred screen orientation based on known hand positions | |
TW201604719A (en) | Method and apparatus of controlling a smart device | |
US10459965B2 (en) | Method and apparatus for displaying images | |
US9959026B2 (en) | Spread-to-duplicate and pinch-to-delete gestures | |
US20170046044A1 (en) | Display control method and electronic device | |
US20240118762A1 (en) | Touch system and method for selectively operating firmware | |
US20150185871A1 (en) | Gesture processing apparatus and method for continuous value input | |
US9733732B2 (en) | Generating a virtual eraser area | |
US20140306927A1 (en) | Input device, computer-readable recording medium, and method for receiving input | |
EP2642378A1 (en) | Method and apparatus for detecting touch | |
US9582180B2 (en) | Automated touch screen zoom | |
US20210089123A1 (en) | Method and device for calculating parameters of gaze-point calculation model | |
CN105094503B (en) | Information processing method and deformable electronic equipment | |
JP2014115967A (en) | Detecting method for touch device | |
TWI507936B (en) | Touch panel and correcting apparatus thereof | |
WO2017088309A1 (en) | Method and apparatus for moving icon, and computer storage medium | |
WO2017084202A1 (en) | User equipment and unlocking method therefor, and computer storage medium | |
CN104572408B (en) | Progress bar display processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |