Touch area positioning method and apparatus, terminal device, and storage medium

By acquiring the differential signal of the sensing unit and a preset threshold to determine the touch area, and expanding the sensing unit area corresponding to the maximum and minimum differential signals within these areas, the problem of inaccurate touch area positioning in the prior art is solved, and the accuracy of the positioning results is improved.

CN115629674BActive Publication Date: 2026-06-26SHENZHEN HONGHE INNOVATION INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN HONGHE INNOVATION INFORMATION TECH CO LTD
Filing Date
2022-10-27
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

When locating the touch area, existing capacitive touch devices suffer from low accuracy in positioning results because the peak point positioning method is inaccurate in recognizing large touch points, while the boundary positioning method is not capable enough in recognizing small touch points.

Method used

By acquiring the differential signal of the sensing unit, the first and second touch areas are determined based on the differential signal and the preset touch threshold. The sensing unit areas corresponding to the maximum and minimum differential signals are then expanded in these areas respectively, and the target touch area is obtained by merging them.

Benefits of technology

It improves the accuracy of positioning results in the touch area, and can identify multiple sensing units with differential signals greater than or absolute values ​​greater than the threshold, thus enhancing the ability to recognize large and small touch points.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115629674B_ABST
    Figure CN115629674B_ABST
Patent Text Reader

Abstract

The application belongs to the field of touch control, and particularly relates to a positioning method and device of a touch area, a terminal device and a storage medium. The method comprises the following steps: determining a first touch area and a second touch area according to a differential signal of a first sensing unit and a preset touch threshold value, determining a second sensing unit and a third sensing unit in the first touch area and the second touch area respectively, and respectively expanding a region where the second sensing unit is located and a region where the third sensing unit is located to obtain a third touch area and a fourth touch area. The third touch area and the fourth touch area are merged, and the technical scheme of the application can identify a first sensing unit with a differential signal greater than the touch threshold value or an absolute value of the differential signal greater than the touch threshold value. Moreover, the second sensing unit corresponding to a maximum differential signal in the first touch area and the third sensing unit corresponding to a minimum differential signal in the second touch area can be identified respectively, so that the accuracy of a positioning result of the touch area is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of touch control, and in particular relates to a method, apparatus, terminal device and storage medium for positioning a touch area. Background Technology

[0002] In the existing technology, there are many types of touch area positioning methods. The most commonly used methods for capacitive touch devices are peak point positioning and boundary positioning.

[0003] Peak point localization is inaccurate in recognizing large touch points, resulting in low accuracy in the localization results of the touch area. Boundary localization is also inaccurate in recognizing small touch points, as its recognition capability is insufficient. Summary of the Invention

[0004] This application provides a method, apparatus, terminal device, and storage medium for locating a touch area, which can improve the accuracy of the touch area positioning results.

[0005] In a first aspect, embodiments of this application provide a method for locating a touch area, including:

[0006] Acquire the differential signal of the first sensing unit;

[0007] Based on the differential signal and the preset touch threshold, a first touch area and a second touch area are determined. The first touch area is the area corresponding to the first sensing unit where the differential signal is positive and greater than the touch threshold, and the second touch area is the area corresponding to the first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold.

[0008] The second sensing unit corresponding to the largest differential signal in the first touch area is determined, and the area where the second sensing unit is located is expanded to obtain a third touch area; the third sensing unit corresponding to the smallest differential signal in the second touch area is determined, and the area where the third sensing unit is located is expanded to obtain a fourth touch area.

[0009] The third touch area and the fourth touch area are merged to obtain the target touch area.

[0010] In one possible implementation of the first aspect, the first sensing unit is located in a capacitive sensing array, and the step of extending the area where the second sensing unit is located to obtain a third touch area includes:

[0011] Based on the position of the second sensing unit in the capacitance sensing matrix, the expansion direction for expanding the area where the second sensing unit is located is determined;

[0012] In the expansion direction, the area where the second sensing unit is located is expanded to obtain the expanded area of ​​the second sensing unit;

[0013] If the differential signal corresponding to the extended area of ​​the second sensing unit meets the preset stop-extend condition, then the extension of the area where the second sensing unit is located is stopped, and the third touch area is obtained.

[0014] Wherein, if the differential signal corresponding to the extended area of ​​the second sensing unit satisfies a preset stop-extend condition, then the extension of the area where the second sensing unit is located is stopped, and the third touch area is obtained, including:

[0015] If the differential signal corresponding to the extended area of ​​the second sensing unit is less than the touch threshold, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained.

[0016] Wherein, if the differential signal corresponding to the extended area of ​​the second sensing unit satisfies a preset stop-extend condition, then the extension of the area where the second sensing unit is located is stopped, and the third touch area is obtained, including:

[0017] If the differential signal corresponding to the extended area of ​​the second sensing unit is greater than the touch threshold, and the extended area of ​​the second sensing unit is located within the extended area of ​​other second sensing units, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained.

[0018] Wherein, the area where the second sensing unit is located is expanded in a wheel-like manner. If the differential signal corresponding to the expanded area of ​​the second sensing unit is greater than the touch threshold, and the expanded area of ​​the second sensing unit is located within the expanded area of ​​other second sensing units, then the expansion of the area where the second sensing unit is located is stopped, resulting in the third touch area, including:

[0019] If the differential signal corresponding to the extended area of ​​the second sensing unit is greater than the touch threshold, and the extended area of ​​the second sensing unit is located within the extended area of ​​other second sensing units, and the first target differential signal is less than the second target differential signal, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained; the first target differential signal is the differential signal corresponding to the extended area of ​​the second sensing unit in the previous round, and the second target differential signal is the differential signal corresponding to the extended area of ​​other second sensing units in the previous round.

[0020] The step of merging the third touch area and the fourth touch area to obtain the target touch area includes:

[0021] The third touch area and the fourth touch area are paired to obtain a pairing group of the third touch area and the fourth touch area;

[0022] The third touch area and the fourth touch area within the pairing group are merged to obtain the target touch area.

[0023] The fourth touch area is multiple, and the pairing of the third touch area and the fourth touch area to obtain a pairing group of the third touch area and the fourth touch area includes:

[0024] Calculate the distance between the third touch area and each of the fourth touch areas;

[0025] The third touch area and the fourth touch area corresponding to the smallest distance among the various distances are determined as the pairing group.

[0026] Secondly, embodiments of this application provide a positioning device for a touch area, comprising:

[0027] The acquisition module is used to acquire the differential signal of the first sensing unit;

[0028] The first determining module is used to determine a first touch area and a second touch area based on the differential signal and a preset touch threshold. The first touch area is the area corresponding to the first sensing unit where the differential signal is positive and greater than the touch threshold, and the second touch area is the area corresponding to the first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold.

[0029] The second determining module is used to determine the second sensing unit corresponding to the largest differential signal in the first touch area, and expand the area where the second sensing unit is located to obtain a third touch area; and to determine the third sensing unit corresponding to the smallest differential signal in the second touch area, and expand the area where the third sensing unit is located to obtain a fourth touch area.

[0030] The merging module is used to merge the third touch area and the fourth touch area to obtain the target touch area.

[0031] Thirdly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the touch area positioning method as described in any of the first aspects.

[0032] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the touch area positioning method as described in any of the first aspects.

[0033] The beneficial effects of the embodiments of this application compared with the prior art are as follows: The technical solution of this application obtains the differential signal of the first sensing unit; determines the first touch area and the second touch area based on the differential signal and the preset touch threshold; determines the second sensing unit corresponding to the largest differential signal in the first touch area, and expands the area where the second sensing unit is located to obtain the third touch area; determines the third sensing unit corresponding to the smallest differential signal in the second touch area, and expands the area where the third sensing unit is located to obtain the fourth touch area; and merges the third touch area and the fourth touch area to obtain the target touch area. In the technical solution of this application, the first touch area and the second touch area are determined based on the differential signal of the first sensing unit and a preset touch threshold. Since the first touch area contains a first sensing unit whose differential signal is positive and greater than the touch threshold, and the second touch area contains a first sensing unit whose differential signal is negative and whose absolute value is greater than the touch threshold, it is possible to identify multiple first sensing units whose differential signals are greater than the touch threshold or whose absolute value of the differential signals is greater than the touch threshold. Furthermore, the target touch area is obtained by merging the third touch area and the fourth touch area. Since the third touch area is expanded from the second sensing unit corresponding to the largest differential signal in the first touch area, and the fourth touch area is expanded from the third sensing unit corresponding to the smallest differential signal in the second touch area, it is possible to identify the second sensing unit corresponding to the largest differential signal in the first touch area and the third sensing unit corresponding to the smallest differential signal in the second touch area, thereby improving the accuracy of the touch area positioning result. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram illustrating an application scenario of a touch area positioning method provided in an embodiment of this application;

[0036] Figure 2a This is a schematic flowchart illustrating a method for locating a touch area according to an embodiment of this application;

[0037] Figure 2bThis is an example diagram of a differential signal obtained according to an embodiment of this application;

[0038] Figure 2c This is an example diagram of encoding a sensing unit provided in an embodiment of this application;

[0039] Figure 2d This is an example diagram of a row and column boundary line provided in the embodiments of this application;

[0040] Figure 2e This is an example diagram of a second sensing unit provided in an embodiment of this application;

[0041] Figure 3a This is a schematic flowchart illustrating a method for obtaining a third touch area according to an embodiment of this application;

[0042] Figure 3b This is an example diagram illustrating how to stop expanding the area where the second sensing unit is located, provided in an embodiment of this application.

[0043] Figure 3c This is an example diagram illustrating another way to stop expanding the area where the second sensing unit is located, provided in an embodiment of this application.

[0044] Figure 3d This is an example diagram illustrating another way to stop expanding the area where the second sensing unit is located, provided in an embodiment of this application.

[0045] Figure 4a This is a schematic flowchart illustrating a method for obtaining a target touch area provided in an embodiment of this application;

[0046] Figure 4b This is an example diagram of a target touch area provided in an embodiment of this application;

[0047] Figure 5a This is a schematic flowchart illustrating a method for determining a pairing group provided in an embodiment of this application;

[0048] Figure 5b This is an example diagram illustrating the calculation of the distance between the third touch area and the fourth touch area provided in an embodiment of this application;

[0049] Figure 5c This is an example diagram of a pairing group provided in an embodiment of this application;

[0050] Figure 6 This is a schematic diagram of the structure of a touch area positioning device provided in an embodiment of this application;

[0051] Figure 7 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation

[0052] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of this application with unnecessary detail. In other instances, specific technical details in various embodiments can be referred to mutually, and specific systems not described in one embodiment can be referred to in other embodiments.

[0053] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0054] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0055] References to "embodiments of this application" or "some embodiments" in this specification mean that one or more embodiments of this application include specific features, structures, or characteristics described in connection with that embodiment. Therefore, phrases such as "in other embodiments," "an embodiment of this application," and "other embodiments of this application" appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0056] Furthermore, in the description of this application and the appended claims, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0057] In the existing technology, there are many types of methods for locating the touched area (hereinafter referred to as the touch area) in a touch screen. The most commonly used methods for capacitive touch devices are peak point positioning and boundary positioning.

[0058] Generally, the peak point positioning method is widely used. In the peak point positioning method, the capacitance sensing signal of the sensing unit corresponding to the peak point changes the most. The sensing unit corresponding to the peak point can reflect the actual capacitance sensing signal. When using the peak point positioning method to locate the touch area, the capacitance sensing signals of multiple sensing units are obtained, and the maximum value among the multiple sensing signals is determined to identify the peak point. The area where the peak point is located is then identified as the touch area.

[0059] When using the peak point positioning method to locate the touch area, if a small number of sensing units are touched, the sensing unit corresponding to the largest sensing signal among multiple sensing signals can be identified, thus identifying the touch area corresponding to the small number of sensing units with high accuracy.

[0060] However, when multiple sensing units are touched, the sensing signals of some of the touched sensing units are not the strongest, which causes some of the sensing units to fail to be recognized, resulting in low recognition accuracy of the touch area.

[0061] When using the boundary positioning method to locate the touch area, the capacitive sensing signals detected by all sensing units are acquired, and the area enclosed by the boundaries of the sensing units whose capacitive sensing signals exceed the touch threshold is determined as the touch area.

[0062] When identifying multiple sensing units being touched, the boundary localization method acquires the capacitive sensing signals detected by all sensing units. The area enclosed by the boundaries of the sensing units whose capacitive sensing signals exceed the touch threshold is defined as the touch area corresponding to the multiple sensing units. Since the sensing signal corresponding to each of the multiple sensing units exceeds the touch threshold, the boundary localization method has high accuracy in identifying the entire area.

[0063] However, when identifying a situation where a small number of sensing units are touched, the boundary localization method can only identify the overall touch area formed by a small number of touch points, and cannot identify the touch area corresponding to each touch point separately. Therefore, the boundary localization method has low accuracy in identifying individual touch areas that are close to each other.

[0064] To address the aforementioned deficiencies, the inventive concept of this application is as follows:

[0065] This application determines a first touch area and a second touch area based on the differential signal of the first sensing unit and a preset touch threshold. A second sensing unit and a third sensing unit are respectively determined within the first and second touch areas. The areas containing the second and third sensing units are then expanded to obtain a third touch area and a fourth touch area. The third and fourth touch areas are then merged to obtain the target touch area. This is the technical solution of this application. The first and second touch areas are determined based on the differential signal of the first sensing unit and a preset touch threshold. Since the first touch area contains a first sensing unit with a positive differential signal greater than the touch threshold, and the second touch area contains... The differential signal is negative and the absolute value is greater than the touch threshold. Therefore, it can identify multiple first sensing units with differential signals greater than the touch threshold or with absolute values ​​of differential signals greater than the touch threshold. The target touch area is obtained by merging the third touch area and the fourth touch area. Since the third touch area is expanded from the second sensing unit corresponding to the largest differential signal in the first touch area, and the fourth touch area is expanded from the third sensing unit corresponding to the smallest differential signal in the second touch area, it can identify the second sensing unit corresponding to the largest differential signal in the first touch area and the third sensing unit corresponding to the smallest differential signal in the second touch area, thereby improving the accuracy of the touch area positioning result.

[0066] To illustrate the technical solution of this application, specific embodiments are described below.

[0067] Please refer to Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of a touch area positioning method according to an embodiment of this application. For ease of explanation, only the parts relevant to this application are shown. This application scenario includes, but is not limited to: a capacitive sensing array 10, a driving circuit 20, a detection circuit 30, a subtraction circuit 40, and a processing unit 50. The output terminal of the driving circuit 20 is electrically connected to its input terminal, the output terminal of the driving circuit 20 is electrically connected to the input terminal of the detection circuit 30, the output terminal of the detection circuit 30 is electrically connected to the input terminal of the subtraction circuit 40, and the input terminal of the subtraction circuit 40 is electrically connected to the input terminal of the processing unit 50.

[0068] The capacitive sensing array 10 includes a plurality of sensing units 11 arranged in rows and columns. Each sensing unit 11 includes a first electrode (e.g., a driving electrode) and a second electrode (e.g., a receiving electrode). When a voltage signal is provided to the first electrode, an electric field is generated between the first electrode and the second electrode and a coupling capacitance is formed. The first electrode and the second electrode in this embodiment can be appropriately configured and there are no specific limitations, as long as a specific coupling capacitance can be formed.

[0069] The driving circuit 20 is a signal generator that can send a driving signal to the first electrode of the sensing unit 11. In this embodiment, the driving signal can be a time-varying signal, such as a periodic signal. In other embodiments, the driving signal can be a pulse signal, such as a square wave or a triangular wave; this embodiment does not limit the type of pulse signal. The driving signal can be coupled to the detection signal to the second electrode of the sensing unit 11 via a coupling capacitor.

[0070] In this embodiment, there may be multiple driving circuits 20, each providing a driving signal to each row of sensing units 11 in the capacitive sensing array 10. Multiple driving circuits 20 may drive the sensing units 11 sequentially or in parallel.

[0071] The detection circuit 30, coupled to the capacitive sensing array 10, is used to modulate the detection signals generated by the multiple sensing units 11 in each row, generating modulated detection signals. The modulation is used to change the amplitude, frequency, or phase of the detection signals generated by the multiple sensing units 11.

[0072] The subtraction circuit 40 is used to perform a subtraction operation on the modulated detection signal to generate a differential signal. For example, in this embodiment, the capacitive sensing array 10 includes 49 sensing units 11 arranged in 7 rows and 7 columns. The subtraction circuit 40 is used to subtract the modulated detection signal generated by the sensing unit 11 in the first row and first column from the modulated detection signal generated by the sensing unit 11 in the first row and second column, obtaining the differential signal for the sensing unit 11 in the first row and first column. Similarly, it subtracts the modulated detection signal generated by the sensing unit 11 in the first row and second column from the modulated detection signal generated by the sensing unit 11 in the first row and third column, obtaining the differential signal for the sensing unit 11 in the first row and second column. In this way, differential signals from all 49 sensing units are obtained.

[0073] The processing unit 50 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0074] The processing unit 50 is configured to acquire the differential signal of the first sensing unit; determine a first touch area and a second touch area based on the differential signal and a preset touch threshold; determine the second sensing unit corresponding to the largest differential signal in the first touch area and expand the area where the second sensing unit is located to obtain a third touch area; determine the third sensing unit corresponding to the smallest differential signal in the second touch area and expand the area where the third sensing unit is located to obtain a fourth touch area; and merge the third touch area and the fourth touch area to obtain a target touch area.

[0075] In other embodiments, it may include a ratio Figure 1 The examples shown have more or fewer parts, or combine certain parts, or have different parts. Figure 1 This is merely an illustrative description and should not be construed as a specific limitation of this application. For example, it may also include analog-to-digital converters, encoders, decoders, etc.

[0076] Please refer to Figure 2a , Figure 2a This is a schematic flowchart of a method for locating a touch area provided in an embodiment of this application. Figure 2a The execution entity of the method in the middle can be Figure 1 The processing unit within. For example... Figure 2a As shown, the method includes: S201 to S204.

[0077] S201, The processing unit acquires the differential signal of the first sensing unit.

[0078] Specifically, the subtraction circuit inputs the generated differential signal to the processing unit, which can then obtain the differential signal from the first sensing unit.

[0079] The embodiments of this application perform calculations on the differential signal to obtain the target touch area in order to effectively eliminate external noise interference.

[0080] Based on the principle of capacitive touch sensing (the principle of capacitive touch sensing is known, so it will not be elaborated here), the detection of whether an object is close to the sensing unit is determined by judging the change of charge in the sensing unit to detect whether the object (e.g., but not limited to, fingers, water droplets, or metal) touches the sensing unit.

[0081] The change in the detection signal of the sensing unit that is touched by the object is the largest compared to the sensing unit that is not touched. The change in the detection signal of the sensing units around the sensing unit that is touched by the object is smaller than the change in the detection signal of the sensing unit that is touched by the object.

[0082] For example, please refer to Figure 2b , Figure 2b This is an example diagram of a differential signal obtained according to an embodiment of this application.

[0083] Figure 2b The image shows the sensing unit K in the fourth row of the capacitive sensing array. 40 K 41 K 42 K 43 K 44 K 45 K 46 The generated modulated detection signal. Figure 2b The height of each rectangle represents the value of the detected signal. The sensing unit for object touch is K. 43 K 43 The change in the detected signal is the largest, so K 43 The value of the detected signal is the smallest, K 40 and K 41 K 45 and K 46 Distance K 43 Because it is far away, K is not affected by the object touching it. 40 and K 41 K 45 and K 46 The detection signal did not change, K 42 K 44 Being close to K43, it is easily affected by objects touching it; therefore, K... 42 K 44 The detection signal is located at K 43 The detection signal and K 40 Between the detection signals.

[0084] A differential signal is obtained by subtracting the detected signal from its input signal; the difference is called the differential signal. Therefore, the differential signal of the first sensing unit is 0 when the detected signal remains unchanged. For example, K... 40 The detection signal minus K 41 The detection signal is 0, K 45 The detection signal minus K 46 The detection signal is 0, that is, K 40 and K 45 The differential signals are all 0

[0085] When the difference obtained from the subtraction operation is positive, the differential signal of the first sensing unit is positive; when the difference obtained from the subtraction operation is negative, the differential signal of the first sensing unit is negative. For example, K 41 The detection signal minus K 42 The detection signals are +H1 and K. 42 The detection signal minus K 43 The detection signal is +H2, K 43 The detection signal minus K 44The detection signal is -H3, K 44 The detection signal minus K 45 The detection signal is -H4. That is, K 41 The differential signal is +H1, K 42 The differential signal is +H2, K 43 The differential signal is -H3, K 44 The differential signal is -H4.

[0086] In some embodiments, a reference signal, which may be referred to as an ideal value, is stored in the memory. This reference signal characterizes the detection signal when the sensing unit is not touched. For example, the reference signal can be any value from 0 bits to 255 bits, such as a 128-bit reference signal.

[0087] In some embodiments, the processing unit adds a reference signal to the differential signal obtained by the subtraction circuit to obtain the differential signal of the first sensing unit. Exemplarily, the differential signal includes, but is not limited to, 128+H1, 128+H2, 128-H3, 128-H4, and 128+0.

[0088] In this embodiment, a reference signal is stored in the memory, and a reference signal is added to the differential signal obtained by the subtraction circuit because the processing circuit acquires a signal transmitted via a high-speed, full-duplex, synchronous communication bus (Serial Peripheral Interface, SPI). The value of the signal transmitted by SPI is between 0 and 255 bits. If the signal transmitted by SPI is acquired directly, the processing circuit cannot identify the positive or negative value of the signal. Therefore, a reference signal is added to the differential signal; a value greater than the reference signal indicates that the differential signal is positive, and a value less than the reference signal indicates that the differential signal is negative.

[0089] In other embodiments, storing a reference signal in the memory and adding the reference signal to the differential signal obtained by the subtraction circuit is to eliminate inherent noise in the signal and improve the accuracy of processing the differential signal.

[0090] In this embodiment, the term "first" in the first sensing unit is used only to distinguish it from the sensing units in other embodiments, and should not be construed as indicating or implying relative importance.

[0091] S202, The processing unit determines the first touch area and the second touch area based on the differential signal and the preset touch threshold.

[0092] Specifically, the first touch area is the area corresponding to the first sensing unit where the differential signal is positive and greater than the touch threshold, and the second touch area is the area corresponding to the first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold.

[0093] In this embodiment of the application, the method for determining the first touch area and the second touch area is as follows:

[0094] First, a first sensing unit is determined to have a differential signal that is positive and greater than the touch threshold, and a first sensing unit is determined to have a differential signal that is negative and whose absolute value is greater than the touch threshold.

[0095] Specifically, in this application embodiment, the touch threshold is TH, and for example, TH = 12. If +H1 and +H2 are greater than 12, then the sensing units corresponding to +H1 and +H2 are determined as the first sensing units whose differential signals are positive and greater than the touch threshold.

[0096] For example, if the acquired differential signals are 128+H1 and 128+H2, then calculate the differences between 128+H1 and 128+H2 and the reference value 128, namely +H1 and +H2. If +H1 and +H2 are greater than 12, then determine the sensing unit corresponding to 128+H1 and 128+H2 as the first sensing unit where the differential signal is positive and greater than the touch threshold.

[0097] In this embodiment of the application, if |-H3| and |-H4| are greater than 12, then the sensing units corresponding to -H3 and -H4 are determined as the first sensing units whose differential signals are negative and whose absolute values ​​are greater than the touch threshold.

[0098] For example, if the acquired differential signals are 128-H3 and 128-H4, then calculate the absolute values ​​of the differences between 128-H3 and 128-H4 and the reference value 128, namely |-H3| and |-H4|. If |-H3| and |-H4| are greater than 12, then the sensing units corresponding to 128-H3 and 128-H4 are determined as the first sensing units where the differential signals are negative and the absolute values ​​are greater than the touch threshold.

[0099] Secondly, a first touch area is determined based on a first sensing unit where the differential signal is positive and greater than the touch threshold, and a second touch area is determined based on a first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold.

[0100] Specifically, the method for determining the first touch area is as follows:

[0101] First, determine the row and column number of the first sensing unit where the differential signal is positive and greater than the touch threshold, and determine the row and column number of the first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold.

[0102] In this embodiment of the application, when determining the row and column numbers, the sensing units in the sensing unit array can be pre-encoded, as can be referred to... Figure 2c , Figure 2cThis is an example diagram illustrating the encoding of a sensing unit according to an embodiment of this application. Figure 2c In the middle, K 11 K represents the sensing unit in the first row and first column. 12 K represents the sensing unit in the first row and second column. 21 K represents the sensing unit in the second row and first column. nm The sensing unit in the nth row and mth column represents the sensing unit.

[0103] For example, the first sensing unit whose differential signal is positive and greater than the touch threshold is the sensing unit in region A, and its encoding is K. 22 K 23 K 31 K 32 K 33 K 42 K 43 The row and column numbers of the first sensing unit corresponding to a positive differential signal are the second row, third row, fourth row, first column, second column, and third column. The method for determining the row and column numbers of the first sensing unit corresponding to a negative differential signal with an absolute value greater than the touch threshold is the same as the method for determining the row and column numbers of the first sensing unit corresponding to a positive differential signal with a value greater than the touch threshold, and will not be repeated here.

[0104] Secondly, the first touch area is determined based on the row and column number of the first sensing unit where the differential signal is positive and greater than the touch threshold, and the second touch area is determined based on the row and column number of the first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold.

[0105] In this embodiment, when arranging sensing units in a capacitive sensing array, the spacing between sensing units in each row and column can be the same or different. This embodiment uses the example of the same spacing. When the spacing is the same, the position of the line connecting the midpoints of the spacing between adjacent sensing units can be used as the boundary line of the row and column. Please refer to [reference needed]. Figure 2d , Figure 2d This is an example diagram of a row and column boundary line provided in the embodiments of this application.

[0106] exist Figure 2d In this context, the method for determining the column boundaries of the capacitive sensing array is as follows:

[0107] After configuring each sensing unit according to the spacing, the processing unit calculates K based on the positions of the sensing units in the first column and the positions of the sensing units in the second column. 11 and K 12 K 21 and K 22 K 31 and K 32The midpoint of the first column is used to determine the right boundary L2 of the first column. The right boundary L3 of the second column can then be determined using the same method, and the right boundary L4 of the (m-1)th column can be determined as well. m-1 . Figure 2d The left boundary of the first column and the right boundary of the m-th column can be determined using the following method:

[0108] The processing unit calculates the distance from the right boundary of the first column to the right boundary of the second column based on the right boundary of the first column and the right boundary of the second column. Based on the distance from the right boundary of the first column to the right boundary of the second column, it determines the left boundary of the first column and the right boundary of the m-th column.

[0109] In this embodiment, the method for determining the row boundaries and column boundaries of the capacitive sensing array is the same, and will not be repeated here.

[0110] In this embodiment, the area enclosed by the row and column numbers of the first sensing unit where the differential signal is positive and greater than the touch threshold is defined as the first touch area. For example, the upper boundary of the second row is used as the upper boundary of the first touch area, the lower boundary of the fourth row is used as the lower boundary of the first touch area, the left boundary of the first column is used as the left boundary of the first touch area, and the right boundary of the third column is used as the right boundary of the first touch area. This allows the first touch area to be determined. Figure 2c Region B in the text.

[0111] In this embodiment, the method for determining the second touch area is the same as that for determining the first touch area, and will not be described again here.

[0112] S203. The processing unit determines the second sensing unit corresponding to the largest differential signal in the first touch area, and expands the area where the second sensing unit is located to obtain a third touch area; and determines the third sensing unit corresponding to the smallest differential signal in the second touch area, and expands the area where the third sensing unit is located to obtain a fourth touch area.

[0113] In this embodiment of the application, the processing unit selects the sensing unit corresponding to the largest differential signal from the differential signals of each sensing unit in the first touch area and uses it as the second sensing unit.

[0114] Specifically, the processing unit selects the sensing unit corresponding to the largest differential signal from the differential signals of each sensing unit within the first touch area. This includes selecting a first differential signal from the differential signals of each sensing unit within the first touch area as the largest differential signal, where the first differential signal is any differential signal from the differential signals of each sensing unit. A second differential signal is randomly or sequentially selected and compared with the first differential signal, where the second differential signal is any signal from the differential signals of each sensing unit other than the first differential signal.

[0115] If the second differential signal is greater than the first differential signal, the second differential signal is taken as the maximum differential signal; if the second differential signal is less than the first differential signal, the first differential signal is taken as the maximum differential signal, until the differential signals of each sensing unit are compared.

[0116] For example, please refer to Figure 2e , Figure 2e This is an example diagram of a second sensing unit provided in an embodiment of this application. B represents the first touch area.

[0117] The processing unit first selects the first differential signal 132 from the differential signals of each sensing unit in region B as the largest differential signal. Next, it compares 145 with 132; 145-128=17>132-128=4, therefore 145 is selected as the largest differential signal. Then, it compares 120 with 145; 120-128=-8<145-128=17, therefore 145 is selected as the largest differential signal. This process is repeated for the remaining differential signals in region B, ultimately determining 230 as the largest differential signal.

[0118] In this embodiment of the application, the differential signal of the second sensing unit is characterized in that the difference between the differential signal of the second sensing signal and the reference signal is greater than the difference between the sensing signal other than the second sensing signal and the reference signal in the first touch area, and is greater than the touch threshold.

[0119] In this embodiment, the method for determining the third sensing unit corresponding to the smallest differential signal in the second touch area is the same as the method for determining the second sensing unit corresponding to the largest differential signal in the first touch area, and will not be described again here.

[0120] The method provided in this application for determining the second sensing unit corresponding to the largest differential signal in the first touch area and the third sensing unit corresponding to the smallest differential signal in the second touch area can quickly and accurately locate the touched second sensing unit in the first touch area and the touched third sensing unit in the second touch area, further improving the efficiency and accuracy of locating the target touch area.

[0121] For the method of expanding the area where the second sensing unit is located in this embodiment, please refer to [reference needed]. Figure 3a , Figure 3a This is a schematic flowchart illustrating a method for obtaining a third touch area provided in an embodiment of this application. Figure 3a The execution entity of the method in the middle can be Figure 1 The processing unit within. For example... Figure 3a As shown, the method includes: S301 to S304.

[0122] S301, The processing unit determines the expansion direction for expanding the area where the second sensing unit is located based on the position of the second sensing unit in the capacitive sensing matrix.

[0123] Specifically, the processing unit pre-stores the position of each sensing unit in the capacitance sensing matrix. After the processing unit determines the second sensing unit, the position of the second sensing unit in the capacitance sensing matrix is ​​determined accordingly.

[0124] In some embodiments, the processing unit may determine the position of the second sensing unit in the capacitive sensing matrix based on the row and column numbers of the second sensing unit.

[0125] For example, the second sensing unit is located at position K22 in the capacitive sensing matrix.

[0126] In this embodiment of the application, after determining the position of the second sensing unit in the capacitive sensing matrix, the four directions of the second sensing unit—vertically upward, vertically downward, horizontally to the left, and horizontally to the right—can be determined as the expansion directions.

[0127] For example, please refer to Figure 2d After determining the position K22 of the second sensing unit in the capacitive sensing matrix, K can be... 22 The four directions—vertically upward, vertically downward, horizontally to the left, and horizontally to the right—are determined as the expansion directions, which allows K to be expanded. 22 K pointing vertically upwards 12 As the capacitance sensing matrix to be expanded, K 22 K pointing vertically downwards 32 To K n2 As the capacitance sensing matrix to be expanded, K 22 K to the left 21 As the capacitance sensing matrix to be expanded, K 23 K to the right horizontally 23 To K 2m This is the capacitance sensing matrix to be expanded.

[0128] S302. The processing unit extends the area where the second sensing unit is located in the extension direction to obtain the extended area of ​​the second sensing unit.

[0129] Specifically, when the processing unit expands the area where the second sensing unit is located in the expansion direction, it expands in rounds, and each round of expansion in each expansion direction contains only the area where one sensing unit is located. In some embodiments, the processing unit expands the area where the second sensing unit is located in each expansion direction simultaneously in rounds, for example: the second sensing unit is K. 22 During the first round of expansion, expansion occurs simultaneously in four directions, K 22 Extend to K in the vertical direction12 K 22 Extend to K in the vertically downward direction 32 K 22 Extend to K in the horizontal leftward direction 21 K 22 Extend to K in the horizontal rightward direction 23 .

[0130] In the first round of expansion, if K 22 In the vertically upward direction, the extended region K 12 If the differential signal corresponding to the region meets the preset stop expansion condition, then stop K. 22 In the first round of expansion, the expansion is carried out in the vertically upward direction. In the second round of expansion, the expansion is carried out simultaneously in the vertically downward, horizontally to the left, and horizontally to the right directions until the expansion stops in all four directions, thus obtaining the expansion area of ​​the second sensing unit.

[0131] In other embodiments, the method of the processing unit simultaneously expanding the area where the second sensing unit is located in each expansion direction in a circular manner further includes:

[0132] The processing unit simultaneously expands the area where multiple second sensing units are located in each expansion direction in a circular manner.

[0133] Specifically, when the processing unit simultaneously expands the area where multiple second sensing units are located in each expansion direction in a rotating manner, the times at which the multiple second sensing units begin to expand can be the same or different.

[0134] For example, multiple second sensing units include: second sensing unit A and second sensing unit B. Second sensing unit A and second sensing unit B can simultaneously expand the area where the second sensing unit is located in each expansion direction in a circular motion at the same time, or they can simultaneously expand the area where the second sensing unit is located in each expansion direction in a circular motion at different times.

[0135] In some embodiments, the processing unit expands the area where the second sensing unit is located in each expansion direction according to a preset expansion order and in rotations. The preset expansion order may be vertically upward, vertically downward, horizontally to the left, or horizontally to the right. The preset expansion order may also be vertically downward, vertically upward, horizontally to the left, or horizontally to the right, etc. The specific order of the preset expansion order is not limited in the embodiments of this application.

[0136] This application provides an example using the preset expansion order of vertically upward, vertically downward, horizontally to the left, and horizontally to the right.

[0137] For example, in the first round of expansion, the processing unit expands the area where the second sensing unit is located in each expansion direction according to a preset expansion order of vertically upward, vertically downward, horizontally to the left, and horizontally to the right, according to the number of rounds. For example, the second sensing unit is K. 22 At that time, firstly, K 22 Extend to K in the vertical direction 12 Secondly, K 22 Extend to K in the vertically downward direction 32 Then, K 22 Extend to K in the horizontal leftward direction 21 Finally, K 22 Extend to K in the horizontal rightward direction 23 .

[0138] In the first round of expansion, if K 22 In the vertically upward direction, the extended region K 12 If the differential signal corresponding to the region meets the preset stop expansion condition, then stop K. 22 In the first round of expansion, the area is expanded in the vertically upward direction. In the second round of expansion, the area is expanded in three directions in the order of vertically downward, horizontally to the left, and horizontally to the right, until the expansion in all four directions stops, thus obtaining the expanded area of ​​the second sensing unit.

[0139] In other embodiments, the method of the processing unit expanding the area where the second sensing unit is located in each expansion direction according to a preset expansion order and in a number of rounds further includes:

[0140] The processing unit expands the area where multiple second sensing units are located in each expansion direction according to a preset expansion order and in rounds. The time when multiple second sensing units start expanding can be the same or different.

[0141] For example, multiple second sensing units include: second sensing unit A and second sensing unit B. Second sensing unit A and second sensing unit B can simultaneously expand the area where multiple second sensing units are located in each expansion direction according to a preset expansion order and in rotations, or they can expand the area where multiple second sensing units are located in each expansion direction according to a preset expansion order and in rotations at different times. In other embodiments, expanding the area where the second sensing unit is located includes expanding the boundary of the area where the second sensing unit is located. For example, expanding the row boundary and column boundary of the area where the second sensing unit is located. The expansion method and direction for expanding the boundary of the area where the second sensing unit is located are the same as those for expanding the area where the second sensing unit is located, and will not be repeated here. S303: If the differential signal corresponding to the expanded area of ​​the second sensing unit meets a preset stop expansion condition, the processing unit stops expanding the area where the second sensing unit is located, thus obtaining a third touch area.

[0142] Specifically, a method for stopping expanding the area where the second sensing unit is located provided by an embodiment of the present application is as follows:

[0143] If the differential signal corresponding to the expanded area of the second sensing unit is less than the touch threshold, stop expanding the area where the second sensing unit is located to obtain a third touch area.

[0144] Exemplarily, please refer to Figure 3b , Figure 3b which is an exemplary diagram of a method for stopping expanding the area where the second sensing unit is located provided by an embodiment of the present application. The touch threshold of the embodiment of the present application is TH, and exemplarily, TH = 12.

[0145] Figure 3b In, B1, B2, B3, and B4 represent the expanded areas of the second sensing unit that have been completed. The area where the second sensing unit to be expanded is located is the area corresponding to 230. For the first round of expansion of the area where the second sensing unit is located, the differential signal H in the vertically upward direction = 145 - 128 = 17 > TH and is not within the range of the boundary of the expanded area B1 of other second sensing units or the boundary of the adjacent area of the expanded area B1. Then, the upper boundary of the area where the second sensing unit is located is expanded in the next round until the differential signal in the vertically upward direction is less than the touch threshold, and then stop expanding the upper boundary of the area where the second sensing unit is located, and the upper boundary is determined.

[0146] The differential signal H in the vertically downward direction = 196 - 128 = 68 > TH and is not within the range of the boundary of the expanded area B2 of other second sensing units or the boundary of the adjacent area of the expanded area B2. Then, the lower boundary of the area where the second sensing unit is located is expanded in the next round until the differential signal in the vertically downward direction is less than the touch threshold, and then stop expanding the lower boundary of the area where the second sensing unit is located, and the lower boundary is determined.

[0147] The differential signal H in the horizontally leftward direction = 156 - 128 = 28 > TH and is not within the range of the boundary of the expanded area B3 of other second sensing units or the boundary of the adjacent area of the expanded area B3. Then, the left boundary of the area where the second sensing unit is located is expanded in the next round until the differential signal in the horizontally leftward direction is less than the touch threshold, and then stop expanding the left boundary of the area where the second sensing unit is located, and the left boundary is determined.

[0148] The differential signal H in the horizontally rightward direction = 70 - 128 = -58 < TH, then stop expanding the right boundary of the area where the second sensing unit is located, and the right boundary is determined.

[0149] Another method for stopping expanding the area where the second sensing unit is located provided by an embodiment of the present application is as follows:

[0150] If the differential signal corresponding to the extended area of ​​the second sensing unit is greater than the touch threshold, and the extended area of ​​the second sensing unit is located within the extended area of ​​other second sensing units, then the expansion of the area where the second sensing unit is located is stopped, and a third touch area is obtained.

[0151] For example, please refer to Figure 3c , Figure 3c This is an example diagram illustrating how to stop expanding the area where the second sensing unit is located, provided in an embodiment of this application. The area where the second sensing unit is located consists of the area corresponding to 189 (for ease of description, the area corresponding to 189 is referred to as area C in this embodiment of the application) and the area corresponding to 223 (the area corresponding to 223 is referred to as area D in this embodiment of the application). A first round of expansion is performed on area C, extending its lower boundary to the lower boundary of the area corresponding to 181. A first round of expansion is performed on area D, extending its upper boundary to the upper boundary of the area corresponding to 168.

[0152] When expanding region C for the second time, the differential signal H = 144 - 128 = 16 > TH. However, the second expansion region is already within the boundary of region D. Therefore, the differential signal of the second expansion region of region C is greater than the touch threshold, and the expansion region of the second sensing unit is located within the expansion region of other second sensing units. Therefore, the expansion of region C is stopped, and the boundary cannot be expanded further. Finally, the lower boundary of region C is the lower boundary of the region corresponding to 181.

[0153] Another method for stopping the expansion of the area where the second sensing unit is located, provided in this application embodiment, is as follows:

[0154] If the differential signal corresponding to the extended area of ​​the second sensing unit is greater than the touch threshold, and the extended area of ​​the second sensing unit is located within the extended area of ​​other second sensing units, and the first target differential signal is less than the second target differential signal, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained; the first target differential signal is the differential signal corresponding to the extended area of ​​the second sensing unit in the previous round, and the second target differential signal is the differential signal corresponding to the extended area of ​​other second sensing units in the previous round.

[0155] For example, please refer to Figure 3d , Figure 3dThis is an example diagram illustrating another way to stop expanding the area where the second sensing unit is located, provided by an embodiment of this application. The second sensing area is the area corresponding to 199 (referred to as area E in this embodiment) and the area corresponding to 185 (referred to as area F in this embodiment). Both areas E and F are expanded simultaneously. In the first round of expansion, the lower boundary of area E is extended to the lower boundary of area corresponding to 155, and the upper boundary of area F is extended to the upper boundary of area corresponding to 181.

[0156] When performing the second round of expansion, when expanding region E first, the differential signal H = 144 - 128 = 16 > TH of the second round expansion region of region E is not located within the first round expansion region of region F. However, the second round expansion region of region E is located in the neighboring region of the first round expansion region of region F (the region to be expanded in the second round of region F). Furthermore, the differential signal H = 155 - 128 = 27 > TH of the previous round expansion region of region E (the first round expansion region of region E), and the differential signal H = 181 - 128 = 53 of the previous round expansion region of region F (the previous round expansion region of other second sensing units), where 27 < 53.

[0157] Therefore, the second-round expansion of region E satisfies the conditions that the differential signal corresponding to the expansion area of ​​the second sensing unit is greater than the touch threshold, the expansion area of ​​the second sensing unit is located within the expansion area of ​​other second sensing units, and the first target differential signal is less than the second target differential signal. Thus, the second expansion of the region where the second sensing unit is located stops, and the boundary cannot be further expanded. The lower boundary of region E ends at the lower boundary of the region corresponding to 155, while the upper boundary of region F can be expanded to the upper boundary of the region corresponding to 144 (the second-round expansion area of ​​other second sensing units).

[0158] The reason why the upper boundary of region F can be expanded to the upper boundary of region 144 is as follows: the second round of expansion of region F is the region corresponding to 144, and the third round of expansion of region F is the region corresponding to 155. The differential signal H corresponding to 155 is 155-128=27. However, the region corresponding to 155 is the expansion region of region E. Therefore, if the differential signal corresponding to the expansion region of the second sensing unit is greater than the touch threshold, and the expansion region of the second sensing unit is located within the expansion region of other second sensing units, then the expansion of the region where the second sensing unit is located is stopped, thus obtaining the stop expansion condition of the third touch region. The upper boundary of region F can only be expanded to the region corresponding to 144.

[0159] In this embodiment, the method of expanding the area where the third sensing unit is located to obtain the fourth touch area is the same as the method of expanding the area where the second sensing unit is located to obtain the third touch area, and will not be described again here.

[0160] The methods for expanding the area where the third sensing unit is located and expanding the second sensing unit provided in this application embodiment can quickly and accurately obtain the third touch area and the fourth touch area by means of a preset stop expansion condition, thereby further improving the efficiency and accuracy of locating the target touch area.

[0161] S204. The processing unit merges the third touch area and the fourth touch area to obtain the target touch area.

[0162] In this embodiment, the third touch area is obtained by expanding the area where the second sensing unit is located, and the fourth touch area is obtained by expanding the area where the third sensing unit is located. The differential signal corresponding to the second sensing unit is the largest differential signal (positive value) in the first touch area, and the differential signal corresponding to the third sensing unit is the smallest differential signal (negative value) in the second touch area. According to the capacitive touch sensing principle, when the sensing unit in the capacitive sensing array is touched, the differential signal obtained by the processing unit includes positive differential signals and negative differential signals. The third touch area is determined based on the positive differential signal, and the fourth touch area is determined based on the negative differential signal. Each third touch area will have a fourth touch area that best matches it. In this embodiment, the third touch area and the best matching fourth touch area are combined to determine the target touch area.

[0163] Please refer to Figure 4a , Figure 4a This is a schematic flowchart illustrating a method for obtaining a target touch area provided in an embodiment of this application. Figure 4a The execution entity of the method in the middle can be Figure 1 The processing unit within. For example... Figure 4a As shown, the method includes: S401 to S402.

[0164] S401, The processing unit pairs the third touch area and the fourth touch area to obtain a pairing group of the third touch area and the fourth touch area.

[0165] Specifically, when a sensing unit in the capacitive sensing array is touched, multiple third touch areas and multiple fourth touch areas are determined based on the differential signal. Each third touch area is paired with multiple fourth touch areas, and the best pairing is taken as the pairing group of the third touch area and the fourth touch area.

[0166] Please refer to Figure 5a , Figure 5a This is a schematic flowchart illustrating a method for determining a pairing group provided in an embodiment of this application. Figure 5a The execution entity of the method in the middle can be Figure 1 The processing unit within. For example... Figure 5a As shown, the method includes: S501 to S502.

[0167] S501, The processing unit calculates the distance between the third touch area and each of the fourth touch areas.

[0168] Specifically, when the processing unit pairs the third touch area with each of the fourth touch areas, it first compares the upper and lower boundaries of the third touch area with the upper and lower boundaries of each of the fourth touch areas to determine the fourth touch areas that have the same upper and lower boundaries as the third touch area.

[0169] Secondly, the distance between the third touch area and each of the fourth touch areas that have the same upper and lower boundaries as the third touch area is calculated. In this embodiment of the application, the distance represents the spacing between the third touch area and the fourth touch area. In this embodiment of the application, the distance between the third touch area and each of the fourth touch areas can be calculated based on the boundary position of the third touch area and the boundary position of the fourth touch area.

[0170] For example, please refer to Figure 5b , Figure 5b This is an example diagram illustrating the calculation of the distance between the third touch area and the fourth touch area in an embodiment of this application. Figure 5b In the diagram, region G represents the third touch area, and H2 represents any of the fourth touch areas. The upper and lower boundaries of H2 are the same as those of G. The distance between the third and fourth touch areas can be calculated based on the position of the right boundary of region G and the position of the left boundary of region H2.

[0171] In other embodiments, the third touch area and the distance to each of the fourth touch areas are calculated based on the row and column numbers of the third touch area and the row and column numbers of the fourth touch area.

[0172] For example, if the third touch area is the region enclosed by the boundaries of the second row, fourth row, third column, and fifth column, and the fourth touch area is the region enclosed by the boundaries of the second row, fourth row, seventh column, and ninth column, then the distance between the third touch area and the fourth touch area can be calculated by calculating the distance between the fifth column and the seventh column. In this embodiment, the distance between the fifth column and the seventh column is only one column width, so this column width is used as the distance between the third touch area and the fourth touch area.

[0173] In other embodiments, if when pairing the third touch area and each of the fourth touch areas, if the best pairing with the third touch area cannot be determined among the fourth touch areas that have the same upper and lower boundaries as the third touch area, then the fourth touch areas that do not have the same upper and lower boundaries as the third touch area are used as alternative pairings.

[0174] S502, the processing unit determines the third touch area and the fourth touch area corresponding to the smallest distance among all distances as a pairing group.

[0175] In this embodiment of the application, the method for determining the third touch area and the fourth touch area corresponding to the minimum distance among all distances as a pairing group is as follows:

[0176] First, determine whether there is an overlapping area between the third touch area and the fourth touch area. If there is an overlapping area between the third touch area and the fourth touch area, then the fourth touch area is used as a candidate pairing for the third touch area.

[0177] In this embodiment of the application, it can be determined whether there is an overlapping area between the third touch area and the fourth touch area by the distance between the third touch area and the fourth touch area. For example, if the difference between the boundary position of the third touch area and the boundary position of the fourth touch area is less than or equal to 0, then there is an overlapping area between the third touch area and the fourth touch area; otherwise, there is no overlapping area.

[0178] In this embodiment, if the third touch area and the fourth touch area do not overlap, the distance between the third touch area and the fourth touch area is taken as the minimum distance, and the third touch area and the fourth touch area are determined as a pairing group.

[0179] In this embodiment, when the distance between the third touch area and the fourth touch area is taken as the minimum distance, the second area of ​​each fourth touch area is randomly or sequentially selected. If there is an overlapping area between the third touch area and the second area, the second area is used as a candidate pairing for the third touch area, and the third touch area and the fourth touch area are further determined as a pairing group. The second area is any touch area in each fourth touch area other than the already paired fourth touch areas.

[0180] In this embodiment, if the third touch area and the second area do not overlap, the distance between the third touch area and the second area is calculated. If the distance between the third touch area and the second area is less than the distance between the third touch area and the paired fourth touch area, the distance between the third touch area and the second area is taken as the minimum distance, and the third touch area and the second area are determined as a pairing group. In this way, the overlap between each fourth touch area and the third touch area is compared, and the distance between each fourth touch area and the third touch area is finally determined to determine the best pairing group.

[0181] For example, please see Figure 5c , Figure 5c This is an example diagram of a pairing group provided in an embodiment of this application. Figure 5cIn the diagram, region G represents the third touch area, while H1, H2, and H3 all represent the fourth touch area. The upper and lower boundaries of H1, H2, and H3 are the same as those of G. H1 and G have overlapping areas, and the distance between G and H2 is less than the distance between G and H3. Therefore, G and H2 are determined to be the optimal pairing.

[0182] In this embodiment of the application, if there is a third touch area that does not form a pairing group with any of the fourth touch areas, and there is a fourth touch area that does not form a pairing group with any of the third touch areas, then the unpaired third touch area is paired with the candidate pairing group, or the unpaired third touch area is paired with the unpaired fourth touch area.

[0183] The pairing method of this application embodiment can accurately match the best fourth touch area of ​​the third touch area, and at the same time find a pair for the third or fourth touch area that cannot be paired, thus obtaining a pairing group, which can improve the pairing efficiency and further improve the efficiency of locating the target touch area.

[0184] S402, The processing unit merges the third touch area and the fourth touch area in the pairing group to obtain the target touch area.

[0185] Specifically, the processing unit uses the outermost boundary of the third and fourth touch areas within the pairing group as the boundary of the target touch area, thus completing the merging of the pairing groups.

[0186] For example, please refer to Figure 4b , Figure 4b This is an example diagram of a target touch area provided in an embodiment of this application. Figure 4b The processing unit uses the upper and lower boundaries of the best pairing group G region and H2 region as the upper and lower boundaries of the target touch area i region, determines the left boundary of G region as the left boundary of i region, and determines the right boundary of H2 region as the right boundary of i region, and finally determines the boundary of i region to complete the merging of pairing groups.

[0187] When merging paired groups using the merging method in this application embodiment, since the merging of paired groups is based on the boundary position, the third touch area and the fourth touch area can be merged more accurately according to the boundary position, thereby improving the accuracy of the merged area and thus improving the accuracy of locating the target touch area.

[0188] In summary, the technical solution of this application determines a first touch area and a second touch area based on the differential signal of the first sensing unit and a preset touch threshold. A second sensing unit and a third sensing unit are then determined within the first and second touch areas, respectively. The areas containing the second and third sensing units are then expanded to obtain a third touch area and a fourth touch area. Finally, the third and fourth touch areas are merged to obtain the target touch area. This is the technical solution of this application. The first and second touch areas are determined based on the differential signal of the first sensing unit and a preset touch threshold. Since the first touch area contains a first sensing unit with a positive differential signal greater than the touch threshold, the second touch area... The first sensing unit contains a differential signal that is negative and whose absolute value is greater than the touch threshold. Therefore, it can identify multiple first sensing units with differential signals greater than the touch threshold or with absolute values ​​of differential signals greater than the touch threshold. The target touch area is obtained by merging the third touch area and the fourth touch area. Since the third touch area is expanded from the second sensing unit corresponding to the largest differential signal in the first touch area, and the fourth touch area is expanded from the third sensing unit corresponding to the smallest differential signal in the second touch area, it can identify the second sensing unit corresponding to the largest differential signal in the first touch area and the third sensing unit corresponding to the smallest differential signal in the second touch area, thereby improving the accuracy of the touch area positioning results.

[0189] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0190] Please refer to Figure 6 , Figure 6 This is a schematic diagram of a touch area positioning device provided in an embodiment of this application. The device includes:

[0191] The acquisition module 61 is used to acquire the differential signal of the first sensing unit.

[0192] The first determining module 62 is used to determine a first touch area and a second touch area based on the differential signal and a preset touch threshold. The first touch area is the area corresponding to the first sensing unit where the differential signal is positive and greater than the touch threshold, and the second touch area is the area corresponding to the first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold.

[0193] The second determining module 63 is used to determine the second sensing unit corresponding to the largest differential signal in the first touch area, and expand the area where the second sensing unit is located to obtain a third touch area, and to determine the third sensing unit corresponding to the smallest differential signal in the second touch area, and expand the area where the third sensing unit is located to obtain a fourth touch area.

[0194] The merging module 64 is used to merge the third touch area and the fourth touch area to obtain the target touch area.

[0195] The second determining module 63 is further configured to determine the expansion direction of the area where the second sensing unit is located based on the position of the second sensing unit in the capacitive sensing matrix.

[0196] In the expansion direction, the area where the second sensing unit is located is expanded to obtain the expanded area of ​​the second sensing unit;

[0197] If the differential signal corresponding to the extended area of ​​the second sensing unit meets the preset stop-extend condition, then the extension of the area where the second sensing unit is located is stopped, and the third touch area is obtained.

[0198] The second determining module 63 is further configured to stop expanding the area where the second sensing unit is located if the differential signal corresponding to the extended area of ​​the second sensing unit is less than the touch threshold, thereby obtaining a third touch area.

[0199] The second determining module 63 is further configured to stop expanding the area where the second sensing unit is located if the differential signal corresponding to the expanded area of ​​the second sensing unit meets a preset stop expansion condition, thereby obtaining a third touch area, including:

[0200] If the differential signal corresponding to the extended area of ​​the second sensing unit is greater than the touch threshold, and the extended area of ​​the second sensing unit is located within the extended area of ​​other second sensing units, then the expansion of the area where the second sensing unit is located is stopped, and a third touch area is obtained.

[0201] The area where the second sensing unit is located is expanded in cycles. The second determining module 63 is further configured to stop expanding the area where the second sensing unit is located if the differential signal corresponding to the expanded area of ​​the second sensing unit is greater than the touch threshold, and the expanded area of ​​the second sensing unit is located within the expanded area of ​​other second sensing units, and the first target differential signal is less than the second target differential signal, thereby obtaining a third touch area. The first target differential signal is the differential signal corresponding to the expanded area of ​​the second sensing unit in the previous cycle, and the second target differential signal is the differential signal corresponding to the expanded area of ​​other second sensing units in the previous cycle.

[0202] Among them, the merging module 64 is used to pair the third touch area and the fourth touch area to obtain a pairing group of the third touch area and the fourth touch area;

[0203] The third and fourth touch areas within the paired group are merged to obtain the target touch area.

[0204] The fourth touch area is multiple, and the merging module 64 is also used to calculate the distance between the third touch area and each fourth touch area;

[0205] The third and fourth touch areas corresponding to the smallest distance among all distances are identified as the pairing group.

[0206] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0207] like Figure 7 As shown, this application embodiment also provides a terminal device 200, including a memory 21, a processor 22, and a computer program 23 stored in the memory 21 and executable on the processor 22. When the processor 22 executes the computer program 23, it implements the touch area positioning method of the above embodiments.

[0208] The processor 22 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0209] The memory 21 can be an internal storage unit of the terminal device 200. The memory 21 can also be an external storage device of the terminal device 200, such as a plug-in hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the terminal device 200. Furthermore, the memory 21 can include both internal and external storage units of the terminal device 200. The memory 21 is used to store computer programs and other programs and data required by the terminal device 200. The memory 21 can also be used to temporarily store data that has been output or will be output.

[0210] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the touch area positioning method of the above embodiments.

[0211] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the touch area positioning method of the above embodiments.

[0212] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include at least: any entity or device capable of carrying computer program code to a photographic device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable storage media cannot be electrical carrier signals or telecommunication signals.

[0213] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0214] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0215] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of this application, depending on actual needs.

[0216] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for locating a touch area, characterized in that, include: Acquire the differential signal of the first sensing unit; Based on the differential signal and the preset touch threshold, a first touch area and a second touch area are determined. The first touch area is the area corresponding to the first sensing unit where the differential signal is positive and greater than the touch threshold, and the second touch area is the area corresponding to the first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold. The second sensing unit corresponding to the maximum differential signal in the first touch area is determined, and based on the position of the second sensing unit in the capacitive sensing array, the expansion direction for expanding the area where the second sensing unit is located is determined. The area where the second sensing unit is located is expanded in the expansion direction to obtain the expanded area of ​​the second sensing unit. Based on the expanded area of ​​the second sensing unit, the third touch area is obtained. The third sensing unit corresponding to the minimum differential signal in the second touch area is determined, and based on the position of the third sensing unit in the capacitive sensing array, the expansion direction for expanding the area where the third sensing unit is located is determined. The area where the third sensing unit is located is expanded in the expansion direction to obtain the expanded area of ​​the third sensing unit. Based on the expanded area of ​​the third sensing unit, the fourth touch area is obtained. The third touch area and the fourth touch area are merged to obtain the target touch area.

2. The positioning method according to claim 1, characterized in that, The third touch area, derived from the extended area of ​​the second sensing unit, includes: If the differential signal corresponding to the extended area of ​​the second sensing unit meets the preset stop-extend condition, then the extension of the area where the second sensing unit is located is stopped, and the third touch area is obtained.

3. The positioning method according to claim 2, characterized in that, If the differential signal corresponding to the expanded area of ​​the second sensing unit satisfies a preset stop-expansion condition, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained, including: If the differential signal corresponding to the extended area of ​​the second sensing unit is less than the touch threshold, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained.

4. The positioning method according to claim 2, characterized in that, If the differential signal corresponding to the expanded area of ​​the second sensing unit satisfies a preset stop-expansion condition, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained, including: If the differential signal corresponding to the extended area of ​​the second sensing unit is greater than the touch threshold, and the extended area of ​​the second sensing unit is located within the extended area of ​​other second sensing units, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained.

5. The positioning method according to claim 4, characterized in that, The area where the second sensing unit is located is expanded in a circular pattern. If the differential signal corresponding to the expanded area of ​​the second sensing unit is greater than the touch threshold, and the expanded area of ​​the second sensing unit is located within the expanded area of ​​other second sensing units, then the expansion of the area where the second sensing unit is located is stopped, resulting in the third touch area, including: If the differential signal corresponding to the extended area of ​​the second sensing unit is greater than the touch threshold, and the extended area of ​​the second sensing unit is located within the extended area of ​​other second sensing units, and the first target differential signal is less than the second target differential signal, then the expansion of the area where the second sensing unit is located is stopped, and the third touch area is obtained; the first target differential signal is the differential signal corresponding to the extended area of ​​the second sensing unit in the previous round, and the second target differential signal is the differential signal corresponding to the extended area of ​​other second sensing units in the previous round.

6. The positioning method according to any one of claims 1 to 5, characterized in that, The process of merging the third touch area and the fourth touch area to obtain the target touch area includes: The third touch area and the fourth touch area are paired to obtain a pairing group of the third touch area and the fourth touch area; The third touch area and the fourth touch area within the pairing group are merged to obtain the target touch area.

7. The positioning method according to claim 6, characterized in that, The fourth touch area has multiple regions. The pairing of the third touch area and the fourth touch area to obtain a pairing group of the third touch area and the fourth touch area includes: Calculate the distance between the third touch area and each of the fourth touch areas; The third touch area and the fourth touch area corresponding to the smallest distance among the various distances are determined as the pairing group.

8. A positioning device for a touch area, characterized in that, include: The acquisition module is used to acquire the differential signal of the first sensing unit; The first determining module is used to determine a first touch area and a second touch area based on the differential signal and a preset touch threshold. The first touch area is the area corresponding to the first sensing unit where the differential signal is positive and greater than the touch threshold, and the second touch area is the area corresponding to the first sensing unit where the differential signal is negative and the absolute value is greater than the touch threshold. The second determining module is configured to: determine the second sensing unit corresponding to the maximum differential signal within the first touch area; and based on the position of the second sensing unit in the capacitive sensing array, determine an expansion direction for expanding the area where the second sensing unit is located; expand the area where the second sensing unit is located in the expansion direction to obtain an expanded area of ​​the second sensing unit; and based on the expanded area of ​​the second sensing unit, obtain a third touch area; and determine the third sensing unit corresponding to the minimum differential signal within the second touch area; and based on the position of the third sensing unit in the capacitive sensing array, determine an expansion direction for expanding the area where the third sensing unit is located; expand the area where the third sensing unit is located in the expansion direction to obtain an expanded area of ​​the third sensing unit; and based on the expanded area of ​​the third sensing unit, obtain a fourth touch area. The merging module is used to merge the third touch area and the fourth touch area to obtain the target touch area.

9. A terminal device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method for locating a touch area as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for locating the touch area as described in any one of claims 1 to 7.