CN116578200A - Touch detection method and device, electronic equipment and storage medium - Google Patents

Touch detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116578200A
CN116578200A CN202310518511.1A CN202310518511A CN116578200A CN 116578200 A CN116578200 A CN 116578200A CN 202310518511 A CN202310518511 A CN 202310518511A CN 116578200 A CN116578200 A CN 116578200A
Authority
CN
China
Prior art keywords
matrix
touch
filtering
sub
touch detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310518511.1A
Other languages
Chinese (zh)
Inventor
李成前
刘丽娜
项大林
王旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202310518511.1A priority Critical patent/CN116578200A/en
Publication of CN116578200A publication Critical patent/CN116578200A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04182Filtering of noise external to the device and not generated by digitiser components

Abstract

The disclosure provides a touch detection method, a touch detection device, electronic equipment and a storage medium, and relates to the technical field of computers. Comprising the following steps: under the condition that the single-point touch of the touch panel is determined, firstly, a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix are obtained, then, based on elements in a first submatrix in the filtering matrix, compensation is carried out on corresponding elements in a second submatrix in the filtering result matrix respectively, a third submatrix is obtained, and finally, the third submatrix is identified to determine whether the single-point touch is finger joint touch. Therefore, under the condition of determining single-point touch, the filtering matrix is utilized to compensate the filtering result matrix, and then finger joint touch judgment is carried out based on the compensated matrix, so that noise is restrained, and the accuracy and reliability of touch detection and identification results are ensured.

Description

Touch detection method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a touch detection method, a touch detection device, electronic equipment and a storage medium.
Background
The current touch detection method uses a gradient removal software filtering algorithm, so that touch noise can be filtered out rapidly and accurately. However, the algorithm has limitations and low touch recognition accuracy.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
An embodiment of a first aspect of the present disclosure provides a touch detection method, including:
under the condition that the current single-point touch for the touch panel is determined, a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix are obtained;
based on each element in a first sub-matrix in the filtering matrix, respectively compensating each corresponding element in a second sub-matrix in the filtering result matrix to obtain a third sub-matrix, wherein the first sub-matrix and the second sub-matrix contain elements corresponding to the current touch point;
and identifying the third sub-matrix to determine whether the single touch is a finger joint touch.
An embodiment of a second aspect of the present disclosure provides a touch detection device, including:
the first acquisition module is used for acquiring a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix under the condition that the current single-point touch of the touch panel is determined;
the second acquisition module is used for respectively compensating each corresponding element in a second submatrix in the filtering result matrix based on each element in the first submatrix in the filtering matrix to acquire a third submatrix, wherein the first submatrix and the second submatrix contain elements corresponding to the current touch point;
and the determining module is used for identifying the third submatrix to determine whether the single-point touch is finger joint touch or not.
Embodiments of a third aspect of the present disclosure provide a computer device comprising: the touch detection device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the touch detection method according to the embodiment of the first aspect of the disclosure when executing the program.
An embodiment of a fourth aspect of the present disclosure proposes a computer readable storage medium storing a computer program, which when executed by a processor, implements a touch detection method as proposed by an embodiment of the first aspect of the present disclosure.
An embodiment of a fifth aspect of the present disclosure proposes a computer program product comprising a computer program which, when executed by a processor, implements a touch detection method as proposed by an embodiment of the first aspect of the present disclosure.
The touch detection method, the touch detection device, the computer equipment and the storage medium have the following beneficial effects:
in the embodiment of the disclosure, under the condition that the current single-point touch for the touch panel is determined, a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix are firstly obtained, then based on each element in a first sub-matrix in the filtering matrix, each corresponding element in a second sub-matrix in the filtering result matrix is respectively compensated, a third sub-matrix is obtained, and finally the third sub-matrix is identified to determine whether the single-point touch is finger joint touch. Therefore, under the condition of determining single-point touch, the filtering matrix is utilized to compensate the filtering result matrix, and then finger joint touch judgment is carried out based on the compensated matrix, so that noise is restrained, and the accuracy and reliability of touch detection and identification results are ensured.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flow chart of a touch detection method according to an embodiment of the disclosure;
fig. 2 is a flow chart of a touch detection method according to an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a touch detection device according to an embodiment of the disclosure;
fig. 4 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
In the related art, a gradient removal software filtering algorithm is generally used to suppress touch noise. However, due to the limitation of the algorithm, when the algorithm is used, the noise suppression effect is good, but the finger joint judgment algorithm is invalid, and whether finger joint touch is detected cannot be accurately identified. If this algorithm is not used, although the finger joint judgment is effective, noise suppression is ineffective, resulting in relatively large noise.
The disclosure provides a touch monitoring processing method for solving the above problems, under the condition that the current touch is determined to be single-point touch, firstly, a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix are obtained, then, based on the position of the single-point touch, the filtering result matrix is compensated by using the filtering matrix, and then, based on the compensated matrix, finger joint touch judgment is performed, so that noise is suppressed, and accurate and reliable recognition results are ensured.
Touch detection methods, apparatuses, electronic devices, and storage media according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a touch detection method according to an embodiment of the disclosure.
As shown in fig. 1, the touch detection method may include the following steps:
step 101, under the condition that the current single-point touch to the touch panel is determined, a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix are obtained.
The touch panel is an interactive input device, and a user can control the operation of the electronic device only by touching a certain position of the touch screen with a finger or a light pen.
The single-point touch refers to touch and click of a current touch panel operation as a position.
The touch detection matrix is initial touch data obtained when the touch panel is subjected to touch detection. In the touch detection matrix, each element value is a capacitance value obtained by current detection of a corresponding detection point.
In the disclosure, the elements in the touch detection matrix may be filtered by a gradient removal filtering algorithm to obtain a filtering result matrix. And then, based on the filtering result matrix, determining whether the current touch is single-point touch. Alternatively, the disclosure may also determine whether the current touch is a single touch based on other touch detection methods.
The gradient removing filtering algorithm is a filtering method in the touch algorithm, and the method comprises the steps of firstly calculating a touch detection matrix by using the gradient removing algorithm to determine a filtering matrix, and then subtracting the filtering matrix from the touch detection matrix to obtain filtered touch data, namely obtaining a filtering result matrix.
In some possible implementations, the current single touch for the touch panel is determined if each pixel point in the filtering result matrix having a value greater than the first threshold value is located in the same sub-matrix.
The first threshold is a preset touch signal threshold according to the nature and material of the touch panel, for example, the first threshold may be 400, 500, 600, etc., which is not limited in the disclosure.
Wherein, the submatrix is a matrix formed by partial row and column elements in the filtering result matrix. The size of the submatrix can be preset in the touch detection system or can be automatically generated by the touch detection system according to the use data collected by the history. The present disclosure is not limited in this regard.
It can be understood that if the current touch to the touch panel is multi-touch, the detection of finger joint touch is not needed at this time, and the detection of multi-touch gestures is directly performed.
In the disclosure, when the touch detection system detects that each pixel point with a value greater than the first threshold value in the filtering result matrix is located in the same sub-matrix, that is, the pixel points are adjacent, the current touch can be considered as single-point touch. If the pixel points are detected to be positioned in a plurality of non-adjacent areas, the current touch is considered to be multi-touch. The multi-point touch is a behavior of simultaneously performing touch on the touch panel by more than one point (two points, three points or more).
Optionally, under the condition that the current single-point touch to the touch panel is determined, the current touch detection matrix can be firstly obtained, then the forward gradient matrix and the reverse gradient matrix corresponding to the touch detection matrix are respectively determined, then the forward gradient matrix and the reverse gradient matrix are fused to obtain a filter matrix, and finally the touch detection matrix is subjected to filter processing based on the filter matrix to obtain a filter result matrix.
In the forward gradient matrix, the value of each element can be obtained by subtracting the difference value of the adjacent previous element from the value of the corresponding position element in the touch detection matrix. For example, the value of the third element in the forward gradient matrix can be obtained by subtracting the value of the second element from the value of the third element in the touch detection matrix. The first element of each row in the touch detection matrix may be subtracted by a fixed value to obtain the value of the first element in the forward gradient matrix, or the first element in the forward gradient matrix may be directly set to a fixed value. The present disclosure is not limited in this regard.
In the inverse gradient matrix, the value of each element can be obtained by subtracting the difference value of the next element from the value of the corresponding position element in the touch detection matrix. For example, the value of the second element of the inverse gradient matrix may be obtained by subtracting the value of the third element from the value of the second element of the touch detection matrix. The last element of each row in the touch detection matrix may be subtracted by a fixed value to obtain the value of the last element in the inverse gradient matrix, or the last element in the inverse gradient matrix may be directly set to a fixed value. The present disclosure is not limited in this regard.
The fusion of the forward gradient matrix and the reverse gradient matrix can be direct summation of elements at the same positions in the forward gradient matrix and the reverse gradient matrix, or weighted summation of elements at the same positions in the forward gradient matrix and the reverse gradient matrix. The present disclosure is not limited in this regard.
Step 102, based on each element in the first sub-matrix in the filtering matrix, compensating each corresponding element in the second sub-matrix in the filtering result matrix to obtain a third sub-matrix, wherein the first sub-matrix and the second sub-matrix contain elements corresponding to the current touch point.
The first submatrix is a matrix taking the largest element as a center in the filtering matrix. The size parameter of the first submatrix can be determined according to the size of a preset detection area for finger joint touch detection; alternatively, the size parameter of the first sub-matrix may be determined according to the historical touch data for the touch panel. The set value is a first sub-matrix size parameter preset in the touch detection system. For example, the first sub-matrix may be a matrix centered on the largest element, 7*7. The present disclosure is not limited in this regard.
The second submatrix is a matrix formed by partial elements with the same positions as the first submatrix in the filtering matrix in the filtering result matrix. The size of the second sub-matrix is the same as the size of the first sub-matrix.
The compensation of the corresponding elements in the second sub-matrix based on the elements in the first sub-matrix may be to add the elements in the first sub-matrix to the corresponding elements in the second sub-matrix; alternatively, the third sub-matrix may be obtained by weighted summation of the element values in the first sub-matrix and the corresponding element values in the second sub-matrix. The present disclosure is not limited in this regard.
In some possible implementations, since the area formed by the pixel points included in the second sub-matrix is generally larger than the touch area when the finger joint is touched, in order to reduce the calculation amount as much as possible in the case of avoiding the finger joint detection failure caused by the noise suppression result in the disclosure, it may be first determined whether the second sub-matrix may possibly cause the finger joint detection failure. The second sub-matrix is compensated only when it is determined that it may cause failure of the detection of the knuckle. For example, the difference between each second element value and the first element value in the second sub-matrix may be determined first, where the first element value is the maximum element value in the second sub-matrix, and when the ratio of the number of the difference values greater than the third threshold to the number of elements included in the second sub-matrix is greater than the fourth threshold, compensation is performed on each corresponding element in the second sub-matrix based on each element in the first sub-matrix, so as to obtain the third sub-matrix.
Wherein the second element value is the value of each element in the second sub-matrix.
The third threshold is a difference critical value between each element value in the second sub-matrix and the maximum element value in the second sub-matrix, which is preset in the touch detection system, and the values of the third threshold are not limited in the disclosure.
The fourth threshold, which is a proportional threshold preset in the touch detection system and is a proportional threshold for compensating each element of the second sub-matrix, may be 70%, 80%, 85%, and the like, which is not limited in the disclosure.
That is, only when the second sub-matrix is determined to include a larger number of pixels having a larger difference from the maximum pixel value, it can be determined that the noise-suppressed second sub-matrix may cause failure of detection of the finger joints, and thus compensation is required.
Step 103, identifying the third sub-matrix to determine whether the single touch is a finger joint touch.
In the disclosure, after the third sub-matrix is obtained, based on the data in the third sub-matrix, a subsequent judgment of finger joint touch control can be performed.
In the embodiment of the disclosure, under the condition that the current single-point touch for the touch panel is determined, a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix are firstly obtained, then based on each element in a first sub-matrix in the filtering matrix, each corresponding element in a second sub-matrix in the filtering result matrix is respectively compensated, a third sub-matrix is obtained, and finally the third sub-matrix is identified to determine whether the single-point touch is finger joint touch. Therefore, under the condition of determining single-point touch, the filtering matrix is utilized to compensate the filtering result matrix, and then finger joint touch judgment is carried out based on the compensated matrix, so that noise is restrained, and the accuracy and reliability of touch detection and identification results are ensured.
Fig. 2 is a flowchart of a touch detection method according to an embodiment of the disclosure.
As shown in fig. 2, the touch detection method may include the following steps:
in step 201, in case it is determined that the touch is currently a single touch for the touch panel, an output value of a pressure sensor associated with the touch detection matrix is obtained.
It should be noted that, in the case of determining that the current single-point touch is a single-point touch for the touch panel, the current single-point touch may also be a finger joint touch, and since the finger joint touch detection needs to be determined by combining with the pressure value, in the case of determining that the current single-point touch is determined, before determining whether the single-point touch is the finger joint touch, the output value of the pressure sensor associated with the current touch detection matrix may also be obtained.
Step 202, acquiring a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix under the condition that the output value of the pressure sensor is greater than or equal to a second threshold value.
The second threshold may be a preset pressure demarcation value between finger joint touch and single-point normal touch according to the nature and material of the touch panel, which is not limited in the disclosure.
Alternatively, in the case where the output value of the pressure sensor is smaller than the second threshold value, it may be determined as a single touch, and the single touch is directly responded.
In the disclosure, when the output value of the pressure sensor is greater than or equal to the second threshold, it may be considered that the current touch may be a finger joint touch, and at this time, the filtering matrix and the filtering result matrix corresponding to the current touch detection matrix are acquired. And under the condition that the output value of the pressure sensor is smaller than the second threshold value, the current touch can be determined to be single-point touch, and the single-point touch can be responded directly. Therefore, time and resources wasted in executing the finger joint touch detection process when the output value of the pressure sensor is smaller than the second threshold value can be avoided.
And 203, respectively compensating each corresponding element in a second sub-matrix in the filtering result matrix based on each element in the first sub-matrix in the filtering matrix to obtain a third sub-matrix, wherein the first sub-matrix and the second sub-matrix contain elements corresponding to the current touch point.
In step 204, the third sub-matrix is identified to determine whether the single touch is a finger joint touch.
The specific implementation manner of steps 203 to 204 may refer to the detailed descriptions in other embodiments of the disclosure, and will not be described in detail herein.
In the embodiment of the disclosure, under the condition that the current single-point touch to the touch panel is determined, firstly, the output value of the pressure sensor associated with the touch detection matrix is acquired, and then, under the condition that the output value of the pressure sensor is greater than or equal to a second threshold value, the filtering matrix and the filtering result matrix corresponding to the current touch detection matrix are acquired. And then, respectively compensating each corresponding element in the second submatrix in the filtering result matrix based on each element in the first submatrix in the filtering matrix to obtain a third submatrix. And finally, identifying the third submatrix to determine whether the single-point touch is knuckle touch. Therefore, under the condition that single-point touch is determined, and the output value of the pressure sensor is greater than or equal to the second threshold value, the filtering result matrix is compensated by the filtering matrix, and finger joint touch judgment is performed based on the compensated matrix, so that time and resource waste is avoided, and accuracy and reliability of touch detection and identification results are greatly ensured.
In order to achieve the above embodiments, the present disclosure further provides a touch detection device.
Fig. 3 is a schematic structural diagram of a touch detection device according to an embodiment of the disclosure.
As shown in fig. 3, the touch detection apparatus 300 may include:
the first obtaining module 310 is configured to obtain a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix when it is determined that the current touch is a single touch for the touch panel;
the second obtaining module 320 is configured to compensate each corresponding element in the second sub-matrix in the filtering result matrix based on each element in the first sub-matrix in the filtering matrix, to obtain a third sub-matrix, where the first sub-matrix and the second sub-matrix include elements corresponding to the current touch point;
the determining module 330 is configured to identify the third sub-matrix to determine whether the single touch is a finger joint touch.
Optionally, the touch detection device 300 further includes:
a response module (not shown in the figure) for responding to the single touch control in the case that the output value of the pressure sensor is smaller than the second threshold value.
And the fusion module (not shown in the figure) is used for fusing the forward gradient matrix and the reverse gradient matrix to obtain a filter matrix.
And the filtering module (not shown in the figure) is used for filtering the touch detection matrix based on the filtering matrix to obtain a filtering result matrix.
Optionally, the first obtaining module 310 is further configured to:
acquiring an output value of a pressure sensor associated with the touch detection matrix;
acquiring a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix under the condition that the output value of the pressure sensor is larger than or equal to a second threshold value;
and acquiring a current touch detection matrix.
Optionally, the second obtaining module 320 is further configured to:
and under the condition that the ratio of the number of the differences larger than the third threshold value to the number of the elements contained in the second submatrix is larger than the fourth threshold value, respectively compensating each corresponding element in the second submatrix based on each element in the first submatrix to obtain the third submatrix.
Optionally, the determining module 330 is further configured to:
under the condition that all pixel points with values larger than a first threshold value in the filtering result matrix are located in the same sub-matrix, determining that single-point touch is performed on the touch panel currently;
determining a difference value between each second element value and the first element value in the second sub-matrix, wherein the first element value is the maximum element value in the second sub-matrix;
determining a forward gradient matrix and a reverse gradient matrix respectively corresponding to the touch detection matrix;
determining a size parameter of the first sub-matrix according to the set value; or alternatively, the process may be performed,
and determining the size parameter of the first sub-matrix according to the historical touch data aiming at the touch panel.
The functions and specific implementation principles of the foregoing modules in the embodiments of the present disclosure may refer to the foregoing method embodiments, and are not repeated herein.
In the touch detection device of the embodiment of the disclosure, under the condition that the current single-point touch of the touch panel is determined, a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix are firstly obtained, then based on elements in a first submatrix in the filtering matrix, compensation is respectively performed on corresponding elements in a second submatrix in the filtering result matrix, a third submatrix is obtained, and finally the third submatrix is identified to determine whether the single-point touch is finger joint touch. Therefore, under the condition of determining single-point touch, the filtering matrix is utilized to compensate the filtering result matrix, and then finger joint touch judgment is carried out based on the compensated matrix, so that noise is restrained, and the accuracy and reliability of touch detection and identification results are ensured.
In order to achieve the above embodiments, the present disclosure further proposes an electronic device including: the touch detection method according to the foregoing embodiments of the present disclosure is implemented when the processor executes the program.
In order to implement the foregoing embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program, which when executed by a processor, implements a touch detection method as set forth in the foregoing embodiments of the present disclosure.
In order to implement the above-described embodiments, the present disclosure also proposes a computer program product comprising a computer program which, when executed by a processor, implements a charging method as proposed in the above-described embodiments of the present disclosure.
Fig. 4 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present disclosure. The computer device 12 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in FIG. 4, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described in this disclosure.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, the computer device 12 may also communicate with one or more networks such as a local area network (Local Area Network; hereinafter LAN), a wide area network (Wide Area Network; hereinafter WAN) and/or a public network such as the Internet via the network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the methods mentioned in the foregoing embodiments.
According to the technical scheme, under the condition that single-point touch of a touch panel is determined, a filtering matrix and a filtering result matrix corresponding to a current touch detection matrix are firstly obtained, then, based on elements in a first submatrix in the filtering matrix, compensation is conducted on corresponding elements in a second submatrix in the filtering result matrix respectively, a third submatrix is obtained, and finally, the third submatrix is identified to determine whether the single-point touch is finger joint touch. Therefore, under the condition of determining single-point touch, the filtering matrix is utilized to compensate the filtering result matrix, and then finger joint touch judgment is carried out based on the compensated matrix, so that noise is restrained, and the accuracy and reliability of touch detection and identification results are ensured.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium upon which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or part of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, where the program when executed includes one or a combination of the steps of the method embodiments.
Furthermore, each functional unit in the embodiments of the present disclosure may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented as software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (11)

1. The touch detection method is characterized by comprising the following steps of:
under the condition that the current single-point touch for the touch panel is determined, a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix are obtained;
based on each element in a first sub-matrix in the filtering matrix, respectively compensating each corresponding element in a second sub-matrix in the filtering result matrix to obtain a third sub-matrix, wherein the first sub-matrix and the second sub-matrix contain elements corresponding to the current touch point;
and identifying the third sub-matrix to determine whether the single touch is a finger joint touch.
2. The method of claim 1, wherein the determining that the touch is currently a single touch for a touch panel comprises:
and under the condition that all pixel points with values larger than a first threshold value in the filtering result matrix are located in the same sub-matrix, determining that the touch panel is currently subjected to single-point touch.
3. The method of claim 1, wherein the obtaining the filtering matrix and the filtering result matrix corresponding to the current touch detection matrix comprises:
acquiring an output value of a pressure sensor associated with the touch detection matrix;
and under the condition that the output value of the pressure sensor is larger than or equal to a second threshold value, acquiring a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix.
4. The method of claim 3, further comprising, after the obtaining the output values of the pressure sensors associated with the current touch detection matrix:
and responding to the single touch control under the condition that the output value of the pressure sensor is smaller than the second threshold value.
5. The method of claim 1, wherein the compensating each corresponding element in the second sub-matrix of the filtering result matrix based on each element in the first sub-matrix of the filtering matrix to obtain a third sub-matrix includes:
determining a difference value between each second element value and a first element value in the second sub-matrix, wherein the first element value is the maximum element value in the second sub-matrix;
and under the condition that the ratio of the number of the differences larger than the third threshold value to the number of the elements contained in the second submatrix is larger than a fourth threshold value, respectively compensating each corresponding element in the second submatrix based on each element in the first submatrix to obtain a third submatrix.
6. The method of any one of claims 1-5, wherein the obtaining a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix includes:
acquiring the current touch detection matrix;
determining a forward gradient matrix and a reverse gradient matrix which correspond to the touch detection matrix respectively;
fusing the forward gradient matrix and the reverse gradient matrix to obtain the filter matrix;
and filtering the touch detection matrix based on the filtering matrix to obtain the filtering result matrix.
7. The method of any one of claims 1-5, further comprising:
determining the size parameter of the first sub-matrix according to the set value; or alternatively, the process may be performed,
and determining the size parameter of the first sub-matrix according to the historical touch data aiming at the touch panel.
8. The utility model provides a processing apparatus of touch detection which characterized in that includes:
the first acquisition module is used for acquiring a filtering matrix and a filtering result matrix corresponding to the current touch detection matrix under the condition that the current single-point touch of the touch panel is determined;
the second acquisition module is used for respectively compensating each corresponding element in a second submatrix in the filtering result matrix based on each element in the first submatrix in the filtering matrix to acquire a third submatrix, wherein the first submatrix and the second submatrix contain elements corresponding to the current touch point;
and the determining module is used for identifying the third submatrix to determine whether the single-point touch is finger joint touch or not.
9. An electronic device, comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions that are likely to be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202310518511.1A 2023-05-09 2023-05-09 Touch detection method and device, electronic equipment and storage medium Pending CN116578200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310518511.1A CN116578200A (en) 2023-05-09 2023-05-09 Touch detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310518511.1A CN116578200A (en) 2023-05-09 2023-05-09 Touch detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116578200A true CN116578200A (en) 2023-08-11

Family

ID=87533387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310518511.1A Pending CN116578200A (en) 2023-05-09 2023-05-09 Touch detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116578200A (en)

Similar Documents

Publication Publication Date Title
CN109086203B (en) Page detection method and device
US20110193777A1 (en) Multiple pointer ambiguity and occlusion resolution
CN111986159B (en) Electrode defect detection method and device for solar cell and storage medium
JP6543790B2 (en) Signal processing device, input device, signal processing method, and program
CN109927675B (en) Windshield wiper control method, device, equipment and storage medium
JP7225516B2 (en) Data detection method and device, storage medium, touch device
US9405390B2 (en) Object selection for computer display screen
US20180307359A1 (en) Touch determining device and method, and display device
KR20120083693A (en) Touch detection method, recording medium for performing the method and touch detection system
CN116578200A (en) Touch detection method and device, electronic equipment and storage medium
CN109189309A (en) Map nodal operation method and apparatus
CN107943536B (en) Method and device for adjusting threshold, storage medium and electronic equipment
CN113837987B (en) Tongue image acquisition method and device and computer equipment
CN111151002A (en) Touch aiming method and device
CN111054072B (en) Method, device, equipment and storage medium for role model tailing
CN116860565A (en) Abnormality display detection method, abnormality display detection device, electronic device and storage medium
CN115904139A (en) Touch position determination method and device, electronic equipment and storage medium
JPWO2021009949A1 (en) Control method, touch panel device, control program, recording medium
CN102819369B (en) Promote the method for the touch coordinate accuracy in computation of capacitance type multi-point touch-control system
JP6349348B2 (en) Disambiguation of clicks on touch-sensitive input devices
CN116954403A (en) Touch detection compensation method and device, electronic equipment and storage medium
US9519384B2 (en) Control system and method for capacitive touch screen
CN116337219A (en) Method, terminal equipment, device and storage medium for reporting light data
CN107832155B (en) Method and device for replacing algorithm, storage medium and electronic equipment
CN111124847B (en) Website user behavior analysis method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination