CN109164932B - Touch identification method and touch device - Google Patents

Touch identification method and touch device Download PDF

Info

Publication number
CN109164932B
CN109164932B CN201810871840.3A CN201810871840A CN109164932B CN 109164932 B CN109164932 B CN 109164932B CN 201810871840 A CN201810871840 A CN 201810871840A CN 109164932 B CN109164932 B CN 109164932B
Authority
CN
China
Prior art keywords
coordinate
coordinate point
track
point
axis
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
CN201810871840.3A
Other languages
Chinese (zh)
Other versions
CN109164932A (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.)
Zhuhai Hongpeihan Electronic Technology Co ltd
Original Assignee
Shenzhen Demingli Electronics 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 Demingli Electronics Co Ltd filed Critical Shenzhen Demingli Electronics Co Ltd
Priority to CN201810871840.3A priority Critical patent/CN109164932B/en
Publication of CN109164932A publication Critical patent/CN109164932A/en
Application granted granted Critical
Publication of CN109164932B publication Critical patent/CN109164932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Abstract

The invention provides a touch identification method and a touch device, wherein the method comprises the following steps: detecting a coordinate track of touch operation on a touch panel; calculating and recording an included angle between the track and the X axis or the Y axis between adjacent coordinate points in the coordinate track; calculating a vector value of a coordinate point in the coordinate track, and judging whether the coordinate track is a straight line; if the coordinate track is a straight line, judging whether a coordinate point in the coordinate track is located in a preset edge area; if the coordinate point is located in the preset edge area, stretching the coordinate point located in the preset edge area to obtain a stretched coordinate point; judging whether the stretching coordinate point needs to be corrected or not according to the vector value of the corresponding coordinate point; if the correction is needed, calculating a correction coordinate value according to the included angle between the track between the adjacent coordinate points and the X axis or the Y axis, the coordinate value of the stretching coordinate point, the stretching coefficient and the coordinate value of the precursor coordinate point of the stretching coordinate point to obtain a correction coordinate point; the method can effectively improve the touch effect.

Description

Touch identification method and touch device
Technical Field
The present invention relates to the field of touch technologies, and in particular, to a touch identification method and a touch device.
Background
In a mutual capacitance multi-point touch system, when a finger touches an edge portion of a touch screen, the finger will partially press the outside of the screen, resulting in incomplete data, and therefore when a touch IC firmware calculates an edge portion coordinate by using a gravity center algorithm, a coordinate point will be shifted to a center portion, resulting in distortion. To solve this problem, a method of stretching coordinates of an edge portion is generally adopted, that is, a sheet of area is set at the edge of the touch screen, when a touch point falls on different positions of the sheet of area, the touch point is stretched to the edge to different degrees, and as a result of stretching in sections, the edge can be reached when a user touches the touch screen, but if the touch operation is a line drawing, a line is bent when the line is drawn to the edge portion, as shown in fig. 1.
At present, many games and applications are often marked, and if the line strips are bent when the lines are marked to the edge part, the touch effect is seriously influenced.
Disclosure of Invention
The invention aims to provide a touch identification method and a touch device aiming at the problem that the line dividing strip at the edge part of the line marking operation is bent to influence the touch effect caused by the sectional stretching in the prior art, so that the line dividing strip at the edge part of the line marking operation can be effectively prevented from being bent, and the touch effect is effectively improved.
A touch identification method comprises the following steps:
detecting a coordinate track of touch operation on a touch panel;
calculating and recording an included angle between the track and the X axis or the Y axis between adjacent coordinate points in the coordinate track;
calculating a vector value of a coordinate point in the coordinate track, and judging whether the coordinate track is a straight line;
if the coordinate track is a straight line, judging whether a coordinate point in the coordinate track is located in a preset edge area;
if the coordinate point is located in the preset edge area, stretching the coordinate point located in the preset edge area to obtain a stretched coordinate point;
judging whether the stretching coordinate point needs to be corrected or not according to the vector value of the corresponding coordinate point;
if the correction is needed, calculating a correction coordinate value according to the included angle between the track between the adjacent coordinate points and the X axis or the Y axis, the coordinate value of the stretching coordinate point, the stretching coefficient and the coordinate value of the precursor coordinate point of the stretching coordinate point, and obtaining the correction coordinate point.
Further, calculating a vector value of a coordinate point in the coordinate trajectory, and determining whether the coordinate trajectory is a straight line, includes:
coordinates of three adjacent coordinate points are obtained, and vector values are calculated according to the following formula:
Figure GDA0002999552190000021
wherein, PnPn+1As a coordinate point PnAnd coordinate point Pn+1In betweenDistance, PnPn+2As a coordinate point PnAnd coordinate point Pn+2A distance between Pn+1Pn+2As a coordinate point Pn+1And coordinate point Pn+2Q is a coordinate point PnCoordinate point Pn+1And a coordinate point Pn+2The vector value of (2);
and if the vector values of all the adjacent three points in the coordinate track infinitely approach to 0, determining that the coordinate track is a straight line.
Further, judging whether a coordinate point is located in a preset edge region in the coordinate track comprises:
and comparing the coordinate of the coordinate point with the coordinate in the preset edge area, and if the coordinate of the coordinate point is consistent with the coordinate in the preset edge area, determining that the coordinate point is positioned in the preset edge area.
Further, the preset edge area comprises a first preset edge area with the length direction parallel to the X axis and a second preset edge area with the length direction parallel to the Y axis;
stretching the coordinate point in the Y-axis direction when the coordinate point is located in the first preset edge area, and stretching the coordinate point in the X-axis direction when the coordinate point is located in the second preset edge area;
if a coordinate point in the coordinate track is located in the first preset edge area, an included angle between the track and the Y axis between the adjacent coordinate points is calculated, and if a coordinate point in the coordinate track is located in the second preset area, an included angle between the track and the X axis between the adjacent coordinate points is calculated.
Further, the coordinate point has a stretch coefficient of 1/8 to 4/8.
Further, determining whether the stretching coordinate point needs to be corrected includes:
calculating the vector values of the stretching coordinate point and the two precursor coordinate points, taking the vector value calculation mean value obtained by the previous three times of calculation, subtracting the vector values of the stretching coordinate point and the two precursor coordinate points from the mean value to obtain an absolute value, and determining that the stretching coordinate point needs to be corrected if the absolute value is greater than a preset vector change threshold value.
Further, the tensile coordinate point in the Y-axis direction is corrected by the following formula:
Figure GDA0002999552190000031
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, θiIs the angle between the track and the Y axis between adjacent coordinate points, CryIs the ordinate, R, of the tensile coordinate pointnIs the stretch coefficient, (P)1x,P1y) The coordinate values of the precursor coordinate points that are stretch coordinate points.
Further, the tensile coordinate point in the X-axis direction is corrected by the following formula:
Figure GDA0002999552190000032
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, [ theta'iIs the angle between the track and the X-axis between adjacent coordinate points, CrxIs the abscissa of the tensile coordinate point, RnIs the stretch coefficient, (P)1x,P1y) The coordinate values of the precursor coordinate points that are stretch coordinate points.
Further, after obtaining the correction coordinate point, replacing the correction coordinate point with the stretching coordinate point, calculating and recording vector values of the correction coordinate point and the two precursor points, and recording an included angle between a track of the correction coordinate point and the precursor coordinate point and an X axis or a Y axis.
A touch device comprising a touch panel, a touch I C, a processor, and a memory, the memory storing a plurality of instructions, the touch I C being configured to detect a coordinate trace of a touch operation on the touch panel, the processor being configured to read the plurality of instructions and to perform:
calculating and recording an included angle between the track and the X axis or the Y axis between adjacent coordinate points in the coordinate track;
calculating a vector value of a coordinate point in the coordinate track, and judging whether the coordinate track is a straight line;
if the coordinate track is a straight line, judging whether a coordinate point in the coordinate track is located in a preset edge area;
if the coordinate point is located in the preset edge area, stretching the coordinate point located in the preset edge area to obtain a stretched coordinate point;
judging whether the stretching coordinate point needs to be corrected or not according to the vector value of the corresponding coordinate point;
if the correction is needed, calculating a correction coordinate value according to the included angle between the track between the adjacent coordinate points and the X axis or the Y axis, the coordinate value of the stretching coordinate point, the stretching coefficient and the coordinate value of the precursor coordinate point of the stretching coordinate point, and obtaining the correction coordinate point.
According to the touch identification method and the touch device provided by the invention, the edge coordinates are corrected by recording the coordinate track vector change process, so that the problem of bending of the edge part line dividing strip caused by coordinate stretching is effectively solved, the linearity of edge scribing is improved, and the touch effect is improved.
Drawings
Fig. 1 is a schematic drawing of a scribing line trace obtained by a prior art edge part coordinate drawing method.
Fig. 2 is a flowchart of a touch recognition method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of an embodiment of presetting an edge area in the touch recognition method provided by the invention.
Fig. 4 is a schematic diagram of a coordinate track in an application scenario in the touch recognition method provided by the present invention.
Fig. 5 is a schematic diagram of coordinate traces obtained by using only an edge portion coordinate stretching method in the prior art.
Fig. 6 is a schematic diagram of a coordinate track obtained in an application scenario by using the touch recognition method provided by the present invention.
Fig. 7 is a schematic structural diagram of a touch recognition device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Referring to fig. 2, the present embodiment provides a touch recognition method, including:
step S101, detecting a coordinate track of touch operation on a touch panel;
step S102, calculating and recording an included angle between a track and an X axis or a Y axis between adjacent coordinate points in the coordinate track;
step S103, calculating a vector value of a coordinate point in the coordinate track, and judging whether the coordinate track is a straight line;
step S104, if the coordinate track is a straight line, judging whether a coordinate point in the coordinate track is located in a preset edge area;
step S105, if a coordinate point is located in the preset edge area, stretching the coordinate point located in the preset edge area to obtain a stretched coordinate point;
step S106, judging whether the stretching coordinate point needs to be corrected or not according to the vector value of the corresponding coordinate point;
and step S107, if correction is needed, calculating a correction coordinate value according to the included angle between the track and the X axis or the Y axis between the adjacent coordinate points, the coordinate value of the stretching coordinate point, the stretching coefficient and the coordinate value of the precursor coordinate point of the stretching coordinate point, and obtaining the correction coordinate point.
Specifically, step S101 is performed first, and a touch operation on the touch panel is detected by touch I C.
And S102, calculating and recording an included angle between the track and the X axis or the Y axis between adjacent coordinate points in the coordinate track.
Referring to fig. 3, the preset edge regions include a first preset edge region a whose length direction is parallel to the X axis and a second preset edge region B whose length direction is parallel to the Y axis.
Taking the touch panel facing the user as an example, the first preset edge area is the preset edge areas on the upper side and the lower side of the touch panel, and the second preset edge area is the preset edge areas on the left side and the right side of the touch panel.
If a coordinate point in the coordinate track is located in the first preset edge area, an included angle between the track and the Y axis between the adjacent coordinate points is calculated, and if a coordinate point in the coordinate track is located in the second preset area, an included angle between the track and the X axis between the adjacent coordinate points is calculated.
Executing step S103, calculating vector values of coordinate points in the coordinate track, calculating one vector value for three adjacent coordinate points, acquiring coordinates of the three adjacent coordinate points by adopting a center line principle, and calculating the vector values according to the following formula:
Figure GDA0002999552190000061
wherein, PnPn+1As a coordinate point PnAnd coordinate point Pn+1A distance between PnPn+2As a coordinate point PnAnd coordinate point Pn+2A distance between Pn+1Pn+2As a coordinate point Pn+1And coordinate point Pn+2Q is a coordinate point PnCoordinate point Pn+1And a coordinate point Pn+2The vector value of (2).
And if the vector values of all the adjacent three points in the coordinate track infinitely approach to 0, determining that the coordinate track is a straight line.
And S104, after the coordinate track is determined to be a straight line, comparing the coordinates of each coordinate point in the coordinate track with the coordinates in the preset edge area, and if the coordinates are consistent with the coordinates in the preset edge area, determining that the coordinate point is located in the preset edge area.
Step S105 is executed to stretch the coordinate point in the Y-axis direction when the coordinate point is located in the first preset edge area a, and stretch the coordinate point in the X-axis direction when the coordinate point is located in the second preset edge area B.
As a preferred embodiment, the elongation coefficient of the coordinate point is 1/8 to 4/8.
And S106 is executed, the vector values of the stretching coordinate point and the two precursor coordinate points are calculated, the vector value calculation mean value obtained by the previous three times of calculation is taken, the vector values of the stretching coordinate point and the two precursor coordinate points and the mean value are subtracted to obtain an absolute value, and if the absolute value is larger than a preset vector change threshold value, the stretching coordinate point is determined to need to be corrected.
Executing step S107, the tensile coordinate point in the Y-axis direction is corrected by the following formula:
Figure GDA0002999552190000071
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, θiIs the angle between the track and the Y axis between adjacent coordinate points, CryIs the ordinate, R, of the tensile coordinate pointnIs the stretch coefficient, (P)1x,P1y) The coordinate values of the precursor coordinate points that are stretch coordinate points.
The tensile coordinate point in the X-axis direction is corrected by the following formula:
Figure GDA0002999552190000072
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, θiIs the angle between the track and the X-axis between adjacent coordinate points, CrxIs the abscissa of the tensile coordinate point, RnIs the stretch coefficient, (P)1x,P1y) The coordinate values of the precursor coordinate points that are stretch coordinate points.
And after obtaining the correction coordinate point, replacing the correction coordinate point with a stretching coordinate point, calculating and recording vector values of the correction coordinate point and two precursor points, and recording an included angle between the track of the correction coordinate point and the precursor coordinate point and an X axis or a Y axis.
Referring to fig. 4, the touch recognition method provided in the present embodiment is further explained with specific application scenarios.
The coordinate trajectory CrP5 is,the three-dimensional coordinate system comprises a first coordinate point P1, a second coordinate point P2, a third coordinate point P3, a fourth coordinate point P4, a fifth coordinate point P5 and a sixth coordinate point Cr, and records a fifth included angle theta between a fifth track P5P4 and the Y axis5A fourth included angle theta between the fourth track P4P3 and the Y axis4A third included angle theta between the third track P3P2 and the Y axis3A second included angle theta between the second track P2P1 and the Y axis2A first included angle theta between the first track P1Cr and the Y axis1
After determining the coordinate trajectory as a straight line, performing:
calculating a coordinate value of a fifth coordinate point P5, judging whether the fifth coordinate point is located in a preset edge area, and if not, executing the next step;
calculating a coordinate value of the fourth coordinate point P4, judging whether the fourth coordinate point is located in a preset edge area, and if not, executing the next step;
calculating a coordinate value of the third coordinate point P3, judging whether the coordinate value is located in a preset edge area, and if not, calculating and storing a first vector value Q1 of the fifth coordinate point P5, the fourth coordinate point P4 and the third coordinate point P3;
calculating a coordinate value of the second coordinate point P2, judging whether the coordinate value is located in a preset edge area, and if not, calculating and storing a second vector value Q2 of the fourth coordinate point P4, the third coordinate point P3 and the second coordinate point P2;
calculating a coordinate value of the first coordinate point P1, judging whether the coordinate value is located in a preset edge region, if not, calculating and storing a third vector value Q3 of the third coordinate point P3, the second coordinate point P2 and the first coordinate point P1;
calculating the coordinate value of a sixth coordinate point Cr, which is located in the first preset edge area A and uses the tensile coefficient RnStretching the sixth coordinate point Cr in the Y-axis direction to obtain a stretched coordinate point Cp, calculating a fourth vector value of the stretched coordinate point Cp, the first coordinate point P1 and the second coordinate point P2, comparing the absolute value of the difference between the fourth vector value and the mean value of the first vector value Q1, the second vector value Q2 and the third vector value Q3 with a preset vector change threshold, and if the absolute value is greater than the preset vector change threshold, determining that the stretched coordinate point Cp is stretchedThe point Cp needs to be corrected.
The sixth coordinate point Cr is located in the first preset edge region, and therefore the coordinates of the correction coordinate point are calculated by using the following formula:
Figure GDA0002999552190000091
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, θiIs the angle between the track and the Y axis between adjacent coordinate points, CryIs the ordinate, R, of the tensile coordinate pointnIs the stretch coefficient, (P)1x,P1y) The coordinate values of the precursor coordinate points that are stretch coordinate points.
The stretched coordinate point Cp is replaced with the corrected coordinate point Cf as the stretched sixth coordinate point Cr, and a fourth vector value Q4 of the corrected coordinate point Cf, the first coordinate point P1, and the second coordinate point P2 is calculated and stored.
Referring to fig. 5 and 6, fig. 5 is a coordinate track obtained by only using the edge stretching method, and fig. 6 is a coordinate track corrected by using the method provided by this embodiment, which effectively avoids the problem of bending of the line dividing strip at the edge portion.
According to the touch identification method provided by the embodiment, the edge coordinates are corrected by recording the coordinate track vector change process, so that the problem of bending of the edge dividing line caused by coordinate stretching is effectively solved, the linearity of edge scribing is improved, and the touch effect is improved.
Example two
Referring to fig. 7, the present embodiment provides a touch device, including a touch panel 201, a touch IC202, a processor 203 and a memory 204, where the memory 204 stores a plurality of instructions, the touch IC201 is configured to detect a coordinate track of a touch operation on the touch panel, and the processor 201 is configured to read the plurality of instructions and execute:
calculating and recording an included angle between the track and the X axis or the Y axis between adjacent coordinate points in the coordinate track;
calculating a vector value of a coordinate point in the coordinate track, and judging whether the coordinate track is a straight line;
if the coordinate track is a straight line, judging whether a coordinate point in the coordinate track is located in a preset edge area;
if the coordinate point is located in the preset edge area, stretching the coordinate point located in the preset edge area to obtain a stretched coordinate point;
judging whether the stretching coordinate point needs to be corrected or not according to the vector value of the corresponding coordinate point;
if the correction is needed, calculating a correction coordinate value according to the included angle between the track between the adjacent coordinate points and the X axis or the Y axis, the coordinate value of the stretching coordinate point, the stretching coefficient and the coordinate value of the precursor coordinate point of the stretching coordinate point, and obtaining the correction coordinate point.
Further, the processor 203 is further configured to perform:
coordinates of three adjacent coordinate points are obtained, and vector values are calculated according to the following formula:
Figure GDA0002999552190000101
wherein, PnPn+1As a coordinate point PnAnd coordinate point Pn+1A distance between PnPn+2As a coordinate point PnAnd coordinate point Pn+2A distance between Pn+1Pn+2As a coordinate point Pn+1And coordinate point Pn+2Q is a coordinate point PnCoordinate point Pn+1And a coordinate point Pn+2The vector value of (2);
and if the vector values of all the adjacent three points in the coordinate track infinitely approach to 0, determining that the coordinate track is a straight line.
Further, the processor 203 is further configured to perform:
and comparing the coordinate of the coordinate point with the coordinate in the preset edge area, and if the coordinate of the coordinate point is consistent with the coordinate in the preset edge area, determining that the coordinate point is positioned in the preset edge area.
Further, the processor 203 is further configured to perform:
calculating the vector values of the stretching coordinate point and the two precursor coordinate points, taking the vector value calculation mean value obtained by the previous three times of calculation, subtracting the vector values of the stretching coordinate point and the two precursor coordinate points from the mean value to obtain an absolute value, and determining that the stretching coordinate point needs to be corrected if the absolute value is greater than a preset vector change threshold value.
Further, the processor 203 is further configured to perform:
correcting the tensile coordinate point in the Y-axis direction by the following formula:
Figure GDA0002999552190000111
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, θiIs the angle between the track and the Y axis between adjacent coordinate points, CryIs the ordinate, R, of the tensile coordinate pointnIs the stretch coefficient, (P)1x,P1y) The coordinate values of the precursor coordinate points that are stretch coordinate points.
Further, the processor 203 is further configured to perform:
correcting the stretching coordinate point in the X-axis direction by the following formula:
Figure GDA0002999552190000112
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, θiIs the angle between the track and the X-axis between adjacent coordinate points, CrxIs the abscissa of the tensile coordinate point, RnIs the stretch coefficient, (P)1x,P1y) The coordinate values of the precursor coordinate points that are stretch coordinate points.
Further, the processor 203 is further configured to perform:
and after obtaining the correction coordinate point, replacing the correction coordinate point with a stretching coordinate point, calculating and recording vector values of the correction coordinate point and two precursor points, and recording an included angle between the track of the correction coordinate point and the precursor coordinate point and an X axis or a Y axis.
The touch identification device provided by the embodiment corrects the edge coordinates by recording the coordinate track vector change process, effectively solves the problem of bending of the edge dividing line caused by coordinate stretching, improves the linearity of edge scribing, and improves the touch effect.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (8)

1. A touch identification method is characterized by comprising the following steps:
detecting a coordinate track of touch operation on a touch panel;
calculating and recording an included angle between the track and the X axis or the Y axis between adjacent coordinate points in the coordinate track;
calculating a vector value of a coordinate point in the coordinate track, and judging whether the coordinate track is a straight line;
if the coordinate track is a straight line, judging whether a coordinate point in the coordinate track is located in a preset edge area;
if the coordinate point is located in the preset edge area, stretching the coordinate point located in the preset edge area to obtain a stretched coordinate point;
judging whether the stretching coordinate point needs to be corrected or not according to the vector value of the corresponding coordinate point;
if the correction is needed, calculating a correction coordinate value according to the included angle between the track between the adjacent coordinate points and the X axis or the Y axis, the coordinate value of the stretching coordinate point, the stretching coefficient and the coordinate value of the precursor coordinate point of the stretching coordinate point to obtain a correction coordinate point; wherein the content of the first and second substances,
the tensile coordinate point in the Y-axis direction is corrected by the following formula:
Figure FDA0003079356340000011
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, θiIs the angle between the track and the Y axis between adjacent coordinate points, CryIs the ordinate, R, of the tensile coordinate pointnIs the stretch coefficient, n is 1,2,3,4 … …, (P)1x,P1y) Coordinate value, X, of a precursor coordinate point that is a tensile coordinate pointmaxTo correct the maximum value of the abscissa, Y, of the coordinate pointmaxThe maximum value of the ordinate of the correction coordinate point is obtained;
the tensile coordinate point in the X-axis direction is corrected by the following formula:
Figure FDA0003079356340000012
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, [ theta'iIs the angle between the track and the X-axis between adjacent coordinate points, CrxIs the abscissa of the tensile coordinate point, RnIs the stretch coefficient, n is 1,2,3,4 … …, (P)1x,P1y) Coordinate value, X, of a precursor coordinate point that is a tensile coordinate pointmaxTo correct the maximum value of the abscissa, Y, of the coordinate pointmaxIs the maximum value of the ordinate of the correction coordinate point.
2. The touch recognition method of claim 1, wherein calculating a vector value of a coordinate point in the coordinate trajectory, and determining whether the coordinate trajectory is a straight line comprises:
coordinates of three adjacent coordinate points are obtained, and vector values are calculated according to the following formula:
Figure FDA0003079356340000021
wherein, PnPn+1As a coordinate point PnAnd coordinate point Pn+1A distance between PnPn+2As a coordinate point PnAnd coordinate point Pn+2A distance between Pn+1Pn+2As a coordinate point Pn+1And coordinate point Pn+2Q is a coordinate point PnCoordinate point Pn+1And a coordinate point Pn+2The vector value of (2);
and if the vector values of all the adjacent three points in the coordinate track infinitely approach to 0, determining that the coordinate track is a straight line.
3. The touch identification method of claim 1, wherein determining whether a coordinate point in the coordinate trajectory is located in a preset edge region comprises:
and comparing the coordinate of the coordinate point with the coordinate in the preset edge area, and if the coordinate of the coordinate point is consistent with the coordinate in the preset edge area, determining that the coordinate point is positioned in the preset edge area.
4. The touch identification method according to claim 2, wherein the preset edge areas include a first preset edge area with a length direction parallel to an X axis and a second preset edge area with a length direction parallel to a Y axis;
stretching the coordinate point in the Y-axis direction when the coordinate point is located in the first preset edge area, and stretching the coordinate point in the X-axis direction when the coordinate point is located in the second preset edge area;
if a coordinate point in the coordinate track is located in the first preset edge area, an included angle between the track and the Y axis between the adjacent coordinate points is calculated, and if a coordinate point in the coordinate track is located in the second preset area, an included angle between the track and the X axis between the adjacent coordinate points is calculated.
5. The touch identification method of claim 4, wherein the coordinate point has a stretch coefficient of 1/8-4/8.
6. The touch identification method of claim 5, wherein determining whether the stretching coordinate point needs to be corrected comprises:
calculating the vector values of the stretching coordinate point and the two precursor coordinate points, taking the vector value calculation mean value obtained by the previous three times of calculation, subtracting the vector values of the stretching coordinate point and the two precursor coordinate points from the mean value to obtain an absolute value, and determining that the stretching coordinate point needs to be corrected if the absolute value is greater than a preset vector change threshold value.
7. The touch identification method according to claim 1, wherein after obtaining the correction coordinate point, the correction coordinate point is used to replace the stretching coordinate point, vector values of the correction coordinate point and two predecessor points are calculated and recorded, and an included angle between a trajectory of the correction coordinate point and the predecessor coordinate point and an X axis or a Y axis is recorded.
8. A touch device, comprising a touch panel, a touch IC, a processor, and a memory, wherein the memory stores a plurality of instructions, the touch IC is configured to detect a coordinate trajectory of a touch operation on the touch panel, and the processor is configured to read the plurality of instructions and execute:
calculating and recording an included angle between the track and the X axis or the Y axis between adjacent coordinate points in the coordinate track;
calculating a vector value of a coordinate point in the coordinate track, and judging whether the coordinate track is a straight line;
if the coordinate track is a straight line, judging whether a coordinate point in the coordinate track is located in a preset edge area;
if the coordinate point is located in the preset edge area, stretching the coordinate point located in the preset edge area to obtain a stretched coordinate point;
judging whether the stretching coordinate point needs to be corrected or not according to the vector value of the corresponding coordinate point;
if the correction is needed, calculating a correction coordinate value according to the included angle between the track between the adjacent coordinate points and the X axis or the Y axis, the coordinate value of the stretching coordinate point, the stretching coefficient and the coordinate value of the precursor coordinate point of the stretching coordinate point to obtain a correction coordinate point; wherein the content of the first and second substances,
the tensile coordinate point in the Y-axis direction is corrected by the following formula:
Figure FDA0003079356340000041
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, θiIs the angle between the track and the Y axis between adjacent coordinate points, CryIs the ordinate, R, of the tensile coordinate pointnIs the stretch coefficient, n is 1,2,3,4 … …, (P)1x,P1y) Coordinate value, X, of a precursor coordinate point that is a tensile coordinate pointmaxTo correct the maximum value of the abscissa, Y, of the coordinate pointmaxThe maximum value of the ordinate of the correction coordinate point is obtained;
the tensile coordinate point in the X-axis direction is corrected by the following formula:
Figure FDA0003079356340000042
wherein (C)fx,Cfy) To correct the coordinates of the coordinate points, [ theta'iIs the angle between the track and the X-axis between adjacent coordinate points, CrxIs the abscissa of the tensile coordinate point, RnIs the stretch coefficient, n is 1,2,3,4 … …, (P)1x,P1y) Coordinate value, X, of a precursor coordinate point that is a tensile coordinate pointmaxTo correct the maximum value of the abscissa, Y, of the coordinate pointmaxIs the maximum value of the ordinate of the correction coordinate point.
CN201810871840.3A 2018-08-02 2018-08-02 Touch identification method and touch device Active CN109164932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810871840.3A CN109164932B (en) 2018-08-02 2018-08-02 Touch identification method and touch device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810871840.3A CN109164932B (en) 2018-08-02 2018-08-02 Touch identification method and touch device

Publications (2)

Publication Number Publication Date
CN109164932A CN109164932A (en) 2019-01-08
CN109164932B true CN109164932B (en) 2021-07-23

Family

ID=64898754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810871840.3A Active CN109164932B (en) 2018-08-02 2018-08-02 Touch identification method and touch device

Country Status (1)

Country Link
CN (1) CN109164932B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125624A (en) * 2019-11-29 2020-05-08 浙江维尔科技有限公司 Shift lever gear determination method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014080864A1 (en) * 2012-11-22 2014-05-30 シャープ株式会社 Display device with touch panel attached
CN104699323A (en) * 2013-12-06 2015-06-10 北京汇冠新技术股份有限公司 Method for optically positioning touch point based on image processing
CN105389041A (en) * 2014-09-03 2016-03-09 柯尼卡美能达株式会社 Handwriting input device, method for obtaining handwriting information
CN105528600A (en) * 2015-10-30 2016-04-27 小米科技有限责任公司 Region identification method and device
CN106527828A (en) * 2016-12-16 2017-03-22 上海交通大学 Notebook computer handwriting recognition method and handwriting input system
CN107765918A (en) * 2017-10-18 2018-03-06 广州视源电子科技股份有限公司 A kind of method and system for optimizing capacitance touch platen edge and touching effect
CN108228057A (en) * 2018-02-11 2018-06-29 青岛海信电器股份有限公司 A kind of modification method, device and the touch screen of touch-control inflection point

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003280820A (en) * 2002-03-22 2003-10-02 Fujitsu Component Ltd Input device and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014080864A1 (en) * 2012-11-22 2014-05-30 シャープ株式会社 Display device with touch panel attached
CN104699323A (en) * 2013-12-06 2015-06-10 北京汇冠新技术股份有限公司 Method for optically positioning touch point based on image processing
CN105389041A (en) * 2014-09-03 2016-03-09 柯尼卡美能达株式会社 Handwriting input device, method for obtaining handwriting information
CN105528600A (en) * 2015-10-30 2016-04-27 小米科技有限责任公司 Region identification method and device
CN106527828A (en) * 2016-12-16 2017-03-22 上海交通大学 Notebook computer handwriting recognition method and handwriting input system
CN107765918A (en) * 2017-10-18 2018-03-06 广州视源电子科技股份有限公司 A kind of method and system for optimizing capacitance touch platen edge and touching effect
CN108228057A (en) * 2018-02-11 2018-06-29 青岛海信电器股份有限公司 A kind of modification method, device and the touch screen of touch-control inflection point

Also Published As

Publication number Publication date
CN109164932A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN102810033B (en) Method for distinguishing multiple touch objects of different types on touch control panel
US8766945B2 (en) Input device and method for touch position calculation
WO2020220575A1 (en) Certificate recognition method and apparatus, electronic device, and computer readable storage medium
US20200159386A1 (en) Method for correcting error between pen coordinates and pointer display position
CN109164932B (en) Touch identification method and touch device
TW201443748A (en) Method of identifying a liquid object on a touch panel
US20150317029A1 (en) Method for detecting touch point of multi-type objects
JP2023108053A (en) Pen state detection method and electronic device
JP6089906B2 (en) Input device, input program, and input method
JP6024250B2 (en) Correction apparatus, correction program, and correction method
CN109634460B (en) Touch identification method and device based on area mirror image and touch display device
JP6658188B2 (en) Image processing apparatus, image processing method, and image processing program
KR20140046178A (en) Flexible display apparatus and method for compensating input data of touch in flexible display apparatus
JP5717055B2 (en) Similarity calculation device, similarity calculation method, and program
US9507440B2 (en) Apparatus and method to detect coordinates in a pen-based display device
CN105513193B (en) A kind of method and device for correcting infrared image
US9146625B2 (en) Apparatus and method to detect coordinates in a penbased display device
US10614330B2 (en) Character recognition method of handwriting input device, handwriting input device, and vehicle including the handwriting input device
CN109324716B (en) Touch screen anti-interference method based on hill climbing algorithm, touch device and mobile terminal
JP2013171553A (en) Display device
US20200218425A1 (en) Touch positioning method and apparatus, and electronic device
JP5983781B2 (en) Image resolution recognition apparatus, image resolution recognition method, and image resolution recognition program
CN106650719B (en) Method and device for identifying picture characters
CN107357478B (en) Electromagnetic touch inclination angle detection method, coordinate correction method and application thereof
CN109101131B (en) Touch identification method and device and touch display 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
CB02 Change of applicant information

Address after: Room 701, 7th floor, Smart Valley Innovation Park, 1010 Bulong Road, Minzhi Street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen deminli Technology Co.,Ltd.

Address before: 518000, 701, building 7, wisdom Valley Innovation Park, people's street, Longhua District, Shenzhen, Guangdong

Applicant before: SHENZHEN DEMINGLI ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 2501, 2401, block a, building 1, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen deminli Technology Co.,Ltd.

Address before: 518000 room 701, 7 / F, wisdom Valley Innovation Park, 1010 Bulong Road, Minzhi street, Longhua District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen deminli Technology Co.,Ltd.

CP02 Change in the address of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20240123

Address after: Room 409, 4th Floor, Building 1, No. 199 Weikang Road, Xiangzhou District, Zhuhai City, Guangdong Province, 519000

Patentee after: Zhuhai Hongpeihan Electronic Technology Co.,Ltd.

Country or region after: China

Address before: 2501, 2401, block a, building 1, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen, Guangdong 518000

Patentee before: Shenzhen deminli Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right