CN103186265B - Touch screen calibration method and apparatus - Google Patents

Touch screen calibration method and apparatus Download PDF

Info

Publication number
CN103186265B
CN103186265B CN201110448794.4A CN201110448794A CN103186265B CN 103186265 B CN103186265 B CN 103186265B CN 201110448794 A CN201110448794 A CN 201110448794A CN 103186265 B CN103186265 B CN 103186265B
Authority
CN
China
Prior art keywords
calibration parameter
calibration
proof test
test value
parameter
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.)
Active
Application number
CN201110448794.4A
Other languages
Chinese (zh)
Other versions
CN103186265A (en
Inventor
杨泽星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201110448794.4A priority Critical patent/CN103186265B/en
Publication of CN103186265A publication Critical patent/CN103186265A/en
Application granted granted Critical
Publication of CN103186265B publication Critical patent/CN103186265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of touch screen calibration method and apparatus, said method comprising the steps of: obtain and preset calibration parameter file, described calibration parameter file comprises the check field of the data field storing calibration parameter and the proof test value storing calibration parameter; Extract the calibration parameter in described data field, described calibration parameter is verified, generate proof test value; Judge that whether the proof test value of described generation is consistent with the proof test value in described check field, if unanimously, then according to described calibration parameter, touch-screen is calibrated.Adopt the present invention, the accuracy of touch screen calibration can be improved.

Description

Touch screen calibration method and apparatus
[technical field]
The present invention relates to touch screen technology, particularly relate to a kind of touch screen calibration method and apparatus.
[background technology]
Traditional resistive touch screen, all needs to calibrate the screen coordinate of touch-screen, namely extracts calibration parameter, convert the original coordinates of touch-screen, obtain screen coordinate accurately after first time uses and uses a period of time.After touch screen calibration, calibration parameter is stored in non-volatile memory device, such as, is stored in flash memory (flash).When again starting shooting, then calibration parameter being read out from flash memory, according to calibration parameter, original coordinates being converted, obtain screen coordinate accurately.
But owing to being with the storage space of equipment of touch-screen illegally to be distorted, and non-volatile memory device itself also can probabilistic generation bit flipping, causes the destruction of file system, thus makes the calibration parameter stored to be tampered.If the calibration parameter stored is tampered, then the inaccurate touch-screen that even may directly cause of touch screen calibration can be caused to use.
[summary of the invention]
Based on this, be necessary to provide a kind of touch screen calibration method that can improve the accuracy of touch screen calibration.
A kind of touch screen calibration method, comprises the following steps:
Obtain and preset calibration parameter file, described calibration parameter file comprises the check field of the data field storing calibration parameter and the proof test value storing calibration parameter;
Extract the calibration parameter in described data field, described calibration parameter is verified, generate proof test value;
Judge that whether the proof test value of described generation is consistent with the proof test value in described check field, if unanimously, then according to described calibration parameter, touch-screen is calibrated.
In a preferred embodiment, described method also comprises:
Obtain calibration parameter, according to described calibration parameter, touch-screen is calibrated;
Described calibration parameter is verified, generates the proof test value of described calibration parameter;
Described proof test value is stored in the check field in described calibration parameter file, described calibration parameter is stored in the data field in described calibration parameter file.
In a preferred embodiment, described method also comprises:
If the proof test value in the proof test value of described generation and described check field is inconsistent, then obtains preset parameter value, according to described preset parameter value, described touch-screen is calibrated.
In a preferred embodiment, after described step of described touch-screen being calibrated according to preset parameter value, comprise further:
Enter touch screen Calibration interface, received the click coordinate of user by described touch screen Calibration interface, calculate calibration parameter according to described click coordinate;
Described calibration parameter is verified, generates the proof test value of described calibration parameter;
Described proof test value is stored in the check field in described calibration parameter file, described calibration parameter is stored in the data field in described calibration parameter file.
In a preferred embodiment, the one that cyclic redundancy check (CRC), parity checking and School Affairs informative abstract value verify is verified as described in.
In addition, there is a need to provide a kind of touch screen calibration device that can improve the accuracy of touch screen calibration.
A kind of touch screen calibration device, comprising:
Calibration parameter file acquisition module, for obtaining default calibration parameter file, described calibration parameter file comprises the check field of the data field storing calibration parameter and the proof test value storing calibration parameter;
Correction verification module, extracts the calibration parameter in described data field, verifies described calibration parameter, generates proof test value;
Judge module, whether consistent with the proof test value in described check field for judging the proof test value that described correction verification module generates;
Calibration module, for when the proof test value of described generation is consistent with the proof test value in described check field, calibrates touch-screen according to described calibration parameter.
In a preferred embodiment, described correction verification module is also for after described calibration module is calibrated touch-screen according to described calibration parameter, described calibration parameter is verified, generate the proof test value of described calibration parameter, and the check field described proof test value is stored in described calibration parameter file, described calibration parameter is stored in the data field in described calibration parameter file.
In a preferred embodiment, if when the proof test value in the proof test value that also generates for described correction verification module of described calibration module and described check field is inconsistent, then obtains preset parameter value, calibrate touch-screen according to described preset parameter value.
In a preferred embodiment, described device also comprises:
Calibration parameter computing module, for after described calibration module is calibrated described touch-screen according to preset parameter value, enter touch screen Calibration interface, received the click coordinate of user by described touch screen Calibration interface, and calculate calibration parameter according to described click coordinate;
The calibration parameter of described correction verification module also for calculating described calibration parameter computing module verifies, generate the proof test value of described calibration parameter, and the check field described proof test value is stored in described calibration parameter file, described calibration parameter is stored in the data field in described calibration parameter file.
In a preferred embodiment, the one that cyclic redundancy check (CRC), parity checking and School Affairs informative abstract value verify is verified as described in.
Above-mentioned touch screen calibration method and apparatus, before touch-screen being calibrated according to calibration parameter, capital differentiates calibration parameter, if the proof test value verifying rear generation to calibration parameter is consistent with the proof test value prestored, then illustrate that calibration parameter was not tampered, according to calibration parameter, touch-screen was calibrated again when calibration parameter is not tampered, the accuracy of touch screen calibration can be improved.
[accompanying drawing explanation]
Fig. 1 is the schematic flow sheet of touch screen calibration method in an embodiment;
Fig. 2 is the schematic flow sheet repairing calibration parameter in an embodiment;
Fig. 3 is the schematic diagram of touch screen calibration device in an embodiment;
Fig. 4 is the schematic diagram of touch screen calibration device in another embodiment.
[embodiment]
As shown in Figure 1, in one embodiment, a kind of touch screen calibration method, comprises the following steps:
Step S102, obtains and presets calibration parameter file, and described calibration parameter file comprises the check field of the data field storing calibration parameter and the proof test value storing calibration parameter.
Concrete, as shown in table 1, pre-set the calibration parameter file for storing calibration parameter, the form of this file comprises two regions, i.e. data field and check field, wherein: data field for storing calibration parameter, i.e. parameter uncorrected data; Check field is for storing the proof test value of calibration parameter, and the proof test value of calibration parameter obtains after verifying calibration parameter.
Table 1
Check field Data field
Touch-screen being calibrated before at every turn, need calibration parameter be obtained, according to calibration parameter, touch-screen be calibrated.After touch-screen being calibrated, further, can verify calibration parameter at every turn, generate the proof test value of calibration parameter.Such as, cyclic redundancy check (CRC) (CRC check), parity checking (ECC verification) and verification (CheckSum verification) or informative abstract value verification (such as MD5 verification) etc. are carried out to calibration parameter, obtains proof test value.Then proof test value is stored in the check field in above-mentioned calibration parameter file, calibration parameter is stored in the data field in above-mentioned calibration parameter file.
Step S104, extracts the calibration parameter in data field, verifies calibration parameter, generates proof test value.
Concrete, adopt with each touch-screen is calibrated after the verification mode identical to the verification of calibration parameter the calibration parameter in data field is verified.Such as, after calibrating touch-screen, carry out CRC check to calibration parameter, the proof test value obtained is stored in check field at every turn, then after extracting the calibration parameter in data field, also carry out CRC check to calibration parameter, generate proof test value.
Step S106, judges that whether the proof test value generated is consistent with the proof test value in check field, if unanimously, then calibrates touch-screen according to calibration parameter.
Concrete, in step s 106, the proof test value of the check field in the proof test value of step S104 generation and calibration parameter file is contrasted, whether both judgements are identical, if identical, then illustrate that calibration parameter is not tampered, if different, then illustrate that calibration parameter is tampered.According to calibration parameter, touch-screen was calibrated again when calibration parameter is not tampered, the accuracy of touch screen calibration can be improved.
Further, in one embodiment, if the proof test value in the proof test value generated in step S104 and check field is inconsistent, then obtains preset parameter value, according to this preset parameter value, touch-screen is calibrated.
Concrete, in the present embodiment, pre-set preset parameter value, such as pre-set rotation parameter x1, y1, x2, y2, translation parameters z1, z2 and zooming parameter s, then for the screen coordinate x (Xp on touch-screen, Yp), then the coordinate after changing according to calibration parameter is ((x1*Xp+y1*Yp+z1)/s, (x2*Xp+y2*Yp+z2)/s).
In one embodiment, after touch-screen being calibrated according to preset parameter value, also can repair calibration parameter, concrete, as shown in Figure 2, to the detailed process that calibration parameter is repaired be:
Step S202, enters touch screen Calibration interface, is received the click coordinate of user by touch screen Calibration interface.
In the present embodiment, adopt 5 traditional Calibration interfaces, in touch screen Calibration interface, namely point out user to click screen optional position start to trigger calibration.At screen upper left corner show label (such as showing criss-cross mark) after user clicks screen optional position, prompting user clicks, then point out user to click upper right, bottom right, lower-left, center position successively, the screen coordinate according to these 5 positions calculates calibration parameter.
Step S204, verifies calibration parameter, generates the proof test value of calibration parameter.
As mentioned above, preferably, CRC check can be carried out to calibration parameter, generate the proof test value of calibration parameter.
Step S206, is stored in the check field in calibration parameter file by proof test value, calibration parameter is stored in the data field in calibration parameter file.
In the present embodiment, the proof test value of calibration parameter is stored in check field, calibration parameter is stored in data field, achieve the reparation to calibration parameter.Upper once touch-screen is calibrated time, just can use this calibration parameter file differentiate calibration parameter whether be tampered.Preferably, can calibrate when touch-screen place equipment is started shooting at every turn to touch-screen, if the proof test value in the proof test value and the check field that generate is inconsistent, then execution above-mentioned steps S202 ~ step S206, repairs the calibration parameter of touch-screen.
In one embodiment, as shown in Figure 3, a kind of touch screen calibration device, comprises calibration parameter file acquisition module 110, correction verification module 120, judge module 130 and calibration module 140, wherein:
Calibration parameter file acquisition module 110 is for obtaining default calibration parameter file, and described calibration parameter file comprises the check field of the data field storing calibration parameter and the proof test value storing calibration parameter.
Concrete, pre-set the calibration parameter file for storing calibration parameter, the form of this file comprises two regions, i.e. data field and check field, wherein: data field for storing calibration parameter, i.e. parameter uncorrected data; Check field is for storing the proof test value of calibration parameter, and the proof test value of calibration parameter obtains after verifying calibration parameter.
Touch-screen being calibrated before at every turn, need calibration parameter be obtained, according to calibration parameter, touch-screen be calibrated.After calibrating touch-screen, further, in one embodiment, correction verification module 120 can be used for verifying calibration parameter at every turn, generates the proof test value of calibration parameter.Such as, cyclic redundancy check (CRC) (CRC check), parity checking (ECC verification) and verification (CheckSum verification) or informative abstract value verification (such as MD5 verification) etc. are carried out to calibration parameter, obtains proof test value.Then proof test value is stored in the check field in above-mentioned calibration parameter file, calibration parameter is stored in the data field in above-mentioned calibration parameter file.
Correction verification module 120, for extracting the calibration parameter in data field, verifies calibration parameter, generates proof test value.
Concrete, correction verification module 120 can be used for adopting with each touch-screen is calibrated after the verification mode identical to the verification of calibration parameter the calibration parameter in data field is verified.Such as, after calibrating touch-screen, carry out CRC check to calibration parameter, the proof test value obtained is stored in check field at every turn, then after extracting the calibration parameter in data field, also carry out CRC check to calibration parameter, generate proof test value.
Whether judge module 130 is consistent with the proof test value in check field for judging the proof test value generated.
If calibration module 140, for when the proof test value that correction verification module 120 generates is consistent with the proof test value in check field, is calibrated touch-screen according to this calibration parameter.
In one embodiment, if calibration module 140 also for correction verification module 120 generate proof test value and described check field in proof test value inconsistent time, then obtain preset parameter value, according to preset parameter value, touch-screen calibrated.
Concrete, in the present embodiment, calibration module 140 is for pre-setting preset parameter value, such as pre-set rotation parameter x1, y1, x2, y2, translation parameters z1, z2 and zooming parameter s, then for the screen coordinate x (Xp on touch-screen, Yp), then the coordinate after changing according to calibration parameter is ((x1*Xp+y1*Yp+z1)/s, (x2*Xp+y2*Yp+z2)/s).
Further, in one embodiment, as shown in Figure 4, a kind of touch screen calibration device, except comprising above-mentioned calibration parameter file acquisition module 110, correction verification module 120, judge module 130 and calibration module 140, also comprise calibration parameter computing module 150, wherein:
Calibration parameter computing module 150, for after calibration module 140 is calibrated touch-screen according to preset parameter value, enters touch screen Calibration interface, is received the click coordinate of user by touch screen Calibration interface, and calculates calibration parameter according to click coordinate.
Concrete, calibration parameter computing module 150 can be used for adopting 5 traditional Calibration interfaces, in touch screen Calibration interface, namely points out user to click screen optional position start to trigger calibration.At screen upper left corner show label (such as showing criss-cross mark) after user clicks screen optional position, prompting user clicks, then point out user to click upper right, bottom right, lower-left, center position successively, calibration parameter computing module 150 is for calculating calibration parameter according to the screen coordinate of these 5 positions.
In the present embodiment, the calibration parameter of correction verification module 120 also for calculating calibration parameter computing module 150 verifies, generate the proof test value of calibration parameter, and this proof test value is stored in the check field in calibration parameter file, calibration parameter is stored in the data field in calibration parameter file.
In the present embodiment, the proof test value of calibration parameter is stored in check field, calibration parameter is stored in data field, achieve the reparation to calibration parameter.Upper once touch-screen is calibrated time, just can use this calibration parameter file differentiate calibration parameter whether be tampered.
The present invention, before calibrating touch-screen, differentiates the calibration parameter in calibration parameter file, prevents the calibration parameter reading mistake, therefore, it is possible to improve the accuracy of touch screen calibration.After detecting that calibration parameter is tampered, then repair calibration parameter, thus realize the protection to calibration parameter, avoid and cause the non-serviceable problem of touch-screen because of file system corruption, improve Consumer's Experience.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a touch screen calibration method, comprises the following steps:
Obtain and preset calibration parameter file, described calibration parameter file comprises the check field of the data field storing calibration parameter and the proof test value storing calibration parameter;
Extract the calibration parameter in described data field, described calibration parameter is verified, generate proof test value;
Judge that whether the proof test value of described generation is consistent with the proof test value in described check field, if unanimously, then according to described calibration parameter, touch-screen is calibrated.
2. touch screen calibration method according to claim 1, is characterized in that, described method also comprises:
Obtain calibration parameter, according to described calibration parameter, touch-screen is calibrated;
Described calibration parameter is verified, generates the proof test value of described calibration parameter;
Described proof test value is stored in the check field in described calibration parameter file, described calibration parameter is stored in the data field in described calibration parameter file.
3. touch screen calibration method according to claim 2, is characterized in that, described method also comprises:
If the proof test value in the proof test value of described generation and described check field is inconsistent, then obtains preset parameter value, according to described preset parameter value, described touch-screen is calibrated.
4. touch screen calibration method according to claim 3, is characterized in that, after described step of calibrating described touch-screen according to described preset parameter value, comprises further:
Enter touch screen Calibration interface, received the click coordinate of user by described touch screen Calibration interface, calculate calibration parameter according to described click coordinate;
Described calibration parameter is verified, generates the proof test value of described calibration parameter;
Described proof test value is stored in the check field in described calibration parameter file, described calibration parameter is stored in the data field in described calibration parameter file.
5. the touch screen calibration method according to any one of Claims 1-4, is characterized in that, described in be verified as cyclic redundancy check (CRC), parity checking and School Affairs informative abstract value verification one.
6. a touch screen calibration device, is characterized in that, comprising:
Calibration parameter file acquisition module, for obtaining default calibration parameter file, described calibration parameter file comprises the check field of the data field storing calibration parameter and the proof test value storing calibration parameter;
Correction verification module, extracts the calibration parameter in described data field, verifies described calibration parameter, generates proof test value;
Judge module, whether consistent with the proof test value in described check field for judging the proof test value that described correction verification module generates;
Calibration module, for when the proof test value of described generation is consistent with the proof test value in described check field, calibrates touch-screen according to described calibration parameter.
7. touch screen calibration device according to claim 6, it is characterized in that, described correction verification module is also for after described calibration module is calibrated touch-screen according to described calibration parameter, described calibration parameter is verified, generate the proof test value of described calibration parameter, and the check field described proof test value is stored in described calibration parameter file, described calibration parameter is stored in the data field in described calibration parameter file.
8. touch screen calibration device according to claim 7, it is characterized in that, if when the proof test value in the proof test value that described calibration module also generates for described correction verification module and described check field is inconsistent, then obtains preset parameter value, calibrate touch-screen according to described preset parameter value.
9. touch screen calibration device according to claim 8, is characterized in that, described device also comprises:
Calibration parameter computing module, for after described calibration module is calibrated described touch-screen according to described preset parameter value, enter touch screen Calibration interface, received the click coordinate of user by described touch screen Calibration interface, and calculate calibration parameter according to described click coordinate;
The calibration parameter of described correction verification module also for calculating described calibration parameter computing module verifies, generate the proof test value of described calibration parameter, and the check field described proof test value is stored in described calibration parameter file, described calibration parameter is stored in the data field in described calibration parameter file.
10. the touch screen calibration device according to any one of claim 6 to 9, is characterized in that, described in be verified as cyclic redundancy check (CRC), parity checking and School Affairs informative abstract value verification one.
CN201110448794.4A 2011-12-28 2011-12-28 Touch screen calibration method and apparatus Active CN103186265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110448794.4A CN103186265B (en) 2011-12-28 2011-12-28 Touch screen calibration method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110448794.4A CN103186265B (en) 2011-12-28 2011-12-28 Touch screen calibration method and apparatus

Publications (2)

Publication Number Publication Date
CN103186265A CN103186265A (en) 2013-07-03
CN103186265B true CN103186265B (en) 2016-03-09

Family

ID=48677463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110448794.4A Active CN103186265B (en) 2011-12-28 2011-12-28 Touch screen calibration method and apparatus

Country Status (1)

Country Link
CN (1) CN103186265B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867694A (en) * 2016-05-13 2016-08-17 成都易思科科技有限公司 Touch management method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097494A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Touch-controlled screen device with auto-calibration prompt function and method thereof
CN101727243A (en) * 2010-02-02 2010-06-09 中兴通讯股份有限公司 Method and device for acquiring calibration parameters of touch screen

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295217B (en) * 2008-06-05 2010-06-09 中兴通讯股份有限公司 Hand-written input processing equipment and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097494A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Touch-controlled screen device with auto-calibration prompt function and method thereof
CN101727243A (en) * 2010-02-02 2010-06-09 中兴通讯股份有限公司 Method and device for acquiring calibration parameters of touch screen

Also Published As

Publication number Publication date
CN103186265A (en) 2013-07-03

Similar Documents

Publication Publication Date Title
CN110501094A (en) Fault detection calibration method, air conditioner and the computer readable storage medium of electric appliance temperature sensor
CN102937922B (en) Inquiry and repair data
CN102968217B (en) The datum renewal method of touch-screen, system and touch control terminal
WO2010080257A3 (en) Data error recovery in non-volatile memory
KR101730510B1 (en) Non-regular parity distribution detection via metadata tag
TWI402793B (en) Calibrating apparatus and method for image processing apparatus
CN102279776B (en) Error checking and correcting ability testing method and device
TW201021045A (en) Reliability test method for solid storage medium
WO2006062959A3 (en) System and method for enhanced error detection in memory peripherals
CN103778030B (en) Daily record subsystem wiring method, error tracking method and processor
TWI397080B (en) Memory apparatus and testing method thereof
US10712870B2 (en) Method for improving fault tolerance of touchscreen and touchscreen terminal
CN205881469U (en) Fault detection equipment of electronic equipment and memory that is used for having a plurality of memory locations of standing transient fault and permanent fault
TWI535136B (en) Protection device and calibration method thereof
CN104598342A (en) Internal storage detection method and device
CN111176884A (en) SEC (Security and Security) verification method and device for FPGA (field programmable Gate array) configuration memory
TWI564904B (en) Data managing method, memory control circuit unit and memory storage apparatus
CN102904685A (en) Method and device for processing hardware table entry checking error
CN108664358A (en) Microcontroller parameter processing method, system, readable storage medium storing program for executing and terminal device
CN103186265B (en) Touch screen calibration method and apparatus
CN103885647A (en) Self-adapting restoring method for touch screen device and touch screen device
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN106648969B (en) Method and system for inspecting damaged data in disk
CN106971757A (en) A kind of method and system of inspection Nand Flash mass
CN102929442B (en) Method for correcting optical sensing signal

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