Summary of the invention
The technical matters that the present invention mainly solves is to provide a kind of resistive touch screen calibration steps and corresponding resistive touch screen equipment, the frequency of recalibration can be reduced, extend the stable time used, thus resistive touch screen is calibrated more accurately, improve the experience of user.
For solving the problems of the technologies described above, the technical solution used in the present invention is:
A kind of resistive touch screen calibration steps, comprising:
When user clicks the 3rd calibration point, the 4th calibration point on the first calibration point, the second calibration point and the second area on screen first area, obtain corresponding first touch panel coordinates (X respectively
1adc, Y
1adc), the second touch panel coordinates (X
2adc, Y
2adc), the 3rd touch panel coordinates (X
3adc, Y
3adc) and the 4th touch panel coordinates (X
4adc, Y
4adc);
Calculate first calibration slope corresponding to first area and second calibration slope corresponding with second area;
When clicking to be calibrated on described screen as user, obtain the touch panel coordinates (X of described point to be calibrated
5adc, Y
5adc), and judge that the position of described point to be calibrated is arranged in described first area or described second area, get described first calibration slope when being positioned at described first area and calibrate, get described second calibration slope when being positioned at described second area and calibrate;
Wherein, also comprise before calculating the step of the first calibration slope corresponding to first area and the second calibration slope corresponding with second area:
Judge: X
1adcwhether equal X
3adc, and X
2adcwhether equal X
4adc, and Y
2adcwhether equal Y
3adc, and (X
4adc– X
3adc) whether equal (X
2adc– X
1adc); Or
Judge: Y
1adcwhether equal Y
3adc, and Y
2adcwhether equal Y
4adc, and X
2adcwhether equal X
3adc, and (Y
4adc– Y
3adc) whether equal (Y
2adc– Y
1adc);
Work as X
1adcequal X
3adc, and X
2adcequal X
4adc, and Y
2adcequal Y
3adc, and (X
4adc– X
3adc) equal (X
2adc– X
1adc) time, or
Work as Y
1adcequal Y
3adc, and Y
2adcequal Y
4adc, and X
2adcequal X
3adc, and (Y
4adc– Y
3adc) equal (Y
2adc– Y
1adc) time, perform the step calculating first calibration slope corresponding to first area and second calibration slope corresponding with second area;
If X
1adcand X
3adc, and X
2adcand X
4adc, and Y
2adcand Y
3adc, and (X
4adc– X
3adc) and (X
2adc– X
1adc), there is any one not identical; Or Y
1adcand Y
3adc, and Y
2adcand Y
4adc, and X
2adcand X
3adc, and (Y
4adc– Y
3adc) and (Y
2adc– Y
1adc), have any one not identical, then the 3rd calibration point, the 4th calibration point on the first calibration point, the second calibration point and the second area of pointing out user again to click on screen first area, obtain corresponding first touch panel coordinates (X again
1adc, Y
1adc), the second touch panel coordinates (X
2adc, Y
2adc), the 3rd touch panel coordinates (X
3adc, Y
3adc) and the 4th touch panel coordinates (X
4adc, Y
4adc) step.
Further, this method also comprises step:
If X
1adcequal X
3adc, and X
2adcequal X
4adc, and Y
2adcequal Y
3adc, and (X
4adc– X
3adc) equal (X
2adc– X
1adc), then according to the ordinate Y of the second touch panel coordinates
2adcor the 3rd ordinate Y of touch panel coordinates
3adcdetermine the boundary ordinate Y of first area and second area
divideadc, wherein, boundary ordinate Y
divideadcwith Y
2adcor Y
3adcvalue equal; Or
If Y
1adcequal Y
3adc, and Y
2adcequal Y
4adc, and X
2adcequal X
3adc, and (Y
4adc– Y
3adc) equal (Y
2adc– Y
1adc), then according to the horizontal ordinate X of the second touch panel coordinates
2adcor the 3rd horizontal ordinate X of touch panel coordinates
3adcdetermine the boundary horizontal ordinate X of first area and second area
divideadc, wherein, boundary horizontal ordinate X
divideadcwith X
2adcor X
3adcequal.
Further, judging that the position of point to be calibrated is arranged in first area or the step of second area comprises:
Judge the horizontal ordinate X of point to be calibrated
5adcwhether be greater than boundary horizontal ordinate X
divideadcif, the horizontal ordinate X of point to be calibrated
5adcbe greater than boundary horizontal ordinate X
divideadc, then judge that this point to be calibrated is positioned at first area, if the horizontal ordinate X of this point to be calibrated
5adcbe less than boundary horizontal ordinate X
divideadc, then judge that this point to be calibrated is positioned at second area; Or
Judge the ordinate Y of point to be calibrated
5adcwhether be greater than boundary ordinate Y
divideadcif, the ordinate Y of this point to be calibrated
5adcbe greater than boundary ordinate Y
divideadc, then judge that this point to be calibrated is positioned at first area, if the ordinate Y of this point to be calibrated
5adcbe less than boundary ordinate Y
divideadc, then judge that this point to be calibrated is positioned at second area.
Further, the border of the positional distance screen of the first calibration point is 1/20 of display screen width and 1/20 of display screen height, and the border of the positional distance screen of the 4th calibration point is 1/20 of screen width and 1/20 of display screen height.
Further, in the step calculating first calibration slope corresponding to first area and second calibration slope corresponding with second area,
Corresponding first calibration slope Xslope-1, Yslope-1 calculate according to following formula in first area:
Xslope-1=(X
2–X
1)/(X
2adc-X
1adc),
Yslope-1=(Y
2– Y
1)/(Y
2adc– Y
1adc), wherein (X
1, Y
1) be the screen coordinate of the first calibration point, (X
2, Y
2) be the screen coordinate of the second calibration point;
Second area corresponding second calibration slope Xslope-2, Yslope-2 calculate according to following formula:
Xslope-2=(X
4–X
3)/(X
4adc–X
3adc)
Yslope-2=(Y
4– Y
3)/(Y
4adc– Y
3adc), wherein (X
3, Y
3) be the screen coordinate of the 3rd calibration point, (X
4, Y
4) be the screen coordinate of the 4th calibration point.
A kind of resistive touch screen equipment, comprising:
Acquisition module, for obtaining the coordinate of electric shock, when clicking the 3rd calibration point, the 4th calibration point on the first calibration point on screen first area, the second calibration point and second area as user, obtains corresponding first touch panel coordinates (X respectively
1adc, Y
1adc), the second touch panel coordinates (X
2adc, Y
2adc), the 3rd touch panel coordinates (X
3adc, Y
3adc), the 4th touch panel coordinates (X
4adc, Y
4adc), when user clicks at arbitrary to be calibrated, obtain the touch panel coordinates (X of described point to be calibrated
5adc, Y
5adc);
Slope computing module, for calculating first calibration slope corresponding to first area and second calibration slope corresponding with second area;
First judge module, for judging that the position of point to be calibrated is arranged in first area or second area;
Calibration module, during for judging that when the first judge module the position of described point to be calibrated is positioned at first area, according to the first calibration slope, described point to be calibrated is calibrated, when the first judge module judges that the position of point to be calibrated is positioned at second area, treat calibration point according to the second calibration slope and calibrate;
Wherein, equipment also comprises:
Second judge module, for judging X
1adcwhether equal X
3adc, and X
2adcwhether equal X
4adc, and Y
2adcwhether equal Y
3adc, and (X
4adc– X
3adc) whether equal (X
2adc– X
1adc).
Further, the equipment in the present invention also comprises:
Boundary coordinate determination module, for judging X when the second judge module
1adcequal X
3adc, and X
2adcequal X
4adc, and Y
2adcequal Y
3adc, and (X
4adc– X
3adc) equal (X
2adc– X
1adc) time, according to the second touch panel coordinates (X
2adc, Y
2adc) or the 3rd touch panel coordinates (X
3adc, Y
3adc) determine the boundary horizontal ordinate X of first area and second area
divideadcor boundary ordinate Y
divideadc, wherein, boundary horizontal ordinate X
divideadcwith X
2adcor X
3adcvalue equal, boundary ordinate Y
divideadcwith Y
2adcor Y
3adcvalue equal.
Further, the first judge module comprises:
Acquiring unit, is kept at local boundary horizontal ordinate X for obtaining
divideadcor boundary ordinate Y
divideadc;
Judging unit, for according to boundary horizontal ordinate X
divideadcwith the horizontal ordinate X of point to be calibrated
5adcjudge the horizontal ordinate X of point to be calibrated
5adcwhether be greater than described boundary horizontal ordinate X
divideadcif, the horizontal ordinate X of this point to be calibrated
5adcbe greater than boundary horizontal ordinate X
divideadc, then judge that this point to be calibrated is positioned at first area, if the horizontal ordinate X of point to be calibrated
5adcbe less than boundary horizontal ordinate X
divideadc, then judge that this point to be calibrated is positioned at described second area; Or
This judging unit is used for according to boundary ordinate Y
divideadcwith the ordinate Y of point to be calibrated
5adcjudge the ordinate Y of point to be calibrated
5adcwhether be greater than boundary ordinate Y
divideadcif, the ordinate Y of point to be calibrated
5adcbe greater than boundary ordinate Y
divideadc, then judge that this point to be calibrated is positioned at first area, if the ordinate Y of point to be calibrated
5adcbe less than boundary ordinate Y
divideadc, then judge that this point to be calibrated is positioned at second area.
In embodiment provided by the invention, when user clicks the 3rd calibration point, the 4th calibration point on the first calibration point, the second calibration point and the second area on screen first area, resistive touch screen equipment obtains corresponding first touch panel coordinates (X respectively
1adc, Y
1adc), the second touch panel coordinates (X
2adc, Y
2adc), the 3rd touch panel coordinates (X
3adc, Y
3adc) and the 4th touch panel coordinates (X
4adc, Y
4adc), then according to the first touch panel coordinates (X
1adc, Y
1adc) and the 3rd touch panel coordinates (X
3adc, Y
3adc) calculate first calibration slope corresponding to first area, and according to the second touch panel coordinates (X
2adc, Y
2adc) and the 4th touch panel coordinates (X
4adc, Y
4adc) calculate second calibration slope corresponding to second area, then the first calibration slope of calculating of basis and the second calibration slope are calibrated the point to be calibrated being positioned at first area and the point to be calibrated that is positioned at second area respectively; By carrying out split screen to screen, using different calibration slope to calibrate to the point in different screen, the frequency of recalibration can be reduced, extend the stable time used, thus resistive touch screen is calibrated more accurately, improve the experience of user.
Embodiment
Consult Fig. 4, resistive touch screen calibration steps of the present invention comprises the following steps:
401, when user clicks four calibration points on display screen, four corresponding first touch panel coordinates of calibration point, the second touch panel coordinates, the 3rd touch panel coordinates and the 4th touch panel coordinates are obtained;
402, the slope of first area and second area is calculated;
According to screen coordinate and the first touch panel coordinates (X of the first calibration point and the second calibration point
1adc, Y
1adc) and the second touch panel coordinates (X
2adc, Y
2adc) calculate first calibration slope corresponding to first area, and according to the screen coordinate of the 3rd calibration point and the 4th calibration point and the 3rd touch panel coordinates (X
3adc, Y
3adc) and the 4th touch panel coordinates (X
4adc, Y
4adc) calculate second calibration slope corresponding to second area;
403, according to the slope of first area and the slope of second area, the point to be calibrated to zones of different is calibrated;
When clicking any to be calibrated on screen as user, obtain the screen coordinate (X of point to be calibrated
5adc, Y
5adc), and judge that the position of this point to be calibrated is arranged in first area or second area, get the first calibration slope when being positioned at first area and calibrate, get the second calibration slope when being positioned at second area and calibrate.
In the present embodiment, when user clicks the 3rd calibration point, the 4th calibration point on the first calibration point, the second calibration point and the second area on screen first area, resistive touch screen equipment obtains corresponding first touch panel coordinates (X respectively
1adc, Y
1adc), the second touch panel coordinates (X
2adc, Y
2adc), the 3rd touch panel coordinates (X
3adc, Y
3adc) and the 4th touch panel coordinates (X
4adc, Y
4adc), then according to the first touch panel coordinates (X
1adc, Y
1adc) and the second touch panel coordinates (X
2adc, Y
2adc) calculate first calibration slope corresponding to first area, and according to the 3rd touch panel coordinates (X
3adc, Y
3adc) and the 4th touch panel coordinates (X
4adc, Y
4adc) calculate second calibration slope corresponding to second area, then the first calibration slope of calculating of basis and the second calibration slope are calibrated the point to be calibrated being positioned at first area and the point to be calibrated that is positioned at second area respectively; By carrying out split screen to screen, use different calibration slope to calibrate to the contact of zones of different in screen, the frequency of recalibration can be reduced, extend the stable time used, thus resistive touch screen is calibrated more accurately, improve the experience of user.
Specifically, refer to Fig. 5, the process flow diagram of the preferred embodiment of resistive touch screen calibration steps of the present invention comprises step:
501, user clicks four calibration points on display screen;
Set four fixing calibration points, when needs are calibrated resistive touch screen, need user to click four calibration points P1, P2, P3, P4 on display screen, the screen coordinate of four calibration points is: P1 (X
1, Y
1), P2 (X
2, Y
2), P3 (X
3, Y
3) and P4 (X
4, Y
4).
Wherein, shown in Fig. 6, first calibration point P1 is positioned at the upper left corner of display screen, 4th calibration point P4 is positioned at the lower right corner of display screen, and the position of the first calibration point P1 and the second calibration point P2 is preferably distance border is 1/20 of display screen width and 1/20 of height, can ensure to calibrate to cover as far as possible large display screen scope, ensure that success ratio is clicked in calibration simultaneously, if completely near border, during calibration, possibly cannot successfully click; In addition, the second calibration point P2 and the first calibration point P1 diagonal angle are arranged, and the 3rd calibration point P3 and the 4th calibration point P4 diagonal angle are arranged, and the first calibration point P1 is identical with the X-axis of the 3rd calibration point P3, that is: X
1=X
3; Second calibration point P2 is identical with the X-axis of the 4th calibration point P4, that is: X
2=X
4, ensure that upper and lower two screen X-axis coverages are identical with this, and the second calibration point P2 is identical with the Y-axis of the 3rd calibration point P3, that is: Y
2=Y
3; To ensure that upper and lower two screens cover Y
1and Y
4between all Y-axis scope, avoid the point in the middle of omitting.
Touch-screen is divided into upper and lower two screens to calibrate by four calibration points chosen in Fig. 6; Certainly, the present invention is not limited thereto, touch-screen is divided into left and right two screens to calibrate by four calibration points also can chosen.Shown in Fig. 7, when being divided into left and right two screens to calibrate, be that the first calibration point P1 is identical with the Y-axis of the 3rd calibration point P3, that is: Y
1=Y
3; Second calibration point P2 is identical with the Y-axis of the 4th calibration point P4, that is: Y
2=Y
4, ensure that left and right two screen Y-axis coverage is identical with this, and the second calibration point P2 is identical with the X-axis of the 3rd calibration point P3, that is: X
2=X
3; To ensure that left and right two screen covers X
1and X
4between all X-axis scope, avoid the point in the middle of omitting.
502, four corresponding first touch panel coordinates of calibration point, the second touch panel coordinates, the 3rd touch panel coordinates and the 4th touch panel coordinates are obtained;
After user clicks calibration point corresponding to four physical coordinates on display screen in step 501, resistive touch screen equipment obtains the first earth impedance, the second earth impedance, the 3rd earth impedance and the 4th earth impedance; Wherein, first earth impedance and the second earth impedance are by clicking screen first area first physical coordinates and the second physical coordinates place respectively and being formed, and the 3rd earth impedance and the 4th earth impedance are by clicking screen second area the 3rd physical coordinates and the 4th physical coordinates place and being formed;
After obtaining the first earth impedance, the second earth impedance, the 3rd earth impedance and the 4th earth impedance, by analog to digital converter, the first earth impedance, the second earth impedance, the 3rd earth impedance and the 4th earth impedance are carried out analog to digital conversion and obtain corresponding first touch panel coordinates (X
1adc, Y
1adc), the second touch panel coordinates (X
2adc, Y
2adc), the 3rd touch panel coordinates (X
3adc, Y
3adc) and the 4th touch panel coordinates (X
4adc, Y
4adc);
503, X is judged
1adcwhether equal X
3adc, and X
2adcwhether equal X
4adc, and Y
2adcwhether equal Y
3adc, and (X
4adc– X
3adc) whether equal (X
2adc– X
1adc), or judge Y
1adcwhether equal Y
3adc, and Y
2adcwhether equal Y
4adc, and X
2adcwhether equal X
3adc, and (Y
4adc– Y
3adc) whether equal (Y
2adc– Y
1adc);
What obtain corresponds to upper and lower split screen mode, judges the X obtained in step 502
1adcwhether equal X
3adc, and X
2adcwhether equal X
4adc, and Y
2adcwhether equal Y
3adc, and (X
4adc– X
3adc) whether equal (X
2adc– X
1adc).
Or, corresponding to left and right split screen mode, judge Y
1adcwhether equal Y
3adc, and Y
2adcwhether equal Y
4adc, and X
2adcwhether equal X
3adc, and (Y
4adc– Y
3adc) whether equal (Y
2adc– Y
1adc).
If four conditions are all satisfied, namely when the result of aforementioned judgement is and equals, then perform step 504, if there is any one condition not meet, then return step 501, again obtain each earth impedance, namely need user to reselect and touch four physical coordinates, circulate with this, until four conditions in this step are all satisfied.
Wherein, when upper and lower split screen, X
1adcand X
3adcidentical, and X
2adcand X
4adcidentical, can ensure that upper and lower two screen X-axis coverages are identical; Y
2adcand Y
3adcidentical, can ensure that upper and lower two screens cover all Y-axis, avoid the point in the middle of omitting; Or
Wherein, when left and right split screen, Y
1adcand Y
3adcidentical, and Y
2adcand Y
4adcidentical, ensure that left and right two screen Y-axis coverage is identical with this; And, X
2adcand X
3adcidentical, to ensure that left and right two screen covers X
1and X
4between all X-axis scope, avoid the point in the middle of omitting.
504, according to the second touch panel coordinates (X
2adc, Y
2adc) or the 3rd touch panel coordinates (X
3adc, Y
3adc) determine the boundary coordinate of first area and second area;
If judge X in step 503
1adcequal X
3adc, and X
2adcequal X
4adc, and Y
2adcequal Y
3adc, and (X
4adc– X
3adc) equal (X
2adc– X
1adc), then according to the ordinate Y of the second touch panel coordinates
2adcor the 3rd ordinate Y of touch panel coordinates
3adcdetermine the boundary ordinate Y of first area and second area
divideadc, wherein, boundary ordinate Y
divideadcwith Y
2adcor Y
3adcvalue equal; Or
If judge Y in step 503
1adcequal Y
3adc, and Y
2adcequal Y
4adc, and X
2adcequal X
3adc, and (Y
4adc– Y
3adc) equal (Y
2adc– Y
1adc), then according to the horizontal ordinate X of the second touch panel coordinates
2adcor the 3rd horizontal ordinate X of touch panel coordinates
3adcdetermine the boundary horizontal ordinate X of first area and second area
divideadc, wherein, boundary horizontal ordinate X
divideadcwith X
2adcor X
3adcequal;
505, calculate first calibration slope corresponding to first area, calculate second calibration slope corresponding with second area;
Concrete, if X
1adcequal X
3adc, and X
2adcequal X
4adc, and Y
2adcequal Y
3adc, and (X
4adc– X
3adc) equal (X
2adc– X
1adc), illustrate that first area and second area are upper and lower two regions of display screen:
First calibration slope is:
X
up_slope=(X
2–X
1)/(X
2adc-X
1adc),
Y
up_slope=(Y
2–Y
1)/(Y
2adc–Y
1adc);
Second calibration slope is:
X
down_slope=(X
4–X
3)/(X
4adc–X
3adc),
Y
down_slope=(Y
4–Y
3)/(Y
4adc–Y
3adc),
The first calibration slope X of first area is calculated by above formula
up_slopeand Y
up_slope, the second calibration slope X of second area
down_slopeand Y
down_slopeafter, the first calibration slope and the second calibration slope are kept at this locality;
If Y
1adcequal Y
3adc, and Y
2adcequal Y
4adc, and X
2adcequal X
3adc, and (Y
4adc– Y
3adc) equal (Y
2adc– Y
1adc), illustrate that first area and second area are left and right two regions:
First calibration slope is:
Y
left_slope=(Y
2–Y
1)/(Y
2adc-Y
1adc),
X
left_slope=(X
2–X
1)/(X
2adc–X
1adc);
Second calibration slope is:
Y
rt_slope=(Y
4–Y
3)/(Y
4adc–Y
3adc),
X
rt_slope=(X
4–X
3)/(X
4adc–X
3adc)。
The first calibration slope X of first area is calculated by above formula
left_slopeand Y
left_slope, the second calibration slope X of second area
rt_slopeand Y
rt_slopeafter, the first calibration slope and the second calibration slope are kept at this locality;
506, the earth impedance of point to be calibrated is obtained;
After the second calibration slope of the first calibration slope and second area that calculate first area, when user clicks any point on resistive touch screen, obtain the earth impedance of this any point, i.e. the earth impedance of point to be calibrated;
507, the earth impedance treating calibration point carries out the touch panel coordinates that analog to digital conversion obtains point to be calibrated;
After the earth impedance obtaining point to be calibrated, by analog to digital converter, the earth impedance of point to be calibrated is carried out the touch panel coordinates (X that analog to digital conversion obtains corresponding point to be calibrated
5adc, Y
5adc);
508, judge that the touch panel coordinates of point to be calibrated is arranged in first area or second area;
Judge that the touch panel coordinates of point to be calibrated is arranged in first area or second area, concrete, if display screen is divided into upper and lower two regions by first area and second area, then judge whether the touch panel coordinates of point to be calibrated is greater than boundary ordinate according to the touch panel coordinates of boundary ordinate and point to be calibrated, if the touch panel coordinates of point to be calibrated is greater than boundary ordinate, then the touch panel coordinates of point to be calibrated is positioned at first area, if the touch panel coordinates of point to be calibrated is less than boundary ordinate, then the touch panel coordinates of point to be calibrated is positioned at second area;
Such as, the touch panel coordinates of point to be calibrated is (X
5adc, Y
5adc), boundary Y-axis coordinate is Y
divideadcif, Y
5adcbe greater than Y
divideadc, then the touch panel coordinates of point to be calibrated is positioned at first area, performs step 509; If Y
5adcbe less than Y
divideadc, then the touch panel coordinates of point to be calibrated is positioned at second area, performs step 510;
If display screen is divided into two regions, left and right by first area and second area, then judge whether the touch panel coordinates of point to be calibrated is greater than boundary horizontal ordinate according to the touch panel coordinates of boundary horizontal ordinate and point to be calibrated, if the touch panel coordinates of point to be calibrated is greater than boundary horizontal ordinate, then point to be calibrated is positioned at first area, if the touch panel coordinates of point to be calibrated is less than this boundary horizontal ordinate, then point to be calibrated is positioned at second area;
Such as, the touch panel coordinates of point to be calibrated is (X
5adc, Y
5adc), boundary horizontal ordinate is X
divideadcif, X
5adcbe greater than X
divideadc, then point to be calibrated is positioned at first area, performs step 509; If X
5adcbe less than X
divideadc, then point to be calibrated is positioned at second area, performs step 510;
509, obtain the first calibration slope to treat calibration point and calibrate;
If judge that point to be calibrated is positioned at first area, then using the product of the touch panel coordinates of the first calibration slope and point to be calibrated as the screen coordinate after calibration;
For upper and lower split screen mode, now, the screen coordinate (X5, Y5) of point to be calibrated is:
X5=X
5adc*X
up_slope,
Y5=Y
5adc*Y
up_slope。
510, obtain the second calibration slope to treat calibration point and calibrate;
If judge that point to be calibrated is positioned at second area, then using the product of the touch panel coordinates of the second calibration slope and point to be calibrated as the screen coordinate after calibration;
Still for upper and lower split screen mode, now, the screen coordinate (X5, Y5) of point to be calibrated is:
X5=X
5adc*X
down_slope,
Y5=Y
5adc*Y
down_slope。
In the present embodiment, by carrying out split screen to screen, different calibration slope is used to calibrate to the point in different screen, the frequency of recalibration can be reduced, extend the stable time used, thus resistive touch screen is calibrated more accurately, improve the experience of user.
Refer to Fig. 8, the embodiment of resistive touch screen equipment of the present invention comprises:
Acquisition module 801, for obtaining the coordinate of touch point.
When clicking the 3rd calibration point, the 4th calibration point on the first calibration point on screen first area, the second calibration point and second area as user, acquisition module 801 obtains corresponding first touch panel coordinates (X respectively
1adc, Y
1adc), the second touch panel coordinates (X
2adc, Y
2adc), the 3rd touch panel coordinates (X
3adc, Y
3adc), the 4th touch panel coordinates (X
4adc, Y
4adc).
When user clicks at any to be calibrated, obtain the touch panel coordinates (X of point to be calibrated
5adc, Y
5adc).
Slope computing module 802, for the first touch panel coordinates (X got according to acquisition module 801
1adc, Y
1adc) and the second touch panel coordinates (X
2adc, Y
2adc) calculate first calibration slope corresponding to first area, and according to the 3rd touch panel coordinates (X that acquisition module 801 gets
3adc, Y
3adc) and the 4th touch panel coordinates (X
4adc, Y
4adc) calculate second calibration slope corresponding to second area;
First judge module 803, for judging that the position of the point to be calibrated that acquisition module 801 gets is arranged in first area or second area;
Calibration module 804, for when the first judge module 803 judges that the position of point to be calibrated is positioned at first area, calibrate according to the first calibration slope that slope computing module 802 calculates, when the first judge module 803 judges that the position of point to be calibrated is positioned at second area, calibrate according to the second calibration slope that slope computing module 802 calculates.
Further, the equipment in the present embodiment also comprises:
Second judge module 805, for judging X
1adcwhether equal X
3adc, and X
2adcwhether equal X
4adc, and Y
2adcwhether equal Y
3adc, and (X
4adc– X
3adc) whether equal (X
2adc– X
1adc);
Further, the equipment in the present embodiment also comprises:
Boundary coordinate determination module 806, for judging X when the second judge module 805
1adcequal X
3adc, and X
2adcequal X
4adc, and Y
2adcequal Y
3adc, and (X
4adc– X
3adc) equal (X
2adc– X
1adc) time, according to the second touch panel coordinates (X
2adc, Y
2adc) or the 3rd touch panel coordinates (X
3adc, Y
3adc) determine the boundary horizontal ordinate X of first area and second area
divideadcor boundary ordinate Y
divideadc, wherein, boundary horizontal ordinate X
divideadcwith X
2adcor X
3adcequal, or boundary ordinate Y
divideadcwith Y
2adcor Y
3adcvalue equal.
Further, the first judge module 803 comprises:
Acquiring unit, is kept at local boundary horizontal ordinate X for obtaining
divideadcor boundary ordinate Y
divideadc;
Judging unit, for according to boundary horizontal ordinate X
divideadcwith the horizontal ordinate X of point to be calibrated
5adcjudge the horizontal ordinate X of this point to be calibrated
5adcwhether be greater than boundary horizontal ordinate X
divideadcif, the horizontal ordinate X of this point to be calibrated
5adcbe greater than described boundary horizontal ordinate X
divideadc, then this point to be calibrated is positioned at first area, if the horizontal ordinate X of this point to be calibrated
5adcbe less than boundary horizontal ordinate X
divideadc, then this point to be calibrated is positioned at second area; Or
According to boundary ordinate Y
divideadcwith the vertical seat Y of point to be calibrated
5adcjudge the ordinate Y of this point to be calibrated
5adcwhether be greater than boundary ordinate Y
divideadcif, the ordinate Y of this point to be calibrated
5adcbe greater than boundary ordinate Y
divideadc, then this point to be calibrated is positioned at first area, if the ordinate Y of this point to be calibrated
5adcbe less than boundary ordinate Y
divideadc, then this point to be calibrated is positioned at second area;
In sum, in the present invention, by carrying out split screen calibration to touch-screen, different calibration slope is used to calibrate to the some correspondence in zones of different, the frequency of recalibration can be reduced, extend the stable time used, thus resistive touch screen is calibrated more accurately, improve the experience of user.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.