Three-finger coaxial splitting point merging method, touch device and touch display device
Technical Field
The invention relates to the technical field of touch control, in particular to a three-finger coaxial splitting point merging method, a touch control device and a touch control display device.
Background
In the mutual capacitance multi-point touch system, when a user places an electronic device on an insulating object, for example, places a mobile phone on a swivel chair in an office, the mobile phone is in a suspended state, at this time, because the ground (namely GND) of the mobile phone is isolated from the ground of the earth, the variation of the touch of the user is very small, referring to fig. 1, if the user lines three fingers in the same direction, a point splitting phenomenon may occur on one of the lines, point A and point B are points splitting, so that one line is split into two lines, when the point splitting phenomenon occurs, the touch IC may mistakenly think that the two lines are two tracks, and thus, the coordinate recognition of the three-finger coaxial line is not favorable.
Disclosure of Invention
The present invention is directed to provide a method for merging three-finger coaxial split points, a touch device and a touch display device, which can merge split points and solve the problem of split point disconnection in the prior art.
A method of three-finger coaxial split-point merging, comprising:
detecting whether touch operation has a split point;
if yes, determining the boundary of the first split point region and the boundary of the second split point region;
calculating the boundary of a merging point according to the boundary of the first split point region and the boundary of the second split point region;
and determining a merging point area according to the boundary of the merging point, and calculating the coordinate of the merging point.
Further, detecting whether a touch operation has a split point, including:
acquiring signal induction quantity according to a preset frequency;
comparing the signal induction quantity of each frame with the reference quantity when no touch control occurs to obtain the signal variation quantity;
recursively searching for touch points according to the signal variation;
if four touch points appear currently and the number of the touch points of the first two frames is three, detecting whether two touch points matched with the same track exist in the four current touch points, and if so, determining that the two touch points are a first touch point to be determined and a second touch point to be determined;
searching the first two frames of touch points matched with the first touch point to be determined and the second touch point to be determined;
and detecting whether the first to-be-determined touch point and the second to-be-determined touch point meet preset conditions, and if so, determining that the first to-be-determined touch point and the second to-be-determined touch point are respectively a first splitting point and a second splitting point.
Further, the first two frames of touch points matched with the first pending touch point and the second pending touch point comprise a first touch point and a second touch point, the first touch point is a previous frame of touch point of the first pending touch point and the second pending touch point, and the second touch point is a previous frame of touch point of the first touch point;
the preset conditions are as follows:
the absolute value of the difference between the length of a first middle line of a first triangle formed by the first touch point, the second touch point and the first to-be-determined touch point and the length of a second middle line of a second triangle formed by the first touch point, the second touch point and the second to-be-determined touch point is smaller than a preset threshold value;
alternatively, the first and second electrodes may be,
the absolute value of the difference between a first tangent value of an angle taking the second touch point as a vertex in a first triangle formed by the first touch point, the second touch point and the first to-be-determined touch point and a second tangent value of an angle taking the second touch point as a vertex in a second triangle formed by the first touch point, the second touch point and the second to-be-determined touch point is smaller than a preset angle threshold, and the distance between the first to-be-determined touch point and the second to-be-determined touch point is smaller than or equal to a preset distance threshold.
Further, calculating a boundary of a merge point according to the boundary of the first split point region and the boundary of the second split point region, including:
if the upper boundary of the first split point area is smaller than the upper boundary of the second split point area, taking the upper boundary of the first split point area as the upper boundary of the merging point;
if the upper boundary of the first split point area is larger than the upper boundary of the second split point area, taking the upper boundary of the second split point area as the upper boundary of the merging point;
and if the upper boundary of the first split-point area and the upper boundary of the second split-point area are equal, taking the upper boundary of the first split-point area or the upper boundary of the second split-point area as the upper boundary of the merging point.
Further, the air conditioner is provided with a fan,
if the lower boundary of the first split-point area is larger than the lower boundary of the second split-point area, taking the lower boundary of the first split-point area as the lower boundary of the merging point;
if the lower boundary of the first split-point area is smaller than the lower boundary of the second split-point area, taking the lower boundary of the second split-point area as the lower boundary of the merging point;
and if the lower boundary of the first split-point area and the lower boundary of the second split-point area are equal, taking the lower boundary of the first split-point area or the lower boundary of the second split-point area as the lower boundary of the merging point.
Further, the air conditioner is provided with a fan,
if the left boundary of the first split point region is smaller than the left boundary of the second split point region, taking the left boundary of the first split point region as the left boundary of the merging point;
if the left boundary of the first split-point area is larger than the left boundary of the second split-point area, taking the left boundary of the second split-point area as the left boundary of the merging point;
and if the left boundary of the first split-point region and the left boundary of the second split-point region are equal, taking the left boundary of the first split-point region or the left boundary of the second split-point region as the left boundary of the merging point.
Further, the air conditioner is provided with a fan,
if the right boundary of the first split point area is larger than the right boundary of the second split point area, taking the right boundary of the first split point area as the right boundary of the merging point;
if the right boundary of the first split point area is smaller than the right boundary of a second split point area, taking the right boundary of the second split point area as the right boundary of the merging point;
and if the right boundary of the first split-point area and the right boundary of the second split-point area are equal, taking the right boundary of the first split-point area or the right boundary of the second split-point area as the right boundary of the merging point.
Further, the coordinates of the merging points are calculated by the following formula:
wherein, Cx、CyIs the coordinate of the merge point, U is the upper boundary of the merge point, D is the lower boundary of the merge point, L is the left boundary of the merge point, R is the right boundary of the merge point, TijThe signal variation of the ith row and the jth column in the merging point area.
A touch device is applied to the three-finger coaxial splitting point combination method, and comprises a display area and a non-display area, wherein a plurality of driving induction units are arranged in the display area, a touch IC and a memory are arranged in the non-display area, the touch IC is connected with the driving induction units through signal lines, a plurality of instructions are stored in the memory, and the touch IC is used for reading the instructions and executing:
detecting whether touch operation has a split point;
if yes, determining the boundary of the first split point region and the boundary of the second split point region;
calculating the boundary of a merging point according to the boundary of the first split point region and the boundary of the second split point region;
and determining a merging point area according to the boundary of the merging point, and calculating the coordinate of the merging point.
A touch display device comprises the touch device.
According to the method for combining the three-finger coaxial splitting points, the touch device and the touch display device, the splitting points appearing on the three-finger equidirectional scribing are combined, the coordinates are recalculated, and the problem of splitting point disconnection can be effectively solved.
Drawings
FIG. 1 is a schematic view of a point of detachment phenomenon.
Fig. 2 is a flowchart of an embodiment of a method for merging three-finger coaxial splitting points according to the present invention.
Fig. 3 is a schematic view of a split point in an application scenario in the method for combining three-finger coaxial split points provided by the present invention.
Fig. 4 is a schematic diagram of a first split point region and a second split point region in an application scenario in the method for combining three-finger coaxial split points provided by the present invention.
Fig. 5 is a schematic diagram of a merging point region in an application scenario in the method for merging three-finger coaxial splitting points provided by the present invention.
Fig. 6 is a schematic structural diagram of a touch device according to an embodiment of the 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 method for combining three-finger coaxial splitting points, including:
step S101, detecting whether a touch operation has a split point;
step S102, if yes, determining the boundary of the first split point region and the boundary of the second split point region;
step S103, calculating the boundary of a merging point according to the boundary of the first splitting point area and the boundary of the second splitting point area;
and step S104, determining a merging point area according to the boundary of the merging point, and calculating the coordinate of the merging point.
Specifically, step S101 is executed to detect whether a touch operation has a split point, which specifically includes:
acquiring signal induction quantity according to a preset frequency;
comparing the signal induction quantity of each frame with the reference quantity when no touch control occurs to obtain the signal variation quantity;
recursively searching for touch points according to the signal variation;
if four touch points appear currently and the number of the touch points of the first two frames is three, detecting whether two touch points matched with the same track exist in the four current touch points, and if so, determining that the two touch points are a first touch point to be determined and a second touch point to be determined;
searching the first two frames of touch points matched with the first touch point to be determined and the second touch point to be determined;
and detecting whether the first to-be-determined touch point and the second to-be-determined touch point meet preset conditions, and if so, determining that the first to-be-determined touch point and the second to-be-determined touch point are respectively a first splitting point and a second splitting point.
Referring to fig. 3, it is assumed that four touch points, P1, P2, P3 and P4, appear in the current frame, where the touch point P3 and the touch point P4 both have uniquely matched tracks, and the touch point P1 and the touch point P2 match the same track, so that it can be determined that the touch point P1 and the touch point P2 are a first pending touch point and a second pending touch point, respectively.
Further, referring to fig. 3, after the first to-be-determined touch point P1 and the second to-be-determined touch point P2 are determined, the first two frames of touch points of the trajectory matched with the first to-be-determined touch point P1 and the second to-be-determined touch point P2 are taken as a first touch point P01 and a second touch point P02, respectively, the first touch point P01 is a previous frame of touch point of the first to-be-determined touch point P1 and the second to-be-determined touch point P2, and the second touch point P02 is a previous frame of touch point of the first touch point P01.
The preset conditions are as follows:
the absolute value of the difference between the length of a first middle line of a first triangle formed by the first touch point, the second touch point and the first to-be-determined touch point and the length of a second middle line of a second triangle formed by the first touch point, the second touch point and the second to-be-determined touch point is smaller than a preset threshold value;
alternatively, the first and second electrodes may be,
the absolute value of the difference between a first tangent value of an angle taking the second touch point as a vertex in a first triangle formed by the first touch point, the second touch point and the first to-be-determined touch point and a second tangent value of an angle taking the second touch point as a vertex in a second triangle formed by the first touch point, the second touch point and the second to-be-determined touch point is smaller than a preset angle threshold, and the distance between the first to-be-determined touch point and the second to-be-determined touch point is smaller than or equal to a preset distance threshold.
Further, after the split point is determined, step S102 is performed, and according to the coordinates of the first split point and the second split point, the boundary of the first split point region and the boundary of the second split point region may be determined.
Further, step S103 is executed to calculate a boundary of a merging point according to the boundary of the first split point region and the boundary of the second split point region, and specifically includes:
if the upper boundary of the first split point area is smaller than the upper boundary of the second split point area, taking the upper boundary of the first split point area as the upper boundary of the merging point;
if the upper boundary of the first split point area is larger than the upper boundary of the second split point area, taking the upper boundary of the second split point area as the upper boundary of the merging point;
and if the upper boundary of the first split-point area and the upper boundary of the second split-point area are equal, taking the upper boundary of the first split-point area or the upper boundary of the second split-point area as the upper boundary of the merging point.
Further, if the lower boundary of the first split-point region is greater than the lower boundary of the second split-point region, the lower boundary of the first split-point region is taken as the lower boundary of the merging point;
if the lower boundary of the first split-point area is smaller than the lower boundary of the second split-point area, taking the lower boundary of the second split-point area as the lower boundary of the merging point;
and if the lower boundary of the first split-point area and the lower boundary of the second split-point area are equal, taking the lower boundary of the first split-point area or the lower boundary of the second split-point area as the lower boundary of the merging point.
Further, if the left boundary of a first split point region is smaller than the left boundary of a second split point region, taking the left boundary of the first split point region as the left boundary of the merging point;
if the left boundary of the first split-point area is larger than the left boundary of the second split-point area, taking the left boundary of the second split-point area as the left boundary of the merging point;
and if the left boundary of the first split-point region and the left boundary of the second split-point region are equal, taking the left boundary of the first split-point region or the left boundary of the second split-point region as the left boundary of the merging point.
Further, if the right boundary of the first split point area is larger than the right boundary of the second split point area, taking the right boundary of the first split point area as the right boundary of the merging point;
if the right boundary of the first split point area is smaller than the right boundary of a second split point area, taking the right boundary of the second split point area as the right boundary of the merging point;
and if the right boundary of the first split-point area and the right boundary of the second split-point area are equal, taking the right boundary of the first split-point area or the right boundary of the second split-point area as the right boundary of the merging point.
After the boundary of the merging point is determined, the area of the merging point can be determined, and the coordinates of the merging point can be calculated according to the signal variation of each unit in the merging point.
Further, the coordinates of the merging points are calculated by the following formula:
wherein, Cx、CyIs the coordinate of the merge point, U is the upper boundary of the merge point, D is the lower boundary of the merge point, L is the left boundary of the merge point, R is the right boundary of the merge point, TijThe signal variation of the ith row and the jth column in the merging point area.
According to the method for combining the three-finger coaxial splitting points, the splitting points appearing on the three-finger equidirectional scribing lines are combined, the coordinates are recalculated, and the problem of splitting point disconnection can be effectively solved.
Example two
The embodiment further describes a method for combining three-finger coaxial splitting points in a specific application scenario.
The region of the first splitting point P1 and the region of the second splitting point are shown in fig. 4, the upper boundary of the first splitting point P1 is N, the lower boundary is N +1, the left boundary is M, the right boundary is M +2, the upper boundary of the second splitting point P2 is N +3, the lower boundary is N +4, the left boundary is M, and the right boundary is M +2, so that the upper boundary of the region of the merging point P is N, the lower boundary is N +4, the left boundary is M, the right boundary is M +2, and the region of the merging point P is shown in fig. 5.
According to the area of the merging point P, the signal variation of each unit in the area is obtained, and then the coordinate of the merging point P is calculated, wherein the specific formula is as follows:
wherein, Cx、CyFor coordinates of the merging points, U1-U15The signal variation of each unit in the region of the merging point.
EXAMPLE III
Referring to fig. 6, the present embodiment provides a touch device applied to the method for combining three-finger coaxial splitting points as described in the first embodiment, where the touch device includes a display area a and a non-display area B, the display area a is provided with a plurality of driving sensing units, the non-display area is provided with a touch IC201 and a memory 202, the touch IC201 is connected to the driving sensing units through signal lines, the memory 202 stores a plurality of instructions, and the touch IC201 is configured to read the instructions and execute:
detecting whether touch operation has a split point;
if yes, determining the boundary of the first split point region and the boundary of the second split point region;
calculating the boundary of a merging point according to the boundary of the first split point region and the boundary of the second split point region;
and determining a merging point area according to the boundary of the merging point, and calculating the coordinate of the merging point.
Specifically, in the touch device provided in this embodiment, m sensing electrodes 203 and n driving electrodes 204 are disposed in the display area a to form m × n driving sensing units. The real-time induction quantity is obtained by scanning and driving the induction unit through the touch IC.
Further, the touch IC201 is further configured to perform:
acquiring signal induction quantity according to a preset frequency;
comparing the signal induction quantity of each frame with the reference quantity when no touch control occurs to obtain the signal variation quantity;
recursively searching for touch points according to the signal variation;
if four touch points appear currently and the number of the touch points of the first two frames is three, detecting whether two touch points matched with the same track exist in the four current touch points, and if so, determining that the two touch points are a first touch point to be determined and a second touch point to be determined;
searching the first two frames of touch points matched with the first touch point to be determined and the second touch point to be determined;
and detecting whether the first to-be-determined touch point and the second to-be-determined touch point meet preset conditions, and if so, determining that the first to-be-determined touch point and the second to-be-determined touch point are respectively a first splitting point and a second splitting point.
The first two frames of touch points matched with the first to-be-determined touch point and the second to-be-determined touch point comprise a first touch point and a second touch point, the first touch point is a previous frame of touch point of the first to-be-determined touch point and the second to-be-determined touch point, and the second touch point is a previous frame of touch point of the first touch point;
the preset conditions are as follows:
the absolute value of the difference between the length of a first middle line of a first triangle formed by the first touch point, the second touch point and the first to-be-determined touch point and the length of a second middle line of a second triangle formed by the first touch point, the second touch point and the second to-be-determined touch point is smaller than a preset threshold value;
alternatively, the first and second electrodes may be,
the absolute value of the difference between a first tangent value of an angle taking the second touch point as a vertex in a first triangle formed by the first touch point, the second touch point and the first to-be-determined touch point and a second tangent value of an angle taking the second touch point as a vertex in a second triangle formed by the first touch point, the second touch point and the second to-be-determined touch point is smaller than a preset angle threshold, and the distance between the first to-be-determined touch point and the second to-be-determined touch point is smaller than or equal to a preset distance threshold.
Further, the touch IC201 is further configured to perform:
if the upper boundary of the first split point area is smaller than the upper boundary of the second split point area, taking the upper boundary of the first split point area as the upper boundary of the merging point;
if the upper boundary of the first split point area is larger than the upper boundary of the second split point area, taking the upper boundary of the second split point area as the upper boundary of the merging point;
and if the upper boundary of the first split-point area and the upper boundary of the second split-point area are equal, taking the upper boundary of the first split-point area or the upper boundary of the second split-point area as the upper boundary of the merging point.
If the lower boundary of the first split-point area is larger than the lower boundary of the second split-point area, taking the lower boundary of the first split-point area as the lower boundary of the merging point;
if the lower boundary of the first split-point area is smaller than the lower boundary of the second split-point area, taking the lower boundary of the second split-point area as the lower boundary of the merging point;
and if the lower boundary of the first split-point area and the lower boundary of the second split-point area are equal, taking the lower boundary of the first split-point area or the lower boundary of the second split-point area as the lower boundary of the merging point.
If the left boundary of the first split point region is smaller than the left boundary of the second split point region, taking the left boundary of the first split point region as the left boundary of the merging point;
if the left boundary of the first split-point area is larger than the left boundary of the second split-point area, taking the left boundary of the second split-point area as the left boundary of the merging point;
and if the left boundary of the first split-point region and the left boundary of the second split-point region are equal, taking the left boundary of the first split-point region or the left boundary of the second split-point region as the left boundary of the merging point.
If the right boundary of the first split point area is larger than the right boundary of the second split point area, taking the right boundary of the first split point area as the right boundary of the merging point;
if the right boundary of the first split point area is smaller than the right boundary of a second split point area, taking the right boundary of the second split point area as the right boundary of the merging point;
and if the right boundary of the first split-point area and the right boundary of the second split-point area are equal, taking the right boundary of the first split-point area or the right boundary of the second split-point area as the right boundary of the merging point.
Further, the coordinates of the merging points are calculated by the following formula:
wherein, Cx、CyIs the coordinate of the merge point, U is the upper boundary of the merge point, D is the lower boundary of the merge point, L is the left boundary of the merge point, R is the right boundary of the merge point, TijThe signal variation of the ith row and the jth column in the merging point area.
The touch device provided by the embodiment merges the split points appearing on the three-finger equidirectional scribing line, and recalculates the coordinates, so that the problem of split point disconnection can be effectively solved.
Example four
The present embodiment provides a touch display device, including the touch device according to the third embodiment.
The touch display device provided by the embodiment can be: any product or component with a display function, such as a mobile phone, a tablet computer, a display, a notebook computer, and the like.
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.