Touch method and device, electronic device, storage medium

By using a differential structure and frame synchronization signal processing technology, the first channel is used as a reference channel to correct the touch data of multiple second channels, which solves the problem of inaccurate positioning caused by noise interference on the touch screen and improves touch accuracy and interactive experience.

CN119690260BActive Publication Date: 2026-02-06BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311247040.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2026-02-06
Estimated Expiration
2043-09-25

AI Technical Summary

Technical Problem

As touch displays become thinner, the noise from the display increases, causing more interference with touch sensors and reducing the accuracy of touch positioning, thus affecting the user experience.

Method used

It employs a differential structure and frame synchronization signal processing technology, using the first channel as a reference channel, and determines the touch point coordinates by correcting and processing the touch data of multiple second channels. It also outputs a scanning signal with a delay when the frame synchronization signal switches to reduce noise interference.

Benefits of technology

It improves the accuracy of touch point coordinates, enhances the accuracy of touch actions, reduces noise interference to touch sensors, and improves the interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690260B_ABST
    Figure CN119690260B_ABST
Patent Text Reader

Abstract

The present disclosure provides a touch method and device, electronic equipment and storage medium, the method comprising: obtaining current frame touch data output by a touch sensor; the current frame touch data comprising first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel being located between the plurality of second channels and the first touch data serving as reference data of the second touch data; obtaining touch point coordinates of the current frame touch data; and executing a corresponding touch event according to touch point coordinates of at least one frame of touch data, the at least one frame of touch data comprising the current frame of touch data. In this way, the present embodiment takes the first channel between the second channels as a reference channel and the first touch data as reference data, which is conducive to improving the accuracy of obtaining the coordinates of the touch point and improving the accuracy of the touch action.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of data processing, and in particular, to a touch method and device, electronic equipment, and storage medium. BACKGROUND

[0002] More and more electronic devices use touch display screens to realize display and human-computer interaction. As the thickness of the touch display screen becomes thinner, the noise of the display screen increasingly interferes with the touch sensor, thereby reducing the accuracy of the touch sensor in positioning the touch position and affecting the interaction experience. SUMMARY

[0003] The present disclosure provides a touch method and device, electronic equipment, and storage medium to solve the above technical problems.

[0004] According to a first aspect of the present disclosure, a touch method is provided, comprising:

[0005] obtaining current frame touch data output by a touch sensor; the current frame touch data comprising first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel being located between the plurality of second channels and the first touch data serving as reference data for the second touch data;

[0006] obtaining touch point coordinates of the current frame touch data;

[0007] executing a corresponding touch event according to touch point coordinates of at least one frame of touch data, the at least one frame of touch data comprising the current frame of touch data.

[0008] Optionally, obtaining the touch point coordinates of the current frame of touch data comprises:

[0009] correcting the second touch data of each second channel in the current frame of touch data to obtain touch correction data of each second channel;

[0010] determining coordinates of a touch point in the current frame of touch data according to the first touch data of the first channel and the touch correction data of each second channel.

[0011] Optionally, correcting the second touch data of each second channel in the current frame of touch data to obtain touch correction data of each second channel comprises:

[0012] obtaining the touch correction data of a current second channel in order from small to large distance from the first channel as a reference channel, the touch correction data being a sum of the second touch data of the current second channel, the second touch data of a second channel between the current second channel and the reference channel, and the first touch data;

[0013] In response to obtaining the touch correction data of the outermost second channel, the touch correction data of each second channel is determined.

[0014] Optionally, the method further comprises:

[0015] The maximum value in the row direction and the maximum value in the column direction of each frame of touch data are obtained, to obtain a candidate position where the maximum value in the row direction and the maximum value in the column direction are located;

[0016] The touch correction data of the row where the candidate position is located and the touch correction data of the column where the candidate position is located are obtained respectively, to obtain first candidate data and second candidate data;

[0017] The weighted sum value of each column touch correction data in the first candidate data and the weight value thereof is obtained respectively, to obtain row coordinate data;

[0018] The weighted sum value of each row touch correction data in the second candidate data and the weight value thereof is obtained respectively, to obtain column coordinate data;

[0019] The row coordinate data and the column coordinate data are determined as the coordinates of the touch point in the touch data.

[0020] Optionally, the method further comprises:

[0021] The coordinates of the touch point in the at least one frame of touch data are determined according to the coordinates of the touch point in the at least one frame of touch data;

[0022] The corresponding touch event of the touch track is executed.

[0023] Optionally, the method further comprises:

[0024] In response to obtaining the coordinate data of the current frame of touch data, the coordinates of the touch point in the at least one frame of touch data are obtained;

[0025] The coordinates of the touch point in the at least one frame of touch data are input into a preset track recognition model, to obtain the touch track output by the preset track recognition model.

[0026] Optionally, before obtaining the current frame of touch data output by the touch sensor, the method further comprises:

[0027] In response to receiving a frame synchronization signal, a target timer is started, and the target timer is used to time a preset time length;

[0028] In response to the target timer timing reaching the preset time length, a scanning signal is output to each emission channel of the touch sensor, so that each receiving channel of the touch sensor generates touch data.

[0029] According to a second aspect of the present disclosure, a touch device is provided, comprising:

[0030] A current data acquisition module is configured to acquire current frame touch data output by the touch sensor; the current frame touch data comprises first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located between the plurality of second channels and the first touch data is used as reference data for the second touch data;

[0031] A coordinate data acquisition module is configured to acquire coordinates of a touch point in the current frame touch data.

[0032] A touch event execution module is configured to execute a corresponding touch event according to a touch point in at least one frame of touch data, the at least one frame of touch data comprising current frame touch data.

[0033] Optionally, the coordinate data acquisition module comprises:

[0034] A correction data acquisition sub-module is configured to perform correction processing on the second touch data of each second channel in the current frame touch data, to obtain touch correction data of each second channel;

[0035] A coordinate data acquisition sub-module is configured to determine coordinates of a touch point in the current frame touch data according to the first touch data of the first channel and the touch correction data of each second channel.

[0036] Optionally, the correction data acquisition sub-module comprises:

[0037] A correction data acquisition unit is configured to take the first channel as a reference channel, and sequentially acquire touch correction data of a current second channel from inside to outside, the touch correction data being a sum of the second touch data of the current second channel, the second touch data of a second channel between the current second channel and the reference channel, and the first touch data;

[0038] A correction data determination unit is configured to determine the touch correction data of each second channel in response to acquiring the touch correction data of the outermost second channel.

[0039] Optionally, the coordinate data acquisition sub-module comprises:

[0040] A candidate position acquisition unit is configured to acquire a maximum value in a row direction and a maximum value in a column direction of each frame of touch data, to obtain a candidate position where the maximum value in the row direction and the maximum value in the column direction are located.

[0041] a candidate data obtaining unit, configured to obtain touch correction data of a row where the candidate position is located and touch correction data of a column where the candidate position is located respectively, to obtain first candidate data and second candidate data;

[0042] a row coordinate obtaining unit, configured to obtain a weighted sum value of each column touch correction data and a weight value thereof in the first candidate data respectively, to obtain row coordinate data;

[0043] a column coordinate obtaining unit, configured to obtain a weighted sum value of each row touch correction data and a weight value thereof in the second candidate data respectively, to obtain column coordinate data;

[0044] a touch point coordinate determining unit, configured to determine the row coordinate data and the column coordinate data as coordinates of a touch point in each frame of touch data.

[0045] Optionally, the touch event executing module comprises:

[0046] a touch track determining sub-module, configured to determine a touch track according to the coordinates of the touch point in the at least one frame of touch data;

[0047] a touch event executing sub-module, configured to execute a corresponding touch event of the touch track.

[0048] Optionally, the touch track determining sub-module comprises:

[0049] a coordinate data obtaining unit, configured to obtain the coordinates of the touch point in the at least one frame of touch data before the current frame of touch data in response to obtaining the coordinate data of the current frame of touch data;

[0050] a touch track obtaining unit, configured to input the coordinates of the touch point in the current frame of touch data and the at least one frame of touch data before the current frame of touch data into a preset track recognition model, to obtain a touch track output by the preset track recognition model.

[0051] Optionally, the apparatus further comprises:

[0052] a timer starting module, configured to start a target timer in response to receiving a frame synchronization signal, the target timer being configured to time a preset time length;

[0053] a scanning signal output module, configured to output a scanning signal to each transmission channel of a touch sensor in response to the target timer timing reaching the preset time length, so that each reception channel of the touch sensor generates touch data.

[0054] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0055] a processor and a memory;

[0056] The memory is configured to store a computer program executable by the processor;

[0057] The processor is configured to execute the computer program in the memory to implement the method according to any one of the first aspect.

[0058] Optionally, the touch sensor comprises a first differentiator arranged in the first channel and a second differentiator arranged in the second channel; the inverting input terminal of the first differentiator is grounded, the non-inverting input terminal of the first differentiator is electrically connected with the non-inverting input terminal of the second differentiator of the previous stage and the inverting input terminal of the second differentiator of the next stage respectively, and the output terminal of the first differentiator is electrically connected with the receiving signal line of the row.

[0059] The non-inverting input terminal of each second differentiator is electrically connected with the matched transmitting signal line and the non-inverting input terminal of the second differentiator of the previous stage respectively, and the output terminal of each second differentiator is electrically connected with the receiving signal line of the row.

[0060] According to a fourth aspect of the present disclosure, a non-transitory computer readable storage medium is provided, which, when the executable computer program in the storage medium is executed by a processor, can implement the method according to any one of the first aspect.

[0061] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects:

[0062] The scheme of the present embodiment can obtain current frame touch data output by a touch sensor; the current frame touch data comprises first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located between the plurality of second channels and the first touch data serves as reference data of the second touch data; touch point coordinates of the current frame touch data are obtained; a corresponding touch event is executed according to touch point coordinates of at least one frame of touch data, the at least one frame of touch data comprising the current frame of touch data. In this way, the present embodiment takes the first channel between the second channels as a reference channel and takes the first touch data as reference data, which is conducive to improving the accuracy of obtaining the coordinates of the touch point and improving the accuracy of touch action.

[0063] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0064] Figure 1 FIG. 1 is a structural schematic diagram of a touch sensor according to an embodiment of the present disclosure.

[0065] Figure 2A structural schematic diagram of a touch display screen according to an embodiment of the present disclosure.

[0066] Figure 3 A structural schematic diagram of a touch sensor according to an embodiment of the present disclosure.

[0067] Figure 4 A structural schematic diagram of a touch display screen according to an embodiment of the present disclosure.

[0068] Figure 5 A structural schematic diagram of a touch display screen according to an embodiment of the present disclosure.

[0069] Figure 6 A schematic diagram of a scanning signal timing according to an embodiment of the present disclosure.

[0070] Figure 7 A structural schematic diagram of a touch display screen according to an embodiment of the present disclosure.

[0071] Figure 8 A flowchart of a touch method according to an embodiment of the present disclosure.

[0072] Figure 9 A flowchart of obtaining coordinate data according to an embodiment of the present disclosure.

[0073] Figure 10 A block diagram of a touch device according to an embodiment of the present disclosure.

[0074] Figure 11 A block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0075] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, the same numbers are used to indicate the same or similar elements, unless otherwise represented. The embodiments described in the following exemplary embodiments do not represent all the embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of the present disclosure, as detailed in the appended claims.

[0076] The embodiments of the present disclosure provide a touch method and device, an electronic device, and a storage medium. The touch method can be applied to an electronic device provided with a touch sensor. The electronic device can include, but is not limited to, a smart phone, a tablet computer, a server, and the like. The electronic device includes a touch sensor, which includes a plurality of columns of transmission signal lines and a plurality of rows of reception signal lines.

[0077] For example, 5 transmission signal lines and 5 reception signal lines are provided in each column and each row, Figure 1 A structural schematic diagram of a touch sensor according to an embodiment of the present disclosure. Referring to Figure 1The touch sensor includes transmitting signal lines TX1~TX5 and receiving signal lines RX1~RX5. Coupling capacitances C, such as C(1,1)~C(5,5), are formed at the overlapping positions of the transmitting signal lines TX and the receiving signal lines RX. When the transmitting signal lines TX receive a scanning signal, touch data can be detected at the receiving signal lines RX via the coupling capacitances C. The touch data can include at least one of a voltage value, a capacitance value, a current value, etc. When the touch sensor is not touched, the coupling capacitances C are small, and the touch data at this time is small, which can be regarded as no output data or touch data of 0. When the touch sensor is touched by a touch operation (for example, clicking or a distance less than a distance threshold (such as 2 mm)), the coupling capacitances C become large (equivalent to short-circuiting the transmitting signal line and the receiving signal line at the touch position), and large touch data can be detected at the receiving signal lines RX at this time.

[0078] Considering that the electronic device can be affected by the surrounding environment, noise signals can enter through the transmitting signal lines of the edges,

[0079] Because the distance between the far-end transmitting signal line RX far and the near-end transmitting signal line RX near and the controller (which can be one of a touch chip, a processor, etc.) of the touch sensor is different, the sizes of the received noise signals are different, thereby affecting the working performance of the touch sensor. Therefore, in an embodiment, the touch sensor includes a first differentiator arranged at the first channel and a second differentiator arranged at the second channel; the inverting input end of the first differentiator is grounded, the non-inverting input end of the first differentiator is electrically connected with the non-inverting input end of the second differentiator of the previous stage and the inverting input end of the second differentiator of the next stage respectively, and the output end of the first differentiator is electrically connected with the receiving signal line of the row.

[0080] The inverting input end of each second differentiator is electrically connected with the matching transmitting signal line and the non-inverting input end of the second differentiator of the previous stage respectively, and the output end of each second differentiator is electrically connected with the receiving signal line of the row.

[0081] It can be understood that the first differentiator is located between the plurality of second differentiators. In an example, the first differentiator is located at the middle position of the plurality of second differentiators. When the number of receiving signal lines is odd, the middle position is the channel of the receiving signal line of the middle row; when the number of receiving signal lines is even, the middle position is the channel of any one of the receiving signal lines of the middle two rows. It should be noted that the position of the differentiator refers to the row number of the receiving signal line connected with the output end of the differentiator. Alternatively, the channel in the embodiments of the present disclosure refers to the signal transmission path of the signal line or the row and column of the signal line; for example, the transmitting channel refers to the transmitting signal line, and the receiving channel refers to the receiving signal line or the channel formed by the receiving signal line and the differentiator.

[0082] Taking 5 transmitting signal lines TX and 5 receiving signal lines RX as an example, referring to Figure 3 , the touch sensor includes differentiators A1-A5. The differentiator A3 is used as a first differentiator, and the differentiators A1, A2, A4 and A5 are used as second differentiators. Among them,

[0083] The inverting input terminal of the differentiator A1 is electrically connected with the transmitting signal line TX1, the non-inverting input terminal of the differentiator A1 is electrically connected with the transmitting signal line TX2 and the inverting input terminal of the differentiator A2, and the output terminal of the differentiator A1 is electrically connected with the receiving signal line RX1.

[0084] The inverting input terminal of the differentiator A2 is electrically connected with the transmitting signal line TX2, the non-inverting input terminal of the differentiator A2 is electrically connected with the transmitting signal line TX2 and the non-inverting input terminal of the differentiator A3, and the output terminal of the differentiator A2 is electrically connected with the receiving signal line RX2.

[0085] The inverting input terminal of the differentiator A3 is grounded, the non-inverting input terminal of the differentiator A3 is electrically connected with the transmitting signal line TX3 and the inverting input terminal of the differentiator A4, and the output terminal of the differentiator A3 is electrically connected with the receiving signal line RX3.

[0086] The inverting input terminal of the differentiator A4 is electrically connected with the transmitting signal line TX3, the non-inverting input terminal of the differentiator A4 is electrically connected with the transmitting signal line TX4 and the inverting input terminal of the differentiator A5, and the output terminal of the differentiator A4 is electrically connected with the receiving signal line RX4.

[0087] The non-inverting input terminal of the differentiator A5 is electrically connected with the transmitting signal line TX5, and the output terminal of the differentiator A5 is electrically connected with the receiving signal line RX5.

[0088] When the scanning signals are sequentially written to the transmitting signal lines TX1-TX5, the touch data output by the receiving signal lines RX1-RX5 are D RX2-RX1 , D RX3-RX2 , D RX3 , D RX4-RX3 and D RX5-RX4 in turn. In other words, except for the receiving signal line RX3, the touch data output by the other receiving signal lines are all differential data, which can avoid the influence of edge noise on the reference channel, i.e., the receiving signal line RX3, so that the touch data output by the receiving signal line RX3 fluctuates less.

[0089] It is considered that the touch sensor is integrated in a display screen, i.e., a touch display screen, so that the distance between the display circuit and the touch sensor is relatively short.

[0090] Referring to Figure 4 , the TFE package between the touch sensor 41 and the display circuit 42 is increasingly thin, for example, 8-12um.

[0091] Referring to Figure 5 , there is a coupling circuit between the touch sensor 41 and the display circuit 42, for example, there is a coupling capacitor C2 between the transmitting signal line TX and the display circuit 42, and there is a coupling capacitor C3 between the receiving signal line RX and the display circuit 42; when the TFE package is thinner and thinner, the coupling capacitors between the display circuit 42 and the transmitting signal line TX and the receiving signal line RX are also larger and larger, at this time, the display noise of the display circuit will also be coupled to the touch sensor through the coupling capacitors C2 and C3, thereby affecting the touch data output by the receiving signal line RX, and further affecting the working performance of the touch display screen.

[0092] In the process of implementing the scheme of the present disclosure, the inventors have verified through a large number of tests that the interference of the display circuit on the touch sensor is larger when the display circuit is switched at the frame synchronization signal.

[0093] Referring to Figure 6 , the display circuit will synchronously generate display noise (display noise) when the frame synchronization signal (display hsync) is switched. In an embodiment, referring to Figure 7 , the touch sensor further includes a controller 71, which includes a synchronization signal pin for receiving the frame synchronization signal (display hsync) of the display circuit. The controller 71 can start a target timer when receiving the frame synchronization signal, and the target timer is used to time a preset time length. The preset time length is in the range of 【0, 10ms】, which can be adjusted according to the frame rate of the touch display screen. In an example, the preset time length can be 1ms. When the target timer times up to the preset time length, the controller can output a scanning signal to each transmitting signal line of the touch sensor, wherein the scanning signal is the signal Scan_TX shown in Figure 6 so that each receiving signal line of the touch sensor generates touch data and outputs. In this way, the interference of the display noise on the touch sensor can be avoided in the embodiment, and the signal-to-noise ratio of the reference data of the reference channel is further improved.

[0094] On the basis of the electronic device shown in Figures 1 to 7 , the present embodiment further provides a touch method, referring to Figure 8 , including steps 81-83.

[0095] In step 81, the current frame touch data output by the touch sensor is acquired; the current frame touch data includes first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located between the plurality of second channels and the first touch data serves as reference data of the second touch data.

[0096] In this step, the electronic device can output a scanning signal to the touch sensor according to a preset period. For example, when the display frame rate is 30 fps, the preset period can be 33 ms, which can be set according to a specific scene, without limitation. In an example, the electronic device can output the scanning signal to the touch sensor after delaying a preset time period after detecting a frame synchronization signal (display hsync), which can be seen from Figure 7 The contents of the example scheme are not repeated here. Then, the electronic device can obtain touch data output by the touch sensor, which is referred to as current frame touch data in the following.

[0097] It can be understood that the current frame touch data includes first touch data output by the first channel of the touch sensor and second touch data output by the plurality of second channels; the first channel is located between the plurality of second channels and the first touch data is used as reference data for the second touch data, which can be seen from Figure 3 The contents of the example scheme are not repeated here.

[0098] In step 82, the coordinates of the touch points of the current frame touch data are obtained.

[0099] In this step, the electronic device can obtain the coordinates of the touch points of the current frame touch data, which can be seen from Figure 9 , including steps 91 and 92.

[0100] In step 91, the second touch data of each second channel in the current frame touch data is corrected to obtain touch correction data of each second channel.

[0101] In this step, the electronic device can correct the second touch data of each second channel in the current frame touch data, for example, integrate the second control data of each second channel to obtain touch correction data of each second channel. For example, taking the first channel as a reference channel, the electronic device can obtain the touch correction data of the current second channel in order of distance from small to large starting from the reference channel, which is the sum of the second touch data of the current second channel, the second touch data of the second channel between the current second channel and the reference channel, and the first touch data. Then, in response to obtaining the touch correction data of the outermost second channel, the electronic device can determine to obtain the touch correction data of each second channel.

[0102] Continuing to see Figure 3 , the touch correction data of each channel is in turn:

[0103] RX1: D RX1 = D RX3 + D RX3-RX2 + D RX2-RX1 ;

[0104] RX2: D RX2 = D RX3 + D RX3-RX2 ;

[0105] RX5: D RX3

[0106] RX4: D RX4 = D RX3 + D RX4-RX3 ;

[0107] RX5: D RX5 = D RX3 + D RX4-RX3 + D RX5-RX4 .

[0108] In step 92, coordinates of the touch point in the current frame touch data are determined according to the first touch data of the first channel and the touch correction data of each second channel.

[0109] In this step, the electronic device can obtain the maximum value in the row direction and the maximum value in the column direction of each frame touch data, and obtain the candidate position where the maximum value in the row direction and the maximum value in the column direction are located, such as X(3, 3) shown in Table 1.

[0110] Table 1 Each frame touch correction data

[0111]

[0112] Then, the electronic device can obtain the touch correction data of the row where the candidate position is located and the touch correction data of the column where the candidate position is located respectively, and obtain the first candidate data and the second candidate data, such as the third row touch correction data in Table 1 as the first candidate data and the third column touch correction data in Table 1 as the second candidate data.

[0113] After that, the electronic device can obtain the weighted sum value of each column touch correction data and its weight value in the first candidate data respectively, and obtain the row coordinate data, such as formula (1).

[0114] (1)

[0115] In formula (1), are each column touch correction data in the first candidate data.

[0116] The electronic device can obtain the weighted sum value of each row touch correction data and its weight value in the second candidate data respectively, and obtain the column coordinate data, such as formula (2).

[0117] (2)

[0118] In formula (2), x and y respectively represent the row and column coordinates of the touch point in the current frame of touch data. The second candidate data is obtained by correcting the first candidate data according to the row and column coordinates of the touch point in the current frame of touch data.

[0119] Finally, the electronic device can determine the row coordinate data and the column coordinate data as the coordinates of the touch point in each frame of touch data. It can be understood that the above-mentioned candidate position is a screened preliminary position, such as (3, 3), and the above-mentioned coordinates of the touch point is an accurate position, such as (3.1, 2.9).

[0120] In step 83, a corresponding touch event is executed according to the coordinates of the touch point in at least one frame of touch data, and the at least one frame of touch data includes the current frame of touch data.

[0121] In this step, the electronic device can determine the touch trajectory according to the coordinates of the touch point in at least one frame of touch data. It should be noted that the at least one frame of touch data includes the current frame of touch data, that is, the electronic device can obtain the touch data before and / or after the current frame of touch data to form the at least one frame of touch data.

[0122] Taking the previous touch data as an example, after obtaining the coordinate data of the current frame of touch data, the electronic device can obtain the coordinates of the touch point in at least one frame of touch data before the current frame of touch data. Then, the electronic device can input the coordinates of the touch point in the current frame of touch data and the at least one frame of touch data before it into a preset trajectory recognition model to obtain the touch trajectory output by the preset trajectory recognition model.

[0123] It should be noted that the above-mentioned preset trajectory recognition model can be implemented by a neural network, such as a convolutional neural network, a recurrent neural network, etc., which is not limited herein. The preset trajectory recognition model can be preset to complete training, that is, different touch trajectories are input into the neural network for training; when the proportion of the number of touch trajectory categories recognized by the neural network and the labeled categories in the training data exceeds the proportion threshold (such as 80%~100%) of the training data, it is determined that the neural network has completed training and is used as the above-mentioned preset trajectory model.

[0124] In this step, the electronic device can execute the touch event corresponding to the touch trajectory, and the above-mentioned touch event includes but is not limited to switching pages, displaying pop-up windows, starting APPs, clicking, long pressing, etc., which can be set according to specific scenes. After executing the touch event, a touch feedback matching the touch event can be generated, such as page switching, pop-up windows, etc.

[0125] So far, the scheme of the embodiment can acquire current frame touch data output by a touch sensor; the current frame touch data includes first touch data output by a first channel of the touch sensor and second touch data output by multiple second channels; the first channel is located between the multiple second channels and the first touch data is used as reference data of the second touch data; coordinates of a touch point in the current frame touch data are acquired; a corresponding touch event is executed according to the coordinates of the touch point in at least one frame of touch data, the at least one frame of touch data including the current frame of touch data. In this way, the first channel between the second channels is used as a reference channel and the first touch data is used as reference data, which is beneficial to improve the accuracy of the coordinates of the touch point and improve the accuracy of touch actions.

[0126] In the touch method provided in the present disclosure, the embodiment of the present disclosure further provides a touch device, referring to Figure 10 , the device includes:

[0127] The current data acquisition module 101 is configured to acquire current frame touch data output by a touch sensor; the current frame of touch data includes first touch data output by a first channel of the touch sensor and second touch data output by multiple second channels; the first channel is located between the multiple second channels and the first touch data is used as reference data of the second touch data;

[0128] The coordinate data acquisition module 102 is configured to acquire coordinates of a touch point in the current frame of touch data.

[0129] The touch event execution module 103 is configured to execute a corresponding touch event according to a touch point in at least one frame of touch data, the at least one frame of touch data including the current frame of touch data.

[0130] Optionally, the coordinate data acquisition module includes:

[0131] The correction data acquisition sub-module is configured to perform correction processing on the second touch data of each second channel in the current frame of touch data to obtain touch correction data of each second channel.

[0132] The coordinate data acquisition sub-module is configured to determine the coordinates of the touch point in the current frame of touch data according to the first touch data of the first channel and the touch correction data of each second channel.

[0133] Optionally, the correction data acquisition sub-module includes:

[0134] The correction data acquisition unit is configured to acquire, with the first channel as a reference channel, touch correction data of the current second channel from inside to outside in sequence, the touch correction data being a sum of the second touch data of the current second channel, the second touch data of the second channel between the current second channel and the reference channel, and the first touch data;

[0135] The correction data determination unit is configured to determine the touch correction data of each second channel in response to acquisition of the touch correction data of the outermost second channel.

[0136] Optionally, the coordinate data acquisition sub-module comprises:

[0137] The candidate position acquisition unit is configured to acquire a maximum value in a row direction and a maximum value in a column direction of each frame of touch data, to obtain a candidate position where the maximum value in the row direction and the maximum value in the column direction are located;

[0138] The candidate data acquisition unit is configured to acquire touch correction data in a row where the candidate position is located and touch correction data in a column where the candidate position is located respectively, to obtain first candidate data and second candidate data;

[0139] The row coordinate acquisition unit is configured to acquire a weighted sum value of each column of touch correction data and a weight value thereof in the first candidate data respectively, to obtain row coordinate data;

[0140] The column coordinate acquisition unit is configured to acquire a weighted sum value of each row of touch correction data and a weight value thereof in the second candidate data respectively, to obtain column coordinate data;

[0141] The touch point coordinate determination unit is configured to determine the row coordinate data and the column coordinate data as coordinates of a touch point in each frame of touch data.

[0142] Optionally, the touch event execution module comprises:

[0143] The touch track determination sub-module is configured to determine a touch track according to the coordinates of the touch point in the at least one frame of touch data;

[0144] The touch event execution sub-module is configured to execute a corresponding touch event of the touch track.

[0145] Optionally, the touch track determination sub-module comprises:

[0146] The coordinate data acquisition unit is configured to acquire coordinates of a touch point in at least one frame of touch data before the current frame of touch data in response to acquisition of the coordinate data of the current frame of touch data;

[0147] The touch track acquisition unit is configured to input coordinates of touch points in the current frame touch data and at least one previous frame touch data thereof into a preset track recognition model, and obtain a touch track output by the preset track recognition model.

[0148] Optionally, the apparatus further comprises:

[0149] The timer starting module is configured to start a target timer in response to receiving a frame synchronization signal, the target timer being configured to time a preset time length.

[0150] The scanning signal output module is configured to output a scanning signal to each transmission channel of the touch sensor in response to the target timer timing reaching the preset time length, so that each receiving channel of the touch sensor generates touch data.

[0151] It should be noted that the apparatus embodiment shown in the embodiment matches the content of the above-mentioned method embodiment, and the content of the above-mentioned method embodiment can be referred to, which will not be described here again.

[0152] Figure 11 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1100 can be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0153] Referring to Figure 11 , the electronic device 1100 can include one or more of the following components: a processing component 1102, a memory 1104, a power supply component 1106, a multimedia component 1108, an audio component 1110, an input / output (I / O) interface 1112, a sensor component 1114, a communication component 1116, and an image acquisition component 1118.

[0154] The processing component 1102 usually controls the overall operation of the electronic device 1100, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 1102 can include one or more processors 1120 to execute computer programs. In addition, the processing component 1102 can include one or more modules to facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 can include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102. In an example, the processor 1120 can implement the above-mentioned power supply control method.

[0155] The memory 1104 is configured to store various types of data to support the operation of the electronic device 1100. Examples of such data include computer programs for operating any applications or methods on the electronic device 1100, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1104 can be implemented by any type of volatile or nonvolatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or a optical disk.

[0156] The power supply component 1106 supplies power for the various components of the electronic device 1100. The power supply component 1106 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1100. The power supply component 1106 can include a power chip with which a controller can communicate to turn on or off a first switching device to enable or disable the supply of power from a battery to the main board circuit. In an example, the power supply component 1106 includes Figure 3 a first power supply circuit and a second power supply circuit as shown, and / or Figure 6 a third power supply circuit as shown.

[0157] The multimedia component 1108 includes a screen providing an output interface between the electronic device 1100 and a target object. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive input information from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensor can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action.

[0158] The audio component 1110 is configured to output and / or input audio file information. For example, the audio component 1110 includes a microphone (MIC) configured to receive external audio file information when the electronic device 1100 is in an operation mode such as a call mode, a recording mode, and a voice recognition mode. The received audio file information can be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio file information.

[0159] The I / O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which can be a keyboard, a click wheel, a button, and the like.

[0160] The sensor component 1114 includes one or more sensors to provide the electronic device 1100 with various status assessments. For example, the sensor component 1114 can detect an open / closed position of the electronic device 1100, relative positioning of components, such as a display screen and a keypad of the electronic device 1100, a change in position of the electronic device 1100 or a component, presence or absence of a target object in contact with the electronic device 1100, orientation or acceleration / deceleration of the electronic device 1100, and a change in temperature of the electronic device 1100. In an example, the sensor component 1114 can include a magnetic force sensor, a gyroscope, and a magnetic field sensor, and can further include an inertial sensor, an image sensor, and the like, wherein the magnetic field sensor includes at least one of a Hall sensor, a thin-film magnetoresistive sensor, and a magnetic liquid acceleration sensor.

[0161] The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof, for example. In an example embodiment, the communication component 1116 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 1116 further includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technology.

[0162] In an example embodiment, the electronic device 1100 can be implemented using one or more application-specific integrated circuits (ASICs), digital information processors (DSPs), digital information processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements.

[0163] In an example embodiment, the present disclosure also provides a non-transitory computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, enable performance of the method described above.

[0164] In an example embodiment, a chip is also provided, which includes a processor and an interface, for reading a computer program through the interface to implement the method as described above. Wherein, the chip can be a conventional CPU (central processing unit) chip, a GPU (graphics processing unit) chip, etc., or can be an acceleration chip dedicated to artificial intelligence technology, such as an AI (Artificial Intelligence) accelerator, etc.

[0165] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the features of the present disclosure and includes such as those that are within its general purview or the equivalent thereof. The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0166] It should be understood that the present disclosure is not limited to the precise structures as herein described and illustrated in the drawings, and that various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the claims that follow.

Claims

1. A touch method, characterized in that, The method comprises the following steps: obtaining current frame touch data output by a touch sensor; the current frame touch data comprises first touch data output by a first channel of the touch sensor and second touch data output by multiple second channels; the first channel is located between the multiple second channels, and the first touch data serves as reference data of the second touch data; obtaining touch point coordinates of the current frame touch data; performing a corresponding touch event according to touch point coordinates of at least one frame of touch data, wherein the at least one frame of touch data comprises the current frame of touch data; Before the step of obtaining the current frame touch data output by the touch sensor, the method further comprises the following steps: in response to receiving a frame synchronization signal, starting a target timer, wherein the target timer is used to time a preset time length; in response to the target timer timing reaching the preset time length, outputting a scanning signal to each transmission channel of the touch sensor, so that each receiving channel of the touch sensor generates touch data.

2. The method of claim 1, wherein, The step of obtaining touch point coordinates of the current frame touch data comprises the following steps: correcting the second touch data of each second channel in the current frame touch data to obtain touch correction data of each second channel; determining coordinates of a touch point in the current frame touch data according to the first touch data of the first channel and the touch correction data of each second channel.

3. The method of claim 2, wherein, The step of correcting the second touch data of each second channel in the current frame touch data to obtain touch correction data of each second channel comprises the following steps: taking the first channel as a reference channel, and obtaining touch correction data of a current second channel in order of distance from small to large, wherein the touch correction data is a sum of the second touch data of the current second channel, the second touch data of a second channel between the current second channel and the reference channel, and the first touch data; in response to obtaining the touch correction data of the outermost second channel, determining the touch correction data of each second channel.

4. The method of claim 2, wherein, The step of determining coordinates of a touch point in the current frame touch data according to the first touch data of the first channel and the touch correction data of each second channel comprises the following steps: obtaining a maximum value in a row direction and a maximum value in a column direction of each frame of touch data to obtain a candidate position of the maximum value in the row direction and the maximum value in the column direction; obtaining touch correction data in a row where the candidate position is located and touch correction data in a column where the candidate position is located to obtain first candidate data and second candidate data; obtaining a weighted sum value of each column touch correction data and a weight value thereof in the first candidate data to obtain row coordinate data; obtaining a weighted sum value of each row touch correction data and a weight value thereof in the second candidate data to obtain column coordinate data; determining the row coordinate data and the column coordinate data as coordinates of a touch point in the touch data.

5. The method of claim 1, wherein, The step of performing a corresponding touch event according to touch point coordinates of at least one frame of touch data comprises the following steps: determining a touch trajectory according to coordinates of a touch point in the at least one frame of touch data; performing a corresponding touch event of the touch trajectory.

6. The method of claim 5, wherein, The step of determining a touch trajectory according to coordinates of a touch point in the at least one frame of touch data comprises the following steps: In response to obtaining the coordinate data of the current frame touch data, coordinate data of a touch point in the at least one frame of touch data is obtained; The coordinate data of the touch point in the at least one frame of touch data is input into a preset trajectory recognition model, and a touch trajectory output by the preset trajectory recognition model is obtained.

7. A touch device, comprising: Comprise: A current data acquisition module is configured to acquire current frame touch data output by a touch sensor; the current frame touch data comprises first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located between the plurality of second channels, and the first touch data is used as reference data for the second touch data; A coordinate data acquisition module is configured to acquire coordinate data of a touch point of the current frame touch data; A touch event execution module is configured to execute a corresponding touch event according to a touch point in at least one frame of touch data, the at least one frame of touch data comprising current frame touch data; The device further comprises: A timer starting module is configured to start a target timer in response to receiving a frame synchronization signal; the target timer is configured to time a preset time length; A scanning signal output module is configured to output a scanning signal to each transmission channel of a touch sensor in response to the target timer timing reaching the preset time length, so that each receiving channel of the touch sensor generates touch data.

8. An electronic device, comprising: Comprise: A touch sensor, a processor and a memory; The touch sensor is configured to output current frame touch data; The memory is configured to store a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the method of any one of claims 1-6.

9. The electronic device of claim 8, wherein, The touch sensor comprises a first differentiator arranged in a first channel and a second differentiator arranged in a second channel; an inverting input terminal of the first differentiator is grounded, a non-inverting input terminal of the first differentiator is electrically connected with a non-inverting input terminal of a previous-stage second differentiator and an inverting input terminal of a next-stage second differentiator respectively, and an output terminal of the first differentiator is electrically connected with a receiving signal line in the same row; An inverting input terminal of each-stage second differentiator is electrically connected with a matched transmitting signal line and a non-inverting input terminal of a previous-stage second differentiator respectively, and an output terminal of each-stage second differentiator is electrically connected with a receiving signal line in the same row.

10. A non-transitory computer-readable storage medium, comprising: When the executable computer program in the storage medium is executed by the processor, the method of any one of claims 1-6 can be implemented.

Citation Information

Patent Citations

  • Touch detection method, medium, touch control chip and touch control display device

    US11460962B1