CN109753171A - The bearing calibration of touch-control coordinate under a kind of mirror image display pattern - Google Patents

The bearing calibration of touch-control coordinate under a kind of mirror image display pattern Download PDF

Info

Publication number
CN109753171A
CN109753171A CN201711069274.6A CN201711069274A CN109753171A CN 109753171 A CN109753171 A CN 109753171A CN 201711069274 A CN201711069274 A CN 201711069274A CN 109753171 A CN109753171 A CN 109753171A
Authority
CN
China
Prior art keywords
touch
ranks
display resolution
panel device
touch panel
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.)
Pending
Application number
CN201711069274.6A
Other languages
Chinese (zh)
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.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information Technology 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 Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN201711069274.6A priority Critical patent/CN109753171A/en
Publication of CN109753171A publication Critical patent/CN109753171A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of bearing calibrations of touch-control coordinate under mirror image display pattern, comprising steps of A1, touch panel device end determine whether current display mode is mirror image pattern, the display resolution and touch panel device end current display resolution at computer equipment end are if it is read;A2, threshold value of the resolution ratio ranks than difference is set;If A3, touch panel device end current display resolution ranks are not more than threshold value of the resolution ratio ranks than difference than the absolute difference of the display resolution ranks ratio with computer equipment end, touch panel device touch-control coordinate is not corrected then, if touch panel device end current display resolution ranks are greater than resolution ratio ranks than the threshold value of difference than the absolute difference of the display resolution ranks ratio with computer equipment end, touch panel device touch-control coordinate is corrected.

Description

The bearing calibration of touch-control coordinate under a kind of mirror image display pattern
Technical field
The present invention relates to touch screen display technologies fields, and in particular to the correction of touch-control coordinate under a kind of mirror image display pattern Method.
Background technique
Present computer system has mirror image display pattern, i.e. computer screen and other slave device screen can be shown When showing identical content, but computer being connect with touchpad device mirror image, in some cases, touchpad device and meter The display resolution of calculation machine is different, the touch point position for causing touchpad device graphic interface to show and the actual touch-control of touch screen Position generates deviation, can not be properly positioned touch location, seriously affect the accurate and effective of touch control operation, caused to user Puzzlement.As shown in Figure 1, the display resolution of computer system this side is 1960*1024, and the display resolution of touch panel device It is 1024*768, then touch screen will appear projection black surround, and touch point display position can generate offset with actual position of touch.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the deficiencies of the prior art, provide under a kind of mirror image display pattern The bearing calibration of touch-control coordinate, when computer being overcome to connect with touchpad device mirror image, touch-control that touchpad device image is shown Point position and the actual position of touch of touch screen generate deviation, can not be properly positioned touch location, influence touch control operation accuracy With the defect of validity.
The present invention to solve above-mentioned technical problem used by technical solution are as follows:
The bearing calibration of touch-control coordinate under a kind of mirror image display pattern, comprising steps of.
A1, touch panel device end determine whether current display mode is mirror image pattern, if it is read computer equipment The display resolution and touch panel device end current display resolution at end;
A2, threshold value of the resolution ratio ranks than difference is set;
If A3, touch panel device end current display resolution ranks are than the display resolution ranks with computer equipment end The absolute difference of ratio than the threshold value of difference, is not then corrected touch panel device touch-control coordinate no more than resolution ratio ranks, If touch panel device end current display resolution ranks are more exhausted than the difference of the display resolution ranks ratio with computer equipment end Resolution ratio ranks are greater than than the threshold value of difference to value, then touch panel device touch-control coordinate are corrected.
According to an embodiment of the invention, the step A3 is comprising steps of if touch panel device end current display resolution Ranks are greater than threshold value of the resolution ratio ranks than difference than the absolute difference of the display resolution ranks ratio with computer equipment end, And touch panel device end current display resolution ranks are positive than the difference of the display resolution ranks ratio with computer equipment end When value, touch screen touch-control column coordinate is corrected.
According to an embodiment of the invention, the step A3 is comprising steps of if touch panel device end current display resolution Ranks are greater than threshold value of the resolution ratio ranks than difference than the absolute difference of the display resolution ranks ratio with computer equipment end, And touch panel device end current display resolution ranks are negative than the difference of the display resolution ranks ratio with computer equipment end When value, touch screen touch-control row coordinate is corrected.
According to an embodiment of the invention, being corrected as follows to touch screen touch-control column coordinate:
Wherein Y is touch screen touch-control column coordinate after correction, and y is school Just preceding touch screen touch-control column coordinate, c1For the column split rate pixel number of touch panel device end current display resolution, c2For computer The column split rate pixel number of equipment end display resolution, r1For the row definition pixel of touch panel device end current display resolution Number, r2For the row definition pixel number of computer equipment end display resolution.
According to an embodiment of the invention, being corrected as follows to touch screen touch-control row coordinate:
Wherein X is touch screen touch-control row coordinate after correction, and x is school Just preceding touch screen touch-control row coordinate, c1For the column split rate pixel number of touch panel device end current display resolution, c2For computer The column split rate pixel number of equipment end display resolution, r1For the row definition pixel of touch panel device end current display resolution Number, r2For the row definition pixel number of computer equipment end display resolution.
According to an embodiment of the invention, resolution ratio ranks are set as 0.05 than the threshold value of difference.
Implement technical solution of the present invention, has the advantages that technical solution of the present invention passes through effective coordinate school Just, the touch point position for showing touchpad device image and the actual position of touch of touch screen will not generate deviation, Ke Yizheng True positioning touch location improves touch control operation accuracy and validity.
Detailed description of the invention
It is specifically described the present invention below with reference to attached drawing and in conjunction with example, advantages of the present invention and implementation will It is more obvious, wherein content only for the purpose of explanation of the present invention shown in attached drawing, without constitute to it is of the invention in all senses On limitation, in the accompanying drawings:
Fig. 1 is the schematic diagram of touch point display position of the present invention offset;
Fig. 2 is the flow chart of the method for the present invention;
Fig. 3 is present invention image is shown after coordinates correction touch point position and actual position of touch is consistent shows It is intended to.
Specific embodiment
As shown in Figure 1, Figure 2 and Figure 3, under mirror image display pattern of the present invention touch-control coordinate bearing calibration, comprising steps of
A1, touch panel device end determine whether current display mode is mirror image pattern, if it is read computer equipment The display resolution and touch panel device end current display resolution at end;
A2, threshold value of the resolution ratio ranks than difference is set;
If A3, touch panel device end current display resolution ranks are than the display resolution ranks with computer equipment end The absolute difference of ratio than the threshold value of difference, is not then corrected touch panel device touch-control coordinate no more than resolution ratio ranks, If touch panel device end current display resolution ranks are more exhausted than the difference of the display resolution ranks ratio with computer equipment end Resolution ratio ranks are greater than than the threshold value of difference to value, then touch panel device touch-control coordinate are corrected.
Step A3 is comprising steps of if touch panel device end current display resolution ranks are than aobvious with computer equipment end Show that the absolute difference of resolution ratio ranks ratio is greater than threshold value of the resolution ratio ranks than difference, and touch panel device end currently shows and divides Resolution ranks than the display resolution ranks ratio with computer equipment end difference be positive value when, to touch screen touch-control column coordinate into Row correction.
Step A3 is comprising steps of if touch panel device end current display resolution ranks are than aobvious with computer equipment end Show that the absolute difference of resolution ratio ranks ratio is greater than threshold value of the resolution ratio ranks than difference, and touch panel device end currently shows and divides Resolution ranks than the display resolution ranks ratio with computer equipment end difference be negative value when, to touch screen touch-control row coordinate into Row correction.
Touch screen touch-control column coordinate is corrected as follows:
Wherein Y is touch screen touch-control column coordinate after correction, and y is school Just preceding touch screen touch-control column coordinate, c1For the column split rate pixel number of touch panel device end current display resolution, c2For computer The column split rate pixel number of equipment end display resolution, r1For the row definition pixel of touch panel device end current display resolution Number, r2For the row definition pixel number of computer equipment end display resolution.
Wherein X is touch screen touch-control row coordinate after correction, and x is school Just preceding touch screen touch-control row coordinate, c1For the column split rate pixel number of touch panel device end current display resolution, c2For computer The column split rate pixel number of equipment end display resolution, r1For the row definition pixel of touch panel device end current display resolution Number, r2For the row definition pixel number of computer equipment end display resolution.
Resolution ratio ranks are set as 0.05 than the threshold value of difference.
" resolution ratio ranks ratio " refers to the row definition pixel number and column split rate pixel of display resolution in the present invention Several ratio.
Steps are as follows for the embodiment of the present invention:
101, determine that current display mode is mirror image display pattern;
102, the display resolution and touch panel device end current display resolution at computer equipment end are read;
103, touch panel device end current display resolution ranks are calculated than the display resolution row with computer equipment end The difference of column ratio;
104, when the 103 difference results calculated are negative value, step 105 is executed;
105, touch screen touch-control row coordinate is corrected,
Row coordinates correction formula:
Wherein X is touch screen touch-control row coordinate after correction, and x is school Just preceding touch screen touch-control row coordinate, c1For the column split rate pixel number of touch panel device end current display resolution, c2For computer The column split rate pixel number of equipment end display resolution, r1For the row definition pixel of touch panel device end current display resolution Number, r2For the row definition pixel number of computer equipment end display resolution;
106, when the 103 difference results calculated are positive value, step 107 is executed;
107, touch screen touch-control column coordinate is corrected,
Row coordinates correction formula:
Wherein Y is touch screen touch-control column coordinate after correction, and y is school Just preceding touch screen touch-control column coordinate, c1For the column split rate pixel number of touch panel device end current display resolution, c2For computer The column split rate pixel number of equipment end display resolution, r1For the row definition pixel of touch panel device end current display resolution Number, r2For the row definition pixel number of computer equipment end display resolution.
Here is a calculating correction example:
1) display resolution at computer equipment end is 1920*1080, and touch panel device end current display resolution is 1280*1024, the displaing coordinate of touch point are (1500,659);
2) touch panel device end current display resolution ranks ratio=1280/1024=1.25
The display resolution ranks ratio=1920/1080=1.78 at computer equipment end
3) I1.25-1.78I=0.53 > 0.05
Difference of the touch panel device end current display resolution ranks than the display resolution ranks ratio with computer equipment end It is worth absolute value and is greater than threshold value of the resolution ratio ranks than difference, and touch panel device end current display resolution ranks ratio and computer The difference of the display resolution ranks ratio of equipment end is negative value, therefore is corrected to touch screen touch-control row coordinate;
4) the touch screen touch-control row coordinate after correcting:
X=1280/2+ (1500-1280/2) * 1280*1080/ (1920*1024)=1245 is corrected, touch point Actual coordinate is (1245,659), and displaing coordinate point and actual touch spots can be overlapped.
Those skilled in the art do not depart from essence and spirit of the invention, can there are many deformation scheme realize the present invention, The foregoing is merely preferably feasible embodiments of the invention, and not thereby limiting the scope of the invention, all with this The variation of equivalent structure made by description of the invention and accompanying drawing content, is intended to be included within the scope of the present invention.

Claims (6)

1. the bearing calibration of touch-control coordinate under a kind of mirror image display pattern, which is characterized in that comprising steps of
A1, touch panel device end determine whether current display mode is mirror image pattern, if it is read computer equipment end Display resolution and touch panel device end current display resolution;
A2, threshold value of the resolution ratio ranks than difference is set;
If A3, touch panel device end current display resolution ranks are than the display resolution ranks ratio with computer equipment end Absolute difference than the threshold value of difference, is not then corrected touch panel device touch-control coordinate no more than resolution ratio ranks, if Absolute difference of the touch panel device end current display resolution ranks than the display resolution ranks ratio with computer equipment end Threshold value greater than resolution ratio ranks than difference is then corrected touch panel device touch-control coordinate.
2. the bearing calibration of touch-control coordinate under mirror image display pattern according to claim 1, which is characterized in that the step A3 is comprising steps of if touch panel device end current display resolution ranks are than the display resolution ranks with computer equipment end The absolute difference of ratio be greater than resolution ratio ranks than difference threshold value, and touch panel device end current display resolution ranks ratio with When the difference of the display resolution ranks ratio at computer equipment end is positive value, touch screen touch-control column coordinate is corrected.
3. the bearing calibration of touch-control coordinate under mirror image display pattern according to claim 1, which is characterized in that the step A3 is comprising steps of if touch panel device end current display resolution ranks are than the display resolution ranks with computer equipment end The absolute difference of ratio be greater than resolution ratio ranks than difference threshold value, and touch panel device end current display resolution ranks ratio with When the difference of the display resolution ranks ratio at computer equipment end is negative value, touch screen touch-control row coordinate is corrected.
4. the bearing calibration of touch-control coordinate under mirror image display pattern according to claim 2, which is characterized in that by following public Formula is corrected touch screen touch-control column coordinate:
Wherein Y is touch screen touch-control column coordinate after correction, and y is before correcting Touch screen touch-control column coordinate, c1For the column split rate pixel number of touch panel device end current display resolution, c2For computer equipment Hold the column split rate pixel number of display resolution, r1For the row definition pixel number of touch panel device end current display resolution, r2 For the row definition pixel number of computer equipment end display resolution.
5. the bearing calibration of touch-control coordinate under mirror image display pattern according to claim 3, which is characterized in that by following public Formula is corrected touch screen touch-control row coordinate:
Wherein X is touch screen touch-control row coordinate after correction, and x is before correcting Touch screen touch-control row coordinate, c1For the column split rate pixel number of touch panel device end current display resolution, c2For computer equipment Hold the column split rate pixel number of display resolution, r1For the row definition pixel number of touch panel device end current display resolution, r2 For the row definition pixel number of computer equipment end display resolution.
6. the bearing calibration of touch-control coordinate under mirror image display pattern according to claim 1, it is characterised in that: medium-res line The threshold value arranged than difference is set as 0.05.
CN201711069274.6A 2017-11-03 2017-11-03 The bearing calibration of touch-control coordinate under a kind of mirror image display pattern Pending CN109753171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711069274.6A CN109753171A (en) 2017-11-03 2017-11-03 The bearing calibration of touch-control coordinate under a kind of mirror image display pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711069274.6A CN109753171A (en) 2017-11-03 2017-11-03 The bearing calibration of touch-control coordinate under a kind of mirror image display pattern

Publications (1)

Publication Number Publication Date
CN109753171A true CN109753171A (en) 2019-05-14

Family

ID=66399246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711069274.6A Pending CN109753171A (en) 2017-11-03 2017-11-03 The bearing calibration of touch-control coordinate under a kind of mirror image display pattern

Country Status (1)

Country Link
CN (1) CN109753171A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130050122A1 (en) * 2011-08-31 2013-02-28 You-Jin KANG Controlling user equipment as touch pad for external device connected thereto
CN103155585A (en) * 2010-07-12 2013-06-12 欧普斯梅迪库斯股份有限公司 Systems and methods for networked in-context, high-resolution image viewing
CN105094631A (en) * 2014-05-08 2015-11-25 北大方正集团有限公司 Writing-brush stroke calibration method and apparatus based on touch screen
CN105786235A (en) * 2014-12-26 2016-07-20 联想(北京)有限公司 Data processing method and electronic device
CN105988860A (en) * 2015-01-20 2016-10-05 纬创资通股份有限公司 Method for executing application program and mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103155585A (en) * 2010-07-12 2013-06-12 欧普斯梅迪库斯股份有限公司 Systems and methods for networked in-context, high-resolution image viewing
US20130050122A1 (en) * 2011-08-31 2013-02-28 You-Jin KANG Controlling user equipment as touch pad for external device connected thereto
CN105094631A (en) * 2014-05-08 2015-11-25 北大方正集团有限公司 Writing-brush stroke calibration method and apparatus based on touch screen
CN105786235A (en) * 2014-12-26 2016-07-20 联想(北京)有限公司 Data processing method and electronic device
CN105988860A (en) * 2015-01-20 2016-10-05 纬创资通股份有限公司 Method for executing application program and mobile device

Similar Documents

Publication Publication Date Title
US20210319588A1 (en) Method and Apparatus for Calibrating External Parameters of Image Acquisition Device, Device and Storage Medium
US9104264B2 (en) Information processing apparatus and control method of information processing apparatus
US9710106B2 (en) Touch screen display device and driving method thereof
CN103809309B (en) Substrate detection equipment and method
JP2009252233A (en) Capacitive touch control device and data transmission method applied to the device
CN102419675B (en) Coordinate normalizing method of electromagnetic induction device and electromagnetic induction device
US20170131817A1 (en) Method for dynamically detecting threshold value of displaying stylus stroke on touch panel
US20230401988A1 (en) Brightness correcting method of display panel and brightness correcting device
CN102566825A (en) Positioning compensation method and optical touch module thereof
US9727194B2 (en) Touch panel apparatus and position detection method using the touch panel apparatus
CN108399017B (en) Gradient derivation device and method
CN109753171A (en) The bearing calibration of touch-control coordinate under a kind of mirror image display pattern
CN105278266A (en) Deviation detection and correction method for glass substrate
JP5315270B2 (en) Electronic device and touch panel calibration method
US9507440B2 (en) Apparatus and method to detect coordinates in a pen-based display device
CN104122770A (en) Deviation supplement and correction method and deviation supplement and correction device
CN107527369B (en) Image correction method, device, equipment and computer readable storage medium
US20210124445A1 (en) Control apparatus
CN104570504A (en) Automatic nozzle correction method and system
TWI426430B (en) Touch panel coordinate point calibration method
CN113674250A (en) Photomask defect detection method and device, electronic equipment, storage medium and chip
CN105044941A (en) Photolithographic pattern size detection method
CN102486699A (en) Demarcation method of linear array camera
JP5746651B2 (en) Numerical calculation device
CN102522058A (en) Four-point positioning deformation correction algorithm based on display

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190514