A contact assignment correction method and apparatus, electronic device and storage medium
By acquiring and reassigning the position points of touch objects on the touch screen, the tracking error problem when multiple touch objects draw lines simultaneously is solved, and the touch screen can accurately track the movement trajectory of touch objects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2026-04-03
AI Technical Summary
When multiple touch objects draw lines on a touch screen simultaneously, existing technology may cause touch object line tracking errors, and the touch screen firmware may not be able to correctly assign touch points.
By acquiring the position points of the touch body in adjacent touch point acquisition frames, connecting the initially assigned position points, identifying intersections, and reallocating position points between different touch bodies to ensure that the connecting lines do not intersect, the position points are divided into a predetermined number of sub-regions using a polar coordinate system partitioning method until there is only one position point in each sub-region.
It improves the tracking accuracy of touch object movement trajectories when multiple touch objects slide on the touch screen, corrects touch point assignment errors, and ensures that the touch screen correctly tracks the touch objects.
Smart Images

Figure CN115509385B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of touch screen technology, and in particular to a touch point assignment correction method and apparatus, electronic device and storage medium. Background Technology
[0002] When a touch object draws a line on the touchscreen, the touchscreen firmware needs to track the touch object's position in real time to ensure that the line drawing is reported correctly. However, when multiple touch objects draw lines on the touchscreen simultaneously, touch object line tracking errors may occur. Summary of the Invention
[0003] In view of this, this disclosure proposes a touch body contact point allocation correction technology.
[0004] According to one aspect of this disclosure, a touch point allocation correction method is provided, comprising: when multiple touch objects simultaneously slide on a touch screen, acquiring first position points of different touch objects in a first touch point acquisition frame and second position points in a second touch point acquisition frame on the touch screen, wherein the first touch point acquisition frame and the second touch point acquisition frame are two adjacent touch point acquisition frames, and the number of first position points and second position points is the same; connecting the first position points and second position points initially assigned to the same touch object to obtain a first connecting line of the same touch object in two adjacent touch point acquisition frames; and, if the first connecting line has an intersection point, redistributing the first position points and second position points among different touch objects to obtain a corrected first position point and a corrected second position point for each touch object; wherein the second connecting lines of different touch objects do not have intersection points, and the second connecting line is a connecting line between the corrected first position point and the corrected second position point of the same touch object.
[0005] In one possible implementation, the redistribution of the first location point and the second location point among different touch objects includes: dividing the first location point and the second location point into a predetermined number of sub-regions, wherein there is no overlap between the sub-regions; wherein the predetermined number is consistent with the number of touch objects; and each sub-region has one first location point and one second location point.
[0006] In one possible implementation, dividing the first location point and the second location point into a predetermined number of sub-regions includes: dividing the first location point and the second location point into two sub-regions respectively, wherein the number of the first location point and the number of the second location point are the same in each sub-region; and iteratively dividing the first location point and the second location point of the sub-region into two new sub-regions when the number of the first location point or the second location point in any sub-region is greater than 1, until each sub-region has one first location point and one second location point.
[0007] In one possible implementation, dividing the first position point and the second position point into two sub-regions includes: determining a target position point from the first position point and the second position point; determining the angle between each connecting line and the polar axis in a polar coordinate system, based on the connecting line between the target position point and the first or second position point, as the polar angle, wherein the polar coordinate system has the target position point as the pole and a ray passing through the target position point and parallel to the edge of the screen as the polar axis; and dividing the first position point and the second position point according to the magnitude of the polar angle.
[0008] In one possible implementation, determining the target location point from the first location point and the second location point includes: determining the location point closest to the specified screen edge among the first location point and the second location point as a candidate location point; and taking one of the candidate location points located at its two endpoints as the target location point; the step of using a ray passing through the target location point and parallel to the screen edge as the polar axis includes: using a ray passing through the target location point and parallel to the specified screen edge as the polar axis.
[0009] In one possible implementation, the specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; the step of taking one of the candidate position points located at the two endpoints as the target position point includes: determining the candidate position point closest to the left edge of the touch screen as the target position point from the candidate position points.
[0010] In one possible implementation, the specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; the step of taking one of the candidate position points located at the two endpoints as the target position point includes: determining the candidate position point closest to the right edge of the touch screen as the target position point from the candidate position points.
[0011] In one possible implementation, dividing the first position point and the second position point according to the size of the polar angle includes: sequentially obtaining the first position point and the second position point corresponding to the polar angle in ascending order; when the number of obtained first position points and second position points is the same, dividing the obtained first position points and second position points into one sub-region, and dividing the unobtained first position points and second position points into another sub-region.
[0012] In one possible implementation, the touch screen is any one of the following: an optical touch display panel, a resistive touch display panel, an electromagnetic touch display panel, an acoustic touch display panel, or a capacitive touch display panel.
[0013] According to another aspect of this disclosure, a touch point allocation correction device is provided, comprising: a touch point information acquisition module, configured to acquire, when multiple touch objects simultaneously slide on a touch screen, a first position point in a first touch point acquisition frame and a second position point in a second touch point acquisition frame of the touch screen, wherein the first touch point acquisition frame and the second touch point acquisition frame are two adjacent touch point acquisition frames, and the number of the first position points and the number of the second position points are the same; a first connection line acquisition module, configured to connect the first position points and the second position points initially assigned to the same touch object to obtain a first connection line of the same touch object in two adjacent touch point acquisition frames; and a correction module, configured to, when the first connection line has an intersection point, redistribute the first position points and the second position points among different touch objects to obtain a corrected first position point and a corrected second position point for each touch object; wherein the second connection lines of different touch objects do not have an intersection point, and the second connection line is a connection line between the corrected first position point and the corrected second position point of the same touch object.
[0014] In one possible implementation, the correction module includes: a division sub-module, used to divide the first location point and the second location point into a predetermined number of sub-regions, wherein there is no overlap between the sub-regions; wherein the predetermined number is consistent with the number of touch objects; each sub-region has one first location point and one second location point.
[0015] In one possible implementation, the partitioning submodule is configured to: divide the first location point and the second location point into two sub-regions respectively, wherein the number of the first location point and the number of the second location point are the same in each sub-region; and if the number of the first location point or the second location point in any sub-region is greater than 1, iteratively divide the first location point and the second location point in the sub-region into two new sub-regions respectively, until each sub-region has one first location point and one second location point.
[0016] In one possible implementation, dividing the first position point and the second position point into two sub-regions includes: determining a target position point from the first position point and the second position point; based on the connecting line between the target position point and the first position point or the second position point; determining the angle between each connecting line and the polar axis in the polar coordinate system as the polar angle, wherein the polar coordinate system has the target position point as the pole and a ray passing through the target position point and parallel to the edge of the screen as the polar axis; and dividing the first position point and the second position point according to the magnitude of the polar angle.
[0017] In one possible implementation, determining the target location point from the first location point and the second location point includes: determining the location point closest to the specified screen edge among the first location point and the second location point as a candidate location point; and taking one of the candidate location points located at its two endpoints as the target location point; the step of using a ray passing through the target location point and parallel to the screen edge as the polar axis includes: using a ray passing through the target location point and parallel to the specified screen edge as the polar axis.
[0018] In one possible implementation, the specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; the step of taking one of the candidate position points located at the two endpoints as the target position point includes: determining the candidate position point closest to the left edge of the touch screen as the target position point from the candidate position points.
[0019] In one possible implementation, the specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; the step of taking one of the candidate position points located at the two endpoints as the target position point includes: determining the candidate position point closest to the right edge of the touch screen as the target position point from the candidate position points.
[0020] In one possible implementation, dividing the first position point and the second position point according to the size of the polar angle includes: sequentially obtaining the first position point and the second position point corresponding to the polar angle in ascending order; when the number of obtained first position points and second position points is the same, dividing the obtained first position points and second position points into one sub-region, and dividing the unobtained first position points and second position points into another sub-region.
[0021] In one possible implementation, the touch screen is any one of the following: an optical touch display panel, a resistive touch display panel, an electromagnetic touch display panel, an acoustic touch display panel, or a capacitive touch display panel.
[0022] According to another aspect of this disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the above-described method when executing instructions stored in the memory.
[0023] According to another aspect of this disclosure, a non-volatile computer-readable storage medium is provided that stores computer program instructions thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.
[0024] According to another aspect of this disclosure, a contact allocation correction chip is provided, characterized in that it includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0025] According to another aspect of this disclosure, a computer program product is provided, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs the above-described method.
[0026] In this embodiment, based on the existing allocation scheme of the first and second position points in two adjacent touch acquisition frames among different touch objects, the first and second position points of the same touch object in two adjacent touch acquisition frames are connected to obtain a first connecting line. When the first connecting lines of different touch objects have intersections, the allocation scheme is adjusted so that the second connecting lines of the first and second position points of different touch objects in two adjacent touch acquisition frames do not have intersections. This method can effectively detect and correct mismatch schemes of touch points in two adjacent touch acquisition frames among different touch objects by detecting the intersections between the first connecting lines of different touch objects; by adjusting the first and second position points in two touch acquisition frames, the second connecting lines of different touch objects after adjustment do not have intersections, which helps to improve the accuracy of tracking the movement trajectory of touch objects when multiple touch objects slide on the touch screen simultaneously.
[0027] Other features and aspects of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0028] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this disclosure together with the specification and serve to explain the principles of this disclosure.
[0029] Figure 1 A flowchart illustrating a contact assignment correction method according to an embodiment of the present disclosure is shown.
[0030] Figure 2 A schematic diagram illustrating an application example according to an embodiment of the present disclosure is shown.
[0031] Figure 3 A schematic diagram illustrating an application example according to an embodiment of the present disclosure is shown.
[0032] Figure 4 A block diagram of a contact assignment correction device according to an embodiment of the present disclosure is shown.
[0033] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0034] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0035] In the description of this disclosure, it should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this disclosure and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure.
[0036] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0037] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise expressly specified.
[0038] In this disclosure, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure according to the specific circumstances.
[0039] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0040] When a touchscreen is drawing a line on the touchscreen, the touchscreen firmware tracks the touchscreen's position in real time. However, when multiple touchscreens are drawing lines simultaneously, touchscreen tracking errors sometimes occur. This is because the touchscreen algorithm specifically responsible for tracking the same touchscreen assigns the wrong touch point to that touchscreen. Therefore, after assigning touch points to the touchscreen, it is necessary to check whether the touch point assignment is correct and to correct any incorrect assignment schemes.
[0041] The touch point allocation correction method of this disclosure can be applied to the touch screens of electronic devices such as mobile phones, computers, digital broadcasting terminals, messaging devices, game consoles, tablet devices, medical devices, fitness equipment, and personal digital assistants. This method can detect and correct erroneous allocation schemes of touch points on the touch screen among different touch objects, thereby constructing a complete touch object touch point allocation scheme and improving the accuracy of touch screen tracking of touch objects.
[0042] The touch object can include any object that can slide on a touch screen and whose sliding trajectory can be recognized by the touch screen, such as a finger, a capacitive stylus, or a capacitive screen glove. To better illustrate this disclosure and highlight its main points, the specific embodiments described herein use a finger as the touch object. Those skilled in the art should understand that this disclosure can also be implemented for other touch objects such as a stylus.
[0043] The touch screen can be any of the following: an optical touch display panel, a resistive touch display panel, an electromagnetic touch display panel, an acoustic touch display panel, or a capacitive touch display panel. Those skilled in the art should understand that this disclosure can also be implemented for other touch screens capable of enabling touch object sliding and recognizing the sliding trajectory of the touch object.
[0044] Figure 1 A flowchart illustrating a contact assignment correction method according to an embodiment of the present disclosure is shown, such as... Figure 1 As shown, the contact point allocation correction method includes:
[0045] In step S11, when multiple touch objects slide on the touch screen simultaneously, the first position point in the first touch point acquisition frame and the second position point in the second touch point acquisition frame of different touch objects on the touch screen are acquired. The first touch point acquisition frame and the second touch point acquisition frame are two adjacent touch point acquisition frames, and the number of the first position point and the number of the second position point are the same.
[0046] The touch point can be the contact point between the touch object and the touch screen of an electronic device such as a mobile phone or tablet. Touch point acquisition can be the acquisition of the touch points of the touch object on the touch screen at a certain point in time. By acquiring the touch points of the touch object in two adjacent touch point acquisition frames, the touch point connection line of the touch object in the two adjacent touch point acquisition frames can be obtained. Specifically, the time difference between two adjacent touch point acquisition frames can be determined according to specific circumstances, and this disclosure does not impose specific limitations on it. Furthermore, by tracking the touch points of the touch object in multiple touch point acquisition frames, the sliding trajectory of the touch object on the touch screen can be obtained. This invention does not impose specific limitations on the method for determining the touch points of different touch objects in different touch point acquisition frames; any method that can determine the touch points of the touch object on the touch screen is acceptable.
[0047] When acquiring the touch points of a touch element in two adjacent acquisition frames, an allocation scheme for assigning the touch points in the two adjacent acquisition frames to different touch elements can be simultaneously acquired. This invention does not specifically limit the method for acquiring the allocation scheme for assigning the touch points in two adjacent acquisition frames to different touch elements; any method that can obtain the allocation scheme is acceptable. Specifically, since each touch element has continuous touch points, each touch element has one touch point in each of the first and second acquisition frames in two adjacent acquisition frames. By dividing the touch points in the two adjacent acquisition frames so that each touch element has a first position point and a second position point, the position change information of each touch element in different acquisition frames can be acquired.
[0048] This disclosure addresses scenarios where the number of first position points and second position points is the same (i.e., the first position points and second position points correspond one-to-one). For scenarios where the number of first position points and second position points is different, step S11 can be performed on position points with a one-to-one correspondence in the first contact acquisition frame or the second contact acquisition frame.
[0049] In step S12, the first and second position points initially assigned to the same touch object are connected to obtain the first connection line of the same touch object in two adjacent touch point acquisition frames.
[0050] The touch point allocation correction method provided in this embodiment is used to correct the result of the initial allocation. When multiple touch objects slide on the screen, during the initial allocation, the first position point in the first touch point acquisition frame is allocated to the corresponding touch object, and the second position point in the second touch point acquisition frame is also allocated to the corresponding touch object.
[0051] The initial allocation may result in incorrect allocation. Normally, the trajectories generated by multiple touch objects from the previous frame to the current frame will not intersect. Therefore, this disclosure provides a standard for verifying whether there is incorrect allocation of touch object points in two adjacent touch point acquisition frames. Specifically, in two adjacent touch point acquisition frames, a first connecting line can be obtained by connecting the first position point of the first touch point acquisition frame and the second position point of the second touch point acquisition frame, which were initially allocated to the same touch object. If there are intersections between the first connecting lines of different touch objects, it can be determined that there is a problem with the allocation scheme of the first and second position points between different touch objects. When incorrect allocation exists in two adjacent touch point acquisition frames, the first and second position points in the two adjacent touch point acquisition frames need to be reallocated between different touch objects.
[0052] In step S13, when there is an intersection of the first connecting line, the first position point and the second position point are redistributed among different touch objects to obtain a corrected first position point and a corrected second position point for each touch object.
[0053] Step S13 provides a processing measure to check when there is an incorrect allocation of touch points in two adjacent touch point acquisition frames, namely: redistributing the first position point and the second position point in the two adjacent touch point acquisition frames between different touch objects until there are no intersections between the second connecting lines obtained by connecting the redistributed corrected first position point and corrected second position point of each touch object. At this time, it is indicated that the redistribution scheme of the first position point and the second position point in the two adjacent touch point acquisition frames between different touch objects is correct.
[0054] In this embodiment, based on the existing allocation scheme of the first and second position points in two adjacent touch acquisition frames among different touch objects, the first and second position points of the same touch object in two adjacent touch acquisition frames are connected to obtain a first connecting line. When the first connecting lines of different touch objects have intersections, the allocation scheme is adjusted so that the second connecting lines of the first and second position points of different touch objects in two adjacent touch acquisition frames do not have intersections. This method can effectively detect and correct mismatch schemes of touch points in two adjacent touch acquisition frames among different touch objects by detecting the intersections between the first connecting lines of different touch objects; by adjusting the first and second position points in two touch acquisition frames, the second connecting lines of different touch objects after adjustment do not have intersections, which helps to improve the accuracy of tracking the movement trajectory of touch objects when multiple touch objects slide on the touch screen simultaneously.
[0055] In one possible implementation, step S13 includes:
[0056] The first location point and the second location point are divided into a predetermined number of sub-regions, and there are no overlapping areas between the sub-regions;
[0057] The predetermined quantity is consistent with the number of touch objects;
[0058] Each sub-region has one first location point and one second location point.
[0059] This disclosure does not specifically limit the method for obtaining the number of touch objects, and can be selected according to the actual situation. In one possible implementation, since the number of first position points and second position points is the same, and the number of touch points in the same touch point acquisition frame is the same as the number of touch objects, the number of touch objects can be determined based on the number of first position points and / or second position points. Furthermore, based on the obtained number of touch objects, the first position points and second position points can be divided into a predetermined number of sub-regions equal to the number of touch objects. Since the second connecting lines between the corrected first position points and corrected second position points of different touch objects do not intersect, furthermore, there are no overlapping areas between the predetermined number of sub-regions.
[0060] In this embodiment of the disclosure, by dividing the first position point and the second position point into a predetermined number of non-overlapping sub-regions consistent with the number of touch objects, the intersection of the second connecting lines between different touch objects is avoided, and the first position point and the second position point are re-divided between different touch objects, thereby improving the accuracy of tracking the motion trajectory of touch objects when multiple touch objects slide on the touch screen at the same time.
[0061] In one possible implementation, dividing the first location point and the second location point into a predetermined number of sub-regions based on the number of touch objects includes:
[0062] The first location point and the second location point are each divided into two sub-regions, and the number of the first location point and the number of the second location point are the same in each sub-region.
[0063] If the number of first or second position points in any of the sub-regions is greater than 1, the first and second position points of the sub-regions are iteratively divided into two new sub-regions, until each sub-region has one first position point and one second position point.
[0064] When dividing the first position point and the second position point into a predetermined number of sub-regions where there is no overlap between them according to the number of touch objects, all the first position points and the second position points can be divided into two sub-regions firstly. Specifically, the number of first position points and the number of second position points in each sub-region are the same and there is no overlap between each sub-region. This disclosure does not specifically limit the method of dividing all the first position points and the second position points into two sub-regions. Any method that can divide all the first position points and the second position points into two sub-regions is acceptable.
[0065] After obtaining two sub-regions, if the number of first or second position points in either sub-region is greater than 1, the first and second position points in each sub-region can be further divided, so that each sub-region is further divided into two new sub-regions, and the number of first and second position points in each new sub-region is the same, and there is no overlap between the sub-regions. This recursive processing method is used to divide the sub-regions until each sub-region contains only one first position point and one second position point, and there is no overlap between the sub-regions.
[0066] In this embodiment of the disclosure, a recursive method is used to progressively divide the first and second position points in two adjacent touch acquisition frames into a preset number of sub-regions, the same number as the number of touch objects, with no overlap. Each sub-region contains only one first position point and one second position point. This recursive process helps reduce the complexity of sub-region division and improves the efficiency of determining the first and second position points of each touch object in two adjacent touch acquisition frames.
[0067] In one possible implementation, dividing the first location point and the second location point into two sub-regions includes:
[0068] Determine the target location point from the first location point and the second location point;
[0069] Based on the line connecting the target position point to the first position point or the second position point, the angle between each connecting line and the polar axis in the polar coordinate system is determined as the polar angle, wherein the polar coordinate system has the target position point as the pole and the ray passing through the target position point and parallel to the edge of the screen as the polar axis.
[0070] The first position point and the second position point are divided according to the magnitude of the polar angle.
[0071] The selection of the target location point can be made according to the actual situation, and this disclosure does not limit the specific method for determining the target location point. In one possible implementation, the point located at the edge of the first and second location points can be used as the target location point.
[0072] The specific method for determining the polar angle, using the angle between the line connecting the target location point and the first or second location point and the polar axis in the polar coordinate system, can be selected according to the actual situation, and this disclosure does not impose specific limitations on it. In one possible implementation, the polar coordinate system can be established with the target location point as the pole and a ray passing through the target location point and parallel to the screen edge as the polar axis. Specifically, this disclosure does not impose specific limitations on the method for selecting the screen edge as the polar axis. In one possible implementation, the screen edge closest to the target location point can be selected as the polar axis.
[0073] In one possible implementation, dividing the first position point and the second position point according to the size of the polar angle can be done by dividing the first position point and the second position point of the connecting line constituting the polar angle in ascending or descending order of the polar angle. Specific division methods can be found in the possible implementations provided in this disclosure, and will not be described in detail here.
[0074] In this embodiment, a target location point is determined as the pole, and the first and second location points are divided based on the angle formed by the line connecting the target location point and the first or second location point and the polar axis. This method divides the first and second location points into two sub-regions, which facilitates the further recursive redistribution of the first and second location points among different touch devices, improving the accuracy of the allocation of the first and second location points among different touch devices.
[0075] In one possible implementation, determining the target location point from the first location point and the second location point includes: determining the location point closest to the specified screen edge among the first location point and the second location point as a candidate location point; and taking one of the candidate location points located at its two endpoints as the target location point; the step of using a ray passing through the target location point and parallel to the screen edge as the polar axis includes: using a ray passing through the target location point and parallel to the specified screen edge as the polar axis.
[0076] Specifically, a designated screen edge can be first determined from the edges of the touchscreen. The method for determining the designated screen edge can be determined according to the actual situation, and this disclosure does not specifically limit it. After determining the designated screen edge, in one possible implementation, the point closest to the designated screen edge can be selected from the first position point and the second position point as a candidate position point. When there are multiple candidate position points, in one possible implementation, one of the points located on both sides of the multiple candidate position points can be selected as the target position point. Further, the step of using the ray passing through the target position point and parallel to the screen edge as the polar axis can include: using the ray passing through the target position point and parallel to the designated screen edge as the polar axis.
[0077] In this embodiment, the target position point is chosen as the point closest to the specified screen edge between the first and second position points, and the polar axis is a ray passing through the target position point and parallel to the specified screen edge. This simplifies the process of determining the point closest to the specified screen edge, and the polar angle ranges from 0 to 180°. In contrast, when the target position point is chosen as the point in the middle of the first and second position points, the polar angle ranges from 0 to 360°, making polar angle calculation more convenient. Therefore, the method provided in this disclosure improves the speed of determining the target position point and polar axis, which helps to further improve the speed of distributing the first and second position points among different touch devices.
[0078] In one possible implementation, the specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; the step of taking one of the candidate position points located at the two endpoints as the target position point includes: determining the candidate position point closest to the left edge of the touch screen as the target position point from the candidate position points.
[0079] Specifically, you can select the bottom edge of the touch screen as the specified screen edge, select the direction of the ray forming the polar axis as the right edge of the touch screen, select the point closest to the bottom edge of the touch screen as the candidate position point, and select the point among the candidate position points that is closest to the left edge of the touch screen as the target position point.
[0080] In this embodiment, the target position point is selected as the point closest to and furthest to the bottom edge of the touchscreen. The method of determining the pole using this target position point conforms to the convention of establishing a polar coordinate system. Furthermore, the polar coordinate system is established using a ray passing through the target position point and parallel to the bottom edge of the touchscreen as the polar axis. When the polar angle is determined by the angle between the polar axis and the line connecting the pole and the first or second position point, the range of values is smaller than that formed by the polar angle formed by the right edge of the candidate position points, making the calculation and resolution of the polar angle more convenient and faster. This method achieves rapid determination of the target position point and the polar axis, improving the speed of allocating the first and second position points among different touch surfaces.
[0081] It should be understood that the selection of the specified screen edge, the determination of the polar axis direction, and the selection of the target position point from the candidate position points in the above embodiments, such as "up," "right," and "left," are merely examples and not limitations of this disclosure. The method for determining the target position point and polar axis can be extended according to actual circumstances. In one example, the specified screen edge is the lower edge of the screen, and the ray points to the right edge of the screen; the step of selecting one of the candidate position points located at both endpoints as the target position point includes: determining the candidate position point closest to the right edge of the touch screen as the target position point. This embodiment can also achieve rapid determination of the target position point and polar axis, improving the speed of allocation between the first and second position points on different touch devices.
[0082] In one possible implementation, dividing the first position point and the second position point according to the size of the polar angle includes: sequentially obtaining the first position point and the second position point corresponding to the polar angle in ascending order; when the number of obtained first position points and second position points is the same, dividing the obtained first position points and second position points into one sub-region, and dividing the unobtained first position points and second position points into another sub-region.
[0083] In one possible implementation, the first and second position points corresponding to the polar angles are sequentially acquired in ascending order. When the number of acquired first and second position points is the same, it indicates that a matching first and second position point has been found. Specifically, when the number of acquired first and second position points is 1, it indicates that the first and second position points belong to the same touch object in two adjacent touch point acquisition frames. When the number of acquired first and second position points is 2, it indicates that one of the first and second position points belongs to the same touch object in two adjacent touch point acquisition frames, while the other first and second position points belong to another touch object in two adjacent touch point acquisition frames. Furthermore, the remaining unacquired first and second position points are the touch points of other touch objects in adjacent touch point acquisition frames. The remaining unacquired first and second position points, as well as the first and second position points that have been acquired in quantities exceeding 1, can be further divided until each sub-region contains only one first position point and one second position point, thus achieving the purpose of redistributing the first and second position points among different touch objects.
[0084] In this embodiment, the polar angle formed by the line connecting the polar axis and the first or second position point to the target position point is sequentially acquired in ascending order, until the same number of first position points in the first touch acquisition frame and second position points in the second touch acquisition frame are acquired. Specifically, the same number of acquired first and second position points correspond to the same number of touch points in adjacent touch acquisition frames. Furthermore, the acquired or unacquired first and second position points can be further divided using the same method to achieve the redistribution of the first and second position points among different touch points. Using this method for acquiring the first and second position points, the redistribution of the first and second position points among different touch points is further achieved through a recursive method. This method recursively achieves rapid division of the first and second position points into different sub-regions, improving the allocation speed of the first and second position points among different touch points.
[0085] Application scenario examples
[0086] Finger tracking errors can sometimes occur when multiple fingers are drawing lines on a touchscreen simultaneously.
[0087] Figure 2 A schematic diagram illustrating an application example according to this disclosure is shown, such as... Figure 2As shown in the embodiments of this disclosure, a touch point allocation correction method is proposed. This method can identify and correct erroneous touch point allocation schemes on a touch screen. The touch point allocation correction process can be as follows:
[0088] like Figure 2 As shown, the finger contact point allocation correction process can be roughly divided into four steps.
[0089] The first step is to acquire touch information from adjacent touch capture frames. Specifically, this involves acquiring the first position point of different fingers in the first touch capture frame and the second position point in the second touch capture frame on the phone's touchscreen. The first and second touch capture frames are two adjacent touch capture frames, and the number of the first and second position points is the same.
[0090] The second step is to obtain the first connection line. Specifically, by connecting the first and second position points initially assigned to the same finger, the first connection line of the same finger in two adjacent touch point acquisition frames can be obtained.
[0091] The third step is to identify the intersection points between the first connecting lines. Specifically, if there are intersection points between the first connecting lines, it indicates that there is an incorrect touch screen touch point allocation between different fingers. The first and second position points in the two adjacent touch point acquisition frames need to be redistributed between different fingers.
[0092] The fourth step is to obtain the first and second calibration positions. The specific calibration method is as follows: Figure 3 As shown: Figure 3 Image (a) shows the first position point (hollow circle) and the second position point (square) in two adjacent touch point acquisition frames after initial allocation; the target position point is the point closest to the left edge of the touch screen among the first and second position points that is closest to the lower edge of the touch screen. Figure 3 The solid dot in (b) is the target location point; for example... Figure 3 In step (b), a polar coordinate system is established with the target location point as the pole and the ray passing through the target location point and parallel to the lower edge of the touch screen to the right as the polar axis. The angle between the line connecting the pole and the first or second location point and the polar axis is the polar angle. Following the order of increasing polar angles, the first and second location points corresponding to the polar angles are obtained sequentially until the number of obtained first and second location points is the same. Figure 3 In step (c), the acquired first and second position points are assigned to one sub-region, and the unacquired first and second position points are assigned to another sub-region. The acquired and unacquired first and second position points are further subdivided according to the same method for each sub-region until each sub-region contains only one first and second position point. Figure 3In (d), the first and second position points that are connected to each other are the corrected first position point and the corrected second position point of the same finger in the acquisition frames of two adjacent touch points.
[0093] In this embodiment, based on the existing allocation scheme of the first and second position points in two adjacent touch acquisition frames among different fingers, the first and second position points of the same finger in two adjacent touch acquisition frames are connected to obtain a first connecting line. When the first connecting lines of different fingers intersect, the allocation scheme is adjusted so that the second connecting lines of the first and second position points of different fingers in two adjacent touch acquisition frames do not intersect. This method can effectively detect and correct mismatch schemes of touch points among different fingers in two adjacent touch acquisition frames by detecting the intersections between the first connecting lines of different fingers; by adjusting the first and second position points in two touch acquisition frames, the second connecting lines of different fingers do not intersect, which helps to improve the accuracy of tracking the movement trajectory of fingers when multiple fingers slide simultaneously on the touch screen.
[0094] It should be noted that the touch point allocation correction method of the present disclosure is not limited to the application in the above-mentioned finger touch point allocation correction of the touch screen, but can be applied to any touch body touch point allocation correction, and the present disclosure does not limit it.
[0095] It will be understood by those skilled in the art that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0096] It is understood that the various method embodiments mentioned above in this disclosure can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, this disclosure will not elaborate further. Those skilled in the art will understand that in the above methods of specific implementation, the specific execution order of each step should be determined by its function and possible internal logic.
[0097] The method according to the present invention can be deployed on one or more servers. For example, different modules can be deployed on different servers to form a dedicated server. Alternatively, the same functional units, modules, or systems can be distributed across multiple servers to reduce load pressure. The servers include, but are not limited to, multiple PCs, PC servers, blade servers, supercomputers, etc., connected on the same local area network and via the Internet. Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0098] In addition, this disclosure also provides a contact assignment correction device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any of the contact assignment correction methods provided in this disclosure. The corresponding technical solutions and descriptions are described in the corresponding section of the method and will not be repeated here.
[0099] Figure 4 A block diagram of a contact assignment correction apparatus according to an embodiment of the present disclosure is shown. This contact assignment correction apparatus may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc. Figure 4 As shown, the device may include:
[0100] The touch point information acquisition module 41 is used to acquire the first position point of different touch objects in the first touch point acquisition frame and the second position point in the second touch point acquisition frame of the touch screen when multiple touch objects slide on the touch screen at the same time. The first touch point acquisition frame and the second touch point acquisition frame are two adjacent touch point acquisition frames, and the number of the first position point and the number of the second position point are the same.
[0101] The first connection line acquisition module 42 is used to connect the first position point and the second position point initially assigned to the same touch body to obtain the first connection line of the same touch body in two adjacent touch point acquisition frames.
[0102] The correction module 43 is used to redistribute the first position point and the second position point among different touch objects when there is an intersection point in the first connecting line, so as to obtain a corrected first position point and a corrected second position point for each touch object.
[0103] Among them, the second connecting lines of different touch objects do not have intersection points, and the second connecting line is the connecting line between the first correction position point and the second correction position point of the same touch object.
[0104] In one possible implementation, the correction module includes: a division sub-module, used to divide the first location point and the second location point into a predetermined number of sub-regions, wherein there is no overlap between the sub-regions; wherein the predetermined number is consistent with the number of touch objects; each sub-region has one first location point and one second location point.
[0105] In one possible implementation, the partitioning submodule is configured to: divide the first location point and the second location point into two sub-regions respectively, wherein the number of the first location point and the number of the second location point are the same in each sub-region; and if the number of the first location point or the second location point in any sub-region is greater than 1, iteratively divide the first location point and the second location point in the sub-region into two new sub-regions respectively, until each sub-region has one first location point and one second location point.
[0106] In one possible implementation, dividing the first position point and the second position point into two sub-regions includes: determining a target position point from the first position point and the second position point; determining the angle between each connecting line and the polar axis in a polar coordinate system, based on the connecting line between the target position point and the first or second position point, as the polar angle, wherein the polar coordinate system has the target position point as the pole and a ray passing through the target position point and parallel to the edge of the screen as the polar axis; and dividing the first position point and the second position point according to the magnitude of the polar angle.
[0107] In one possible implementation, determining the target location point from the first location point and the second location point includes: determining the location point closest to the specified screen edge among the first location point and the second location point as a candidate location point; and taking one of the candidate location points located at its two endpoints as the target location point; the step of using a ray passing through the target location point and parallel to the screen edge as the polar axis includes: using a ray passing through the target location point and parallel to the specified screen edge as the polar axis.
[0108] In one possible implementation, the specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; the step of taking one of the candidate position points located at the two endpoints as the target position point includes: determining the candidate position point closest to the left edge of the touch screen as the target position point from the candidate position points.
[0109] In one possible implementation, the specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; the step of taking one of the candidate position points located at the two endpoints as the target position point includes: determining the candidate position point closest to the right edge of the touch screen as the target position point from the candidate position points.
[0110] In one possible implementation, dividing the first position point and the second position point according to the size of the polar angle includes: sequentially obtaining the first position point and the second position point corresponding to the polar angle in ascending order; when the number of obtained first position points and second position points is the same, dividing the obtained first position points and second position points into one sub-region, and dividing the unobtained first position points and second position points into another sub-region.
[0111] In one possible implementation, the touch screen is any one of the following: an optical touch display panel, a resistive touch display panel, an electromagnetic touch display panel, an acoustic touch display panel, or a capacitive touch display panel.
[0112] This disclosure also proposes a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the above-described method. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium may be a tangible device capable of holding and storing instructions used by an instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusion structures storing instructions thereon, and any suitable combination thereof. The computer-readable storage medium used herein is not to be interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0113] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0114] The various modules or units of the system can be implemented through hardware, firmware, or software. Software includes, for example, coded programs written in various programming languages such as JAVA, C / C++ / C#, and SQL.
[0115] This disclosure also proposes an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to execute the above-described method.
[0116] This disclosure also provides a computer program product including computer-readable code, which, when executed on a device, causes a processor in the device to execute instructions for implementing the contact allocation correction method provided in any of the above embodiments.
[0117] This disclosure also proposes a contact allocation correction chip, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0118] This disclosure also provides another computer program product for storing computer-readable instructions that, when executed, cause a computer to perform the operations of the contact allocation correction method provided in any of the above embodiments. The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them for storage in the computer-readable storage medium of the respective computing / processing device.
[0119] Electronic devices can be provided as terminals, servers, or other forms of devices.
[0120] For example, the electronic devices in this embodiment include, but are not limited to, desktop computers, televisions, mobile devices with large screens such as mobile phones and tablets, and other common electronic devices that require multiple chips to be cascaded together to achieve driving.
[0121] For example, electronic devices can also be user equipment (UE), mobile devices, user terminals, terminals, handheld devices, computing devices, or in-vehicle devices, etc. Examples of terminals include: displays, smartphones or portable devices, mobile phones, tablets, laptops, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and wireless terminals in vehicle-to-everything (V2X) networks, etc. For example, a server can be a local server or a cloud server.
[0122] Figure 5 A block diagram of an electronic device 1900 according to an embodiment of the present disclosure is shown. For example, the electronic device 1900 may be provided as a server or a terminal device. (Refer to...) Figure 5 The electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by memory 1932 for storing instructions, such as application programs, that can be executed by the processing component 1922. The application programs stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 1922 is configured to execute instructions to perform the methods described above.
[0123] Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input / output (I / O) interface 1958. Electronic device 1900 can operate on an operating system, such as Windows Server, stored in memory 1932. TM Mac OS X TM Unix TM Linux TM FreeBSD TM Or similar.
[0124] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions that can be executed by a processing component 1922 of an electronic device 1900 to perform the above-described method.
[0125] The above description is merely an exemplary embodiment of the present invention and is not intended to limit the scope of protection of the present invention, which is determined by the appended claims.
[0126] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0127] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0128] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0129] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A contact point allocation correction method, characterized in that, include: When multiple touch objects slide on the touch screen at the same time, the first position point of each touch object in the first touch point acquisition frame and the second position point in the second touch point acquisition frame are acquired. The first touch point acquisition frame and the second touch point acquisition frame are two adjacent touch point acquisition frames, and the number of the first position point and the number of the second position point are the same. Connect the first and second position points initially assigned to the same touch object to obtain the first connection line of the same touch object in two adjacent touch point acquisition frames; In the case where the first connecting line has an intersection point, the first position point and the second position point are redistributed among different touch objects to obtain the corrected first position point and the corrected second position point for each touch object; Among them, the second connecting lines of different touch objects do not have intersection points, and the second connecting line is the connecting line between the first correction position point and the second correction position point of the same touch object; The step of redistributing the first position point and the second position point among different touch bodies includes: The first location point and the second location point are divided into a predetermined number of sub-regions, and there are no overlapping areas between the sub-regions; The predetermined quantity is consistent with the number of touch objects; Each sub-region has one first location point and one second location point; The step of dividing the first location point and the second location point into a predetermined number of sub-regions includes: The first location point and the second location point are each divided into two sub-regions, and the number of the first location point and the number of the second location point are the same in each sub-region. If the number of first or second position points in any of the sub-regions is greater than 1, the first and second position points of the sub-regions are iteratively divided into two new sub-regions, until each sub-region has one first position point and one second position point.
2. The method according to claim 1, characterized in that, The step of dividing the first location point and the second location point into two sub-regions includes: Determine the target location point from the first location point and the second location point; Based on the line connecting the target position point to the first position point or the second position point, the angle between each connecting line and the polar axis in the polar coordinate system is determined as the polar angle, wherein the polar coordinate system has the target position point as the pole and the ray passing through the target position point and parallel to the edge of the screen as the polar axis. The first position point and the second position point are divided according to the magnitude of the polar angle.
3. The method according to claim 2, characterized in that, Determining the target location point from the first location point and the second location point includes: The position point that is closest to the specified screen edge between the first position point and the second position point is determined as the candidate position point; One of the candidate location points located at either of the two endpoints is selected as the target location point; The term "using the ray passing through the target location point and parallel to the edge of the screen as the polar axis" includes: The polar axis is the ray that passes through the target location point and is parallel to the edge of the specified screen.
4. The method according to claim 3, characterized in that, The specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; The step of selecting one of the candidate location points located at either of the two endpoints as the target location point includes: The candidate location point closest to the left edge of the touch screen is selected as the target location point from the candidate location points.
5. The method according to claim 3, characterized in that, The specified screen edge is the bottom edge of the screen, and the ray points to the right edge of the screen; The step of selecting one of the candidate location points located at either of the two endpoints as the target location point includes: The candidate location point closest to the right edge of the touch screen is selected as the target location point from the candidate location points.
6. The method according to any one of claims 2-5, characterized in that, The step of dividing the first position point and the second position point according to the magnitude of the polar angle includes: According to the polar angles in ascending order, the first and second position points corresponding to the polar angles are obtained sequentially. When the number of first and second position points obtained is the same, the obtained first and second position points are assigned to one sub-region, and the unobtained first and second position points are assigned to another sub-region.
7. The method according to any one of claims 1-6, characterized in that, The touch screen is any one of the following: an optical touch display panel, a resistive touch display panel, an electromagnetic touch display panel, an acoustic touch display panel, or a capacitive touch display panel.
8. A contact distribution correction device, characterized in that, include: The touch point information acquisition module is used to acquire the first position point of different touch objects in the first touch point acquisition frame and the second position point in the second touch point acquisition frame of the touch screen when multiple touch objects slide on the touch screen at the same time. The first touch point acquisition frame and the second touch point acquisition frame are two adjacent touch point acquisition frames, and the number of the first position points and the number of the second position points are the same. The first connection line acquisition module is used to connect the first position point and the second position point initially assigned to the same touch body to obtain the first connection line of the same touch body in two adjacent touch point acquisition frames. The correction module is used to redistribute the first position point and the second position point among different touch objects when there is an intersection point in the first connecting line, so as to obtain a corrected first position point and a corrected second position point for each touch object; Among them, the second connecting lines of different touch objects do not have intersection points, and the second connecting line is the connecting line between the first correction position point and the second correction position point of the same touch object; The correction module includes: a division submodule, used to divide the first position point and the second position point into a predetermined number of sub-regions, wherein there is no overlap between the sub-regions; wherein the predetermined number is consistent with the number of touch objects; each sub-region has one first position point and one second position point; The partitioning submodule is used to: divide the first position point and the second position point into two sub-regions respectively, wherein the number of the first position point and the number of the second position point are the same in each sub-region; if the number of the first position point or the second position point in any sub-region is greater than 1, iteratively divide the first position point and the second position point in the sub-region into two new sub-regions respectively, until each sub-region has one first position point and one second position point.
9. The apparatus according to claim 8, characterized in that, The touch screen is any one of the following: an optical touch display panel, a resistive touch display panel, an electromagnetic touch display panel, an acoustic touch display panel, or a capacitive touch display panel.
10. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the method of any one of claims 1 to 7 when executing instructions stored in the memory.
11. A non-volatile computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 7.
12. A contact distribution correction chip, characterized in that, The chip is configured to implement the method described in any one of claims 1 to 7 when executing instructions stored in the memory.
Citation Information
Patent Citations
Method and system for tracking of trajectory of touch screen
CN103970323A
Touch panel device, method for controlling touch panel device, program, and storage medium for storing program
JP2020067734A