A kind of touch control identification method, device and touch control display apparatus
Technical field
The present invention relates to technical field of touch control more particularly to a kind of touch control identification methods, device and touch control display apparatus.
Background technique
In mutual capacitance multi-touch system, with reference to Fig. 1, when finger touches touch screen marginal portion, finger is had
Part pressing is external in screen, causes data incomplete, therefore is calculating marginal portion coordinate using centroid algorithm in touch-control I C firmware
When, it will cause coordinate points and deviated to central part, cause to be distorted.
Summary of the invention
It is an object of the invention to for it is above-mentioned it is in the prior art due to finger pressing screen cause data incomplete in vitro,
The problem of coordinate points are distorted when calculating proposes a kind of touch control identification method, device and touch control display apparatus, can be effectively improved this
Problem.
A kind of touch control identification method, comprising:
The first predeterminable area and the second predeterminable area, the first preset areas field width are set gradually at each edge of touch area
Degree and the second predeterminable area are of same size;
And second predeterminable area is divided into N number of section;
Detect the Grid Track of touch control operation on touch area;
Judge whether there are coordinate points to be located at second predeterminable area in the Grid Track;
If there is coordinate points are located at second predeterminable area, then according to the section where the coordinate points position, use
Corresponding drawing coefficient is stretched, and is obtained and is stretched coordinate points.
Further, the range of N is 2-5.
Further, judge whether there are coordinate points to be located at second predeterminable area in the Grid Track, comprising:
The coordinate of each coordinate points in Grid Track is compared with the coordinate in second predeterminable area, if
It is consistent, it is determined that the coordinate points are located in second predeterminable area.
Further, second predeterminable area is in turn divided into first interval, second interval and 3rd interval, it is corresponding
Drawing coefficient be respectively the first drawing coefficient, the second drawing coefficient and third drawing coefficient.
Further, it according to the section where the coordinate points position, is stretched, is obtained using corresponding drawing coefficient
Stretch coordinate points, comprising:
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the first interval, stretched using first
Coefficient stretches the X axis coordinate and/or Y axis coordinate;
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the second interval, stretched using first
Coefficient and the second drawing coefficient stretch the X axis coordinate and/or Y axis coordinate;
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the 3rd interval, stretched using first
Coefficient, the second drawing coefficient and third drawing coefficient stretch the X axis coordinate and/or Y axis coordinate.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the first interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 1=X1·(1+Q1);
YStretch 1=Y1·(1+Q1);
Wherein, XStretch 1、YStretch 1X axis coordinate and Y axis coordinate after respectively being stretched using the first drawing coefficient, X1、Y1For position
In the X axis coordinate and Y axis coordinate of the coordinate points of first interval, Q1For the first drawing coefficient.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the second interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 2=Xmax1·(1+Q1)+ΔX2·(1+Q2);
YStretch 2=Ymax1·(1+Q1)+ΔY2·(1+Q2);
Wherein, XStretch 2、YStretch 2X axis coordinate and Y-axis after respectively being stretched using the first drawing coefficient and the second drawing coefficient
Coordinate, Xmax1、Ymax1The respectively maximum X-coordinate of first interval and maximum Y coordinate, Xmax1=K1, Ymax1=K1, K1For the firstth area
Between width, Δ X2、ΔY2The respectively X-coordinate increment and Y coordinate increment of second interval, Δ X2=X2-K1, Δ Y2=Y2-K1,
X2、Y2For positioned at the X axis coordinate and Y axis coordinate of the coordinate points of second interval, Q2For the second drawing coefficient.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the 3rd interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 3=Xmax1·(1+Q1)+Xmax2(1+Q2)+ΔX3·(1+Q3);
YStretch 3=Ymax1·(1+Q1)+Ymax2(1+Q2)+ΔY3·(1+Q3);
Wherein, XStretch 3、YStretch 3After respectively being stretched using the first drawing coefficient, the second drawing coefficient and third drawing coefficient
X axis coordinate and Y axis coordinate, Xmax2、Ymax2The respectively maximum X-coordinate of second interval and maximum Y coordinate, Xmax2=K2, Ymax2
=K2, K2For the width of second interval, Δ X3、ΔY3The respectively X-coordinate increment and Y coordinate increment of 3rd interval, Δ X3=X3-
K2-K1, Δ Y3=Y3-K2-K1, X3、Y3For positioned at the X axis coordinate and Y axis coordinate of the coordinate points of 3rd interval, Q3For third stretching
Coefficient.
Further, the first drawing coefficient is 1/8, and the second drawing coefficient is 3/8, and third drawing coefficient is 4/8.
A kind of touch device, including touch panel, touch-control IC, processor and memory, the touch-control IC is for detecting
The Grid Track of touch control operation on the touch area of the touch panel, the memory store a plurality of instruction, the processing
Device is for reading described instruction and executing:
The first predeterminable area and the second predeterminable area, the first preset areas field width are set gradually at each edge of touch area
Degree and the second predeterminable area are of same size;
Second predeterminable area is divided into N number of section;
Judge whether there are coordinate points to be located at second predeterminable area in the Grid Track;
If there is coordinate points are located at second predeterminable area, then according to the section where the coordinate points position, use
Corresponding drawing coefficient is stretched, and is obtained and is stretched coordinate points.
A kind of touch control display apparatus, including above-mentioned touch device.
Touch control identification method, device and touch control display apparatus provided by the invention, using in edge setting area, to region
The mode that interior coordinate is stretched can effectively identify user for the touch-control at touch area edge, and method is simple, calculate
It measures small.
Detailed description of the invention
Fig. 1 is that existing touch screen finger part presses the schematic diagram external in screen.
Fig. 2 is a kind of flow chart of embodiment of touch control identification method provided by the invention.
Fig. 3 is the schematic diagram of the second predeterminable area demarcation interval in touch control identification method provided by the invention.
Fig. 4 is a kind of structural schematic diagram of embodiment of touch device provided by the invention.
Specific embodiment
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to
Limit the present invention.
Embodiment one
With reference to Fig. 2, the present embodiment provides a kind of touch control identification methods, comprising:
Step S101 sets gradually the first predeterminable area and the second predeterminable area at each edge of touch area, and first
Predeterminable area width and the second predeterminable area are of same size;
Second predeterminable area is divided into N number of section by step S102;
Step S103 detects the Grid Track of touch control operation on touch area;
Step S104 judges whether have coordinate points to be located at second predeterminable area in the Grid Track;
Step S105, if there is coordinate points are located at second predeterminable area, then according to where the coordinate points position
Section is stretched using corresponding drawing coefficient, is obtained and is stretched coordinate points.
Specifically, step S101 is executed, sets gradually the first predeterminable area and second in advance at each edge of touch area
If region, wherein the first predeterminable area is the region at relatively close touch area edge, the second predeterminable area is to be relatively distant from touching
The region of edges of regions is controlled, the first predeterminable area width and the second predeterminable area are of same size.
Step S102 is executed, the second default edge is divided into N number of section, as a preferred embodiment, the model of N
It encloses for 2-5, it can set interval quantity according to actual needs.
Step S103 is executed, the Grid Track of touch control operation on touch area is detected, which includes but is not limited to
Scribing line, single-point coordinate, multiple spot coordinate etc..
Step S104 is executed, judges whether there are coordinate points to be located at the second predeterminable area in the Grid Track, comprising:
The coordinate of each coordinate points in Grid Track is compared with the coordinate in second predeterminable area, if
It is consistent, it is determined that the coordinate points are located in second predeterminable area.
As a preferred embodiment, the second predeterminable area Q is in turn divided into first interval A, with reference to Fig. 3
Two interval Bs and 3rd interval C, corresponding drawing coefficient are respectively that the first drawing coefficient, the second drawing coefficient and third stretch system
Number, first interval A are the section for being relatively distant from touch area edge, and 3rd interval C is the area at relatively close touch area edge
Between.
Step S105 is executed to be stretched according to the section where the coordinate points position using corresponding drawing coefficient,
It obtains and stretches coordinate points, comprising:
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the first interval, stretched using first
Coefficient stretches the X axis coordinate and/or Y axis coordinate;
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the second interval, stretched using first
Coefficient and the second drawing coefficient stretch the X axis coordinate and/or Y axis coordinate;
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the 3rd interval, stretched using first
Coefficient, the second drawing coefficient and third drawing coefficient stretch the X axis coordinate and/or Y axis coordinate.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the first interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 1=X1·(1+Q1);
YStretch 1=Y1·(1+Q1);
Wherein, XStretch 1、YStretch 1X axis coordinate and Y axis coordinate after respectively being stretched using the first drawing coefficient, X1、Y1For position
In the X axis coordinate and Y axis coordinate of the coordinate points of first interval, Q1For the first drawing coefficient.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the second interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 2=Xmax1·(1+Q1)+ΔX2·(1+Q2);
YStretch 2=Ymax1·(1+Q1)+ΔY2·(1+Q2);
Wherein, XStretch 2、YStretch 2X axis coordinate and Y-axis after respectively being stretched using the first drawing coefficient and the second drawing coefficient
Coordinate, Xmax1、Ymax1The respectively maximum X-coordinate of first interval and maximum Y coordinate, Xmax1=K1, Ymax1=K1, K1For the firstth area
Between width, Δ X2、ΔY2The respectively X-coordinate increment and Y coordinate increment of second interval, Δ X2=X2-K1, Δ Y2=Y2-K1,
X2、Y2For positioned at the X axis coordinate and Y axis coordinate of the coordinate points of second interval, Q2For the second drawing coefficient.
If demarcation interval is equal portions division,K is the second preset areas field width
Degree.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the 3rd interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 3=Xmax1·(1+Q1)+Xmax2(1+Q2)+ΔX3·(1+Q3);
YStretch 3=Ymax1·(1+Q1)+Ymax2(1+Q2)+ΔY3·(1+Q3);
Wherein, XStretch 3、YStretch 3After respectively being stretched using the first drawing coefficient, the second drawing coefficient and third drawing coefficient
X axis coordinate and Y axis coordinate, Xmax2、Ymax2The respectively maximum X-coordinate of second interval and maximum Y coordinate, Xmax2=K2, Ymax2
=K2, K2For the width of second interval, Δ X3、ΔY3The respectively X-coordinate increment and Y coordinate increment of 3rd interval, Δ X3=X3-
K2-K1, Δ Y3=Y3-K2-K1, X3、Y3For positioned at the X axis coordinate and Y axis coordinate of the coordinate points of 3rd interval, Q3For third stretching
Coefficient.
If demarcation interval is equal portions division,K is the second predeterminable area
Width.
With reference to Fig. 3, the first predeterminable area P is because can not identify touch control operation, the seat in the second predeterminable area Q by proximal edge
Punctuate can reach the first predeterminable area by stretching,
Further, the first drawing coefficient is 1/8, and the second drawing coefficient is 3/8, and third drawing coefficient is 4/8, Suo Youqu
Between corresponding drawing coefficient summation be 1.
Touch control identification method provided in this embodiment stretches the coordinate in region using in edge setting area
Mode, can effectively identify user for the touch-control at touch area edge, and method is simple, and calculation amount is small.
Embodiment two
With reference to Fig. 4, the present embodiment provides a kind of touch devices, including touch panel 201, touch-control IC202, processor 203
And memory 204, touch-control IC202 are used to detect the Grid Track of touch control operation on the touch area of the touch panel, deposit
Reservoir 204 stores a plurality of instruction, and processor 203 is for reading described instruction and executing:
The first predeterminable area and the second predeterminable area, the first preset areas field width are set gradually at each edge of touch area
Degree and the second predeterminable area are of same size;
Second predeterminable area is divided into N number of section;
Judge whether there are coordinate points to be located at second predeterminable area in the Grid Track;
If there is coordinate points are located at second predeterminable area, then according to the section where the coordinate points position, use
Corresponding drawing coefficient is stretched, and is obtained and is stretched coordinate points.
First predeterminable area is the region at relatively close touch area edge, and the second predeterminable area is to be relatively distant from Touch Zone
The region at domain edge.
Specifically, touch-control IC202 is used to detect the Grid Track of touch control operation on the touch area of the touch panel, should
Grid Track includes but is not limited to scribing line, single-point coordinate, multiple spot coordinate etc..
Processor 203 is also used to execute:
The coordinate of each coordinate points in Grid Track is compared with the coordinate in second predeterminable area, if
It is consistent, it is determined that the coordinate points are located in second predeterminable area.
As a preferred embodiment, the second predeterminable area is in turn divided into first interval A, second with reference to Fig. 3
Interval B and 3rd interval C, corresponding drawing coefficient are respectively the first drawing coefficient, the second drawing coefficient and third drawing coefficient,
First interval A is the section for being relatively distant from touch area edge, and 3rd interval C is the section at relatively close touch area edge,
Then processor 203 is also used to execute:
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the first interval, stretched using first
Coefficient stretches the X axis coordinate and/or Y axis coordinate;
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the second interval, stretched using first
Coefficient and the second drawing coefficient stretch the X axis coordinate and/or Y axis coordinate;
If the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the 3rd interval, stretched using first
Coefficient, the second drawing coefficient and third drawing coefficient stretch the X axis coordinate and/or Y axis coordinate.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the first interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 1=X1·(1+Q1);
YStretch 1=Y1·(1+Q1);
Wherein, XStretch 1、YStretch 1X axis coordinate and Y axis coordinate after respectively being stretched using the first drawing coefficient, X1、Y1For position
In the X axis coordinate and Y axis coordinate of the coordinate points of first interval, Q1For the first drawing coefficient.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the second interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 2=Xmax1·(1+Q1)+ΔX2·(1+Q2);
YStretch 2=Ymax1·(1+Q1)+ΔY2·(1+Q2);
Wherein, XStretch 2、YStretch 2X axis coordinate and Y-axis after respectively being stretched using the first drawing coefficient and the second drawing coefficient
Coordinate, Xmax1、Ymax1The respectively maximum X-coordinate of first interval and maximum Y coordinate, Xmax1=K1, Ymax1=K1, K1For the firstth area
Between width, Δ X2、ΔY2The respectively X-coordinate increment and Y coordinate increment of second interval, Δ X2=X2-K1, Δ Y2=Y2-K1,
X2、Y2For positioned at the X axis coordinate and Y axis coordinate of the coordinate points of second interval, Q2For the second drawing coefficient.
If demarcation interval is equal portions division,K is the second predeterminable area
Width.
Further, if the X axis coordinate and/or Y axis coordinate of the coordinate points are located in the 3rd interval, pass through
Following formula stretches X axis coordinate and/or Y axis coordinate:
XStretch 3=Xmax1·(1+Q1)+Xmax2(1+Q2)+ΔX3·(1+Q3);
YStretch 3=Ymax1·(1+Q1)+Ymax2(1+Q2)+ΔY3·(1+Q3);
Wherein, XStretch 3、YStretch 3After respectively being stretched using the first drawing coefficient, the second drawing coefficient and third drawing coefficient
X axis coordinate and Y axis coordinate, Xmax2、Ymax2The respectively maximum X-coordinate of second interval and maximum Y coordinate, Xmax2=K2, Ymax2
=K2, K2For the width of second interval, Δ X3、ΔY3The respectively X-coordinate increment and Y coordinate increment of 3rd interval, Δ X3=X3-
K2-K1, Δ Y3=Y3-K2-K1, X3、Y3For positioned at the X axis coordinate and Y axis coordinate of the coordinate points of 3rd interval, Q3For third stretching
Coefficient.
If demarcation interval is equal portions division,K is the second predeterminable area
Width.
As a preferred embodiment, the first drawing coefficient is 1/8, the second drawing coefficient is 3/8, and third stretches system
Number is 4/8, and the corresponding drawing coefficient summation in all sections is 1.
Touch device provided in this embodiment, using in edge setting area, the side stretched to the coordinate in region
Formula can effectively identify user for the touch-control at touch area edge, and method is simple, and calculation amount is small.
Embodiment three
The present embodiment provides a kind of touch control display apparatus, including the touch control identification device as described in embodiment two.
Touch control display apparatus provided in this embodiment, including but not limited to mobile phone, tablet computer, display, notebook electricity
Any products or components having a display function such as brain.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description,
And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.