CN117555439A - Noise reduction method, device, electronic equipment and computer readable storage medium - Google Patents

Noise reduction method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN117555439A
CN117555439A CN202311362110.8A CN202311362110A CN117555439A CN 117555439 A CN117555439 A CN 117555439A CN 202311362110 A CN202311362110 A CN 202311362110A CN 117555439 A CN117555439 A CN 117555439A
Authority
CN
China
Prior art keywords
noise
sampling
interleaved
target
value
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
CN202311362110.8A
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.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information 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 Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN202311362110.8A priority Critical patent/CN117555439A/en
Publication of CN117555439A publication Critical patent/CN117555439A/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
    • 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/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application provides a noise reduction method, a device, electronic equipment and a computer readable storage medium, and relates to the technical field of touch screens, wherein the method comprises the following steps: determining an interleaved noise region according to touch sampling data, wherein the touch sampling data comprises a plurality of sampling points, each interleaved noise region comprises a plurality of interleaved noise units, each interleaved noise unit comprises a first sampling point and a second sampling point which are adjacent and have sampling value differences within a target difference range, and the number of sampling points spaced between adjacent interleaved noise units in the same interleaved noise region is smaller than the target number; after determining the noise regions, for each of the interleaved noise regions, denoising the interleaved noise region if the density of interleaved noise points in the interleaved noise region is greater than a density threshold, the interleaved noise points including a first sampling point and a second sampling point. According to the technical scheme, the noise reduction effect on touch sampling data can be improved.

Description

Noise reduction method, device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of touch screens, and in particular, to a noise reduction method, a device, an electronic device, and a computer readable storage medium.
Background
Thanks to the technical progress of intelligent electronic screens, touch devices have rapidly become the mainstream of the current smart device market, and touch has also become an important interaction mode in man-machine interaction, and the performance of touch devices is directly related to the operation experience of users.
The complex circuit structure inside the touch screen can generate electromagnetic interference which is difficult to completely remove only by hardware, and the electromagnetic interference can influence touch sampling data of the screen, so that the accuracy of the touch function of the touch screen is indirectly influenced. For this reason, the current electronic device generally adopts a software noise reduction method to filter the noise caused by the electromagnetic interference, for example, a threshold is set in a more common method to filter the touch sampling data. However, the noise reduction effect of this noise reduction method is very limited.
Disclosure of Invention
In view of the foregoing, the present application provides a noise reduction method, apparatus, electronic device, and computer readable storage medium for improving noise reduction effect on touch sampling data.
In order to achieve the above object, in a first aspect, an embodiment of the present application provides a noise reduction method, applied to an electronic device, including: determining an interleaved noise region according to touch sampling data, wherein the touch sampling data comprises a plurality of sampling points, each interleaved noise region comprises a plurality of interleaved noise units, each interleaved noise unit comprises a first sampling point and a second sampling point which are adjacent, the sampling value difference value is in a target difference value range, and the number of sampling points at intervals between adjacent interleaved noise units in the same interleaved noise region is smaller than the target number;
For each interleaved noise region, denoising the interleaved noise region if the density of interleaved noise points in the interleaved noise region is greater than a density threshold, wherein the interleaved noise points comprise the first sampling point and the second sampling point.
In a possible implementation manner of the first aspect, for each interleaved noise region, a standard deviation of sampling values of the first sampling points and a standard deviation of sampling values of the second sampling points in the interleaved noise region are both smaller than a target threshold.
In a possible implementation manner of the first aspect, the target threshold is a product of a sampling point fluctuation ratio and a maximum sampling value of the sampling point.
In a possible implementation manner of the first aspect, the noise reduction of the interleaved noise region includes:
according to the first noise intensity mean value and the target noise reduction intensity corresponding to each first sampling point in the staggered noise area, first target sampling points are screened from each first sampling point in the staggered noise area;
screening a second target sampling point from the second sampling points of the staggered noise area according to a second noise intensity mean value corresponding to the second sampling points in the staggered noise area and the target noise reduction intensity;
And denoising each first target sampling point and each second target sampling point.
In a possible implementation manner of the first aspect, the sampling value range of the first target sampling point is: [ S+BLM-TH, S+DNTH+TH ];
the sampling value range of the second target sampling point is as follows: [ S-DNTH-TH, S-BSM+TH ];
wherein S represents a sampling point reference value, BLM represents a first noise intensity mean value, blm=2×bl/SP, BL represents a sum of offset values of each first sampling point in the interleaved noise region, and SP represents the number of sampling points; DNTH represents the target noise reduction intensity determined according to the target difference range, and TH represents the product of the fluctuation proportion of the sampling point and the maximum sampling value of the sampling point; BSM represents a second noise intensity mean, bsm=2×bs/SP, BS represents a sum of offset values of respective second sampling points in the interleaved noise region, and the offset value of each sampling point is an offset value of a sampling value of the sampling point with respect to the sampling point reference value.
In a possible implementation manner of the first aspect, the noise reduction of each of the first target sampling points and each of the second target sampling points includes:
subtracting the first noise intensity mean from the sampling value of each first target sampling point;
And adding the second noise intensity mean to the sampling value of each second target sampling point.
In a possible implementation manner of the first aspect, the target difference range is: [ B,3B ], B represents the offset value of the allowable noise sampling value of the electronic device relative to the sampling point reference value; the target number is 2.
In a second aspect, an embodiment of the present application provides a noise reduction device, which is applied to an electronic device, and includes: a determining module and a processing module;
the determining module is used for determining an interleaved noise region according to touch sampling data, wherein the touch sampling data comprises a plurality of sampling points, each interleaved noise region comprises a plurality of interleaved noise units, each interleaved noise unit comprises a first sampling point and a second sampling point, adjacent sampling value differences are in a target difference range, and the number of sampling points at intervals between adjacent interleaved noise units in the same interleaved noise region is smaller than the target number;
the processing module is configured to, for each interleaved noise region, reduce noise in the interleaved noise region if a density of interleaved noise points in the interleaved noise region is greater than a density threshold, where the interleaved noise points include the first sampling point and the second sampling point.
In a possible implementation manner of the second aspect, for each interleaved noise region, a standard deviation of sampling values of the first sampling points and a standard deviation of sampling values of the second sampling points in the interleaved noise region are both smaller than a target threshold value.
In a possible implementation manner of the second aspect, the target threshold is a product of a sampling point fluctuation ratio and a maximum sampling value of the sampling point.
In a possible implementation manner of the second aspect, the processing module is specifically configured to:
according to the first noise intensity mean value and the target noise reduction intensity corresponding to each first sampling point in the staggered noise area, first target sampling points are screened from each first sampling point in the staggered noise area;
screening a second target sampling point from the second sampling points of the staggered noise area according to a second noise intensity mean value corresponding to the second sampling points in the staggered noise area and the target noise reduction intensity;
and denoising each first target sampling point and each second target sampling point.
In a possible implementation manner of the second aspect, the sampling value range of the first target sampling point is: [ S+BLM-TH, S+DNTH+TH ];
The sampling value range of the second target sampling point is as follows: [ S-DNTH-TH, S-BSM+TH ];
wherein S represents a sampling point reference value, BLM represents a first noise intensity mean value, blm=2×bl/SP, BL represents a sum of offset values of each first sampling point in the interleaved noise region, and SP represents the number of sampling points; DNTH represents the target noise reduction intensity determined according to the target difference range, and TH represents the product of the fluctuation proportion of the sampling point and the maximum sampling value of the sampling point; BSM represents a second noise intensity mean, bsm=2×bs/SP, BS represents a sum of offset values of respective second sampling points in the interleaved noise region; the offset value of each sampling point is the offset value of the sampling point relative to the sampling point reference value.
In a possible implementation manner of the second aspect, the processing module is specifically configured to:
subtracting the first noise intensity mean from the sampling value of each first target sampling point;
and adding the second noise intensity mean to the sampling value of each second target sampling point.
In a possible implementation manner of the second aspect, the target difference range is: [ B,3B ], B represents the offset value of the allowable noise sampling value of the electronic device relative to the sampling point reference value; the target number is 2.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of the first aspect or any implementation of the first aspect when the computer program is invoked.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first aspect or any implementation of the first aspect.
According to the technical scheme provided by the embodiment of the application, firstly, an interleaved noise area is determined according to touch sampling data, wherein the touch sampling data comprises a plurality of sampling points, each interleaved noise area comprises a plurality of interleaved noise units, each interleaved noise unit comprises a first sampling point and a second sampling point which are adjacent and have sampling value differences within a target difference range, and the number of sampling points at intervals between adjacent interleaved noise units in the same interleaved noise area is smaller than the target number; and then, aiming at each staggered noise area, under the condition that the density of the staggered noise points in the staggered noise area is larger than a density threshold value, denoising the staggered noise area, wherein the staggered noise points comprise a first sampling point and a second sampling point, so that the influence of the staggered noise on the sampling value of the touch screen can be reduced, and the denoising effect on touch sampling data is improved.
Drawings
Fig. 1 is a schematic flow chart of a noise reduction method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of determining an interleaved noise region according to an embodiment of the present application;
fig. 3 is a schematic diagram of an area to be identified according to an embodiment of the present application;
fig. 4 is a schematic flow chart of denoising an interleaved noise region according to an embodiment of the present application;
fig. 5 is a schematic diagram of partial touch sampling data before noise reduction at a certain moment in a non-touch state according to an embodiment of the present application;
fig. 6 is a schematic diagram of a result of noise reduction of local touch sampling data at a certain moment in a touch-free state according to an embodiment of the present application;
fig. 7 is a schematic diagram of a touch screen provided in the embodiment of the present application before noise reduction of a local sampling value of the screen at a certain moment in a 5-point touch state;
fig. 8 is a schematic diagram of a result of noise reduction of a local sampling value of a screen at a certain moment in a 5-point touch state of the touch screen according to the embodiment of the present application;
fig. 9 is a schematic structural diagram of a noise reduction device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application. The terminology used in the description of the embodiments of the application is for the purpose of describing particular embodiments of the application only and is not intended to be limiting of the application. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
The noise reduction method provided by the embodiment of the application can be applied to a touch screen. Taking a capacitive touch screen as an example, the sensing principle of the capacitive touch screen is to apply a voltage to a touch sensing area to form a fixed electric field, when a user approaches or touches the capacitive touch screen with a finger or a conductive object, the numerical change of an electric signal in the capacitive touch screen is caused, and the recognition system can generate touch sampling data according to the numerical change of the electric signal and analyze the data to realize positioning and calculation of a touch point in the touch screen.
The capacitive touch panel has the advantages of high sensitivity and long service life, but is also easily affected by noise generated by electromagnetic interference in the touch screen, wherein the staggered noise is widely distributed on the touch screen and generally appears in the whole sampling data, and because the staggered noise is embodied in the way that sampling values of sampling points in a whole row or a whole column on the touch screen are staggered in numerical value, the characteristics of the staggered noise are similar to those of the touch points, so that the risk of false screen identification is greatly improved. The current noise reduction method still keeps larger noise after the touch sampling data is reduced, and if the noise reduction strength is increased uniformly, part of touch information is filtered out, so that the user experience is reduced.
In view of this, the embodiment of the application provides a noise reduction method for improving the noise reduction effect on touch sampling data.
In order to facilitate understanding of the technical solutions in the embodiments of the present application, the following first explains some terms related to the embodiments of the present application:
reference value: the method is a default value of a sampling point of the screen in an ideal non-touch state, and the reference values of different types of equipment have certain difference. 128 is a more typical reference value.
Offset value: the absolute value of the difference between the sampled value and the reference value is called an offset value, the sampled value is larger than the reference value and is forward offset, and the sampled value is smaller than the reference value and is reverse offset. Factors such as touch area and touch strength have influence on the offset value. The sampling value can fluctuate around the reference value according to factors such as touch force and touch area.
Allowable noise range: the noise range which can be eliminated by the recognition program is a sampling value range which can not be misjudged as touch information when the touch electronic equipment judges according to the input touch sampling data (or called a data matrix). For example, the reference value of the sampling value is S, and in the touch state, a change of B or more is brought to the sampling value, where B is a positive integer and is smaller than S. Taking the reference value S as 128 and the reference value B as 10 as an example, the touch electronic device identification system can identify the sampling point with the offset value greater than the reference value B as a touch related point, and if the error of the offset value within the reference value B does not affect the identification, the allowable noise range is [ S-B, s+b ], that is [118, 138].
Interleaving noise: the basic unit of the interleaving noise (hereinafter referred to as interleaving noise unit) includes two adjacent sampling points with large sampling difference values (i.e., interleaving noise points); the interleaving noise typically consists of several such interleaving noise elements. The main types of the staggered noise units comprise left and right staggered noise units and up and down staggered noise units, wherein the left and right staggered noise units comprise two staggered noise points adjacent to each other in the row direction, and the up and down staggered noise units comprise two staggered noise points adjacent to each other in the column direction.
By using the reference value, the offset value and the allowable noise range in the touch sampling data, the screening of the staggered noise points of the touch sampling data can be realized, and noise reduction processing is further performed.
In a specific implementation, this may be implemented according to the method shown in fig. 1. Fig. 1 is a schematic flow chart of a noise reduction method provided in an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
step S110, determining an interleaving noise area according to touch sampling data.
The touch electronic equipment can comprise an identification system which is used for identifying whether the sampling value of the sampling point in the touch screen changes or not and generating touch sampling data according to the sampling value and the sampling position of the sampling point of which the sampling value changes.
As shown in fig. 2, step S110 may include:
step S111, acquiring touch sampling data of a touch screen.
The touch sampled data may include a plurality of sampling points. For example, the touch screen may include x×y sampling points, that is, a total of Y rows of sampling points, where each row has X sampling points, and the electrical signal of the touch screen is sampled, and the generated touch sampling data includes sampling values and sampling positions of the x×y sampling points.
In some embodiments, the acquired touch sampling data is one-dimensional data, and at this time, the one-dimensional sampling data may be converted into a two-dimensional data matrix, so that the two-dimensional data matrix after conversion corresponds to a sampling position of the touch screen.
The interleaving noise is embodied in the touch screen and is distributed in the form of stripes, for example, 1080×720, and if the stripe interleaving noise is in the left-right direction, the interleaving noise points are interleaved in each row. If the stripe-shaped band interlacing noise is in the up-down direction, the interlacing noise points are interlaced up-down in each column.
After the touch sampling data of the touch screen is obtained, the touch related points can be determined according to the change of sampling values of sampling points in the touch sampling data relative to the reference value. If the sampling value of the sampling point is not in the allowable noise range, determining the sampling point as a touch related point, wherein the change of the sampling value of the touch related point may be caused by touch operation or may be caused by staggered noise. And then determining the area to be identified according to the position of the touch related point.
Step S112, dividing the staggered noise units.
The region to be identified can be divided into a plurality of interleaving noise units, each interleaving noise unit comprises a first sampling point and a second sampling point which are adjacent and have sampling value differences in a target difference range, wherein the sampling value differences are absolute values of sampling value differences between the sampling values of the first sampling point and the second sampling point. The first sampling point may be a larger value sampling point in the belonging interleaved noise unit, and the second sampling point may be a smaller value sampling point in the belonging interleaved noise unit; of course, the sampling points referred to by the two may also be interchanged, and for convenience of explanation, the first sampling point is taken as a larger value sampling point, and the second sampling point is taken as a smaller value sampling point for illustration.
The target difference range may be: and [ B,3B ], wherein B represents the offset value of the allowable noise sampling value of the electronic device relative to the sampling point reference value, B can be preset, and B of different electronic devices can be different and can be set by a user, and the application is not particularly limited. The range of the target difference value can be determined according to actual needs, for example, the range of the target difference value can also be [ B,4B ].
Fig. 3 is a schematic diagram of an area to be identified according to an embodiment of the present application, and as shown in fig. 3, each square may represent a sampling point.
Taking a row of sampling points as an example, sampling value differences of adjacent odd-numbered columns and even-numbered columns of sampling points can be calculated respectively, and whether the differences are in a target difference range or not is judged.
Illustratively, referring to fig. 3, taking the first row of sampling points as an example, the sampling value difference between the sampling points 11 and 12 may be calculated, and in the case where the difference is within the target difference range, the sampling points 11 and 12 are divided into one interleaving noise unit P11. Sample points 13 and 14 are then calculated, and so on, dividing a row of sample points into a plurality of interleaved noise units. In the first row of sampling points, every two adjacent sampling points can be divided into an interleaved noise unit, wherein sampling points 11, 13, 15, 17 and 19 are first sampling points (represented by dark colors in the figure), and sampling points 12, 14, 16, 18 and 110 are second sampling points (represented by white colors in the figure), and the first sampling points and the second sampling points are interleaved.
The manner in which the interleaved noise units are determined in the column direction is similar and will not be described in detail here.
For the case where the area to be identified includes a plurality of rows of sampling points, referring to fig. 3, the sampling points framed in the area A1 are arranged consecutively. In some embodiments, the interleaved noise units may be first divided for each sample point in the row direction, and then divided for each sample point in the column direction if the sample value differences between adjacent sample points in the row direction are not within the target difference range. Of course, the interleaved noise units may be divided for each sampling point in the column direction, and if the sampling value differences of the adjacent sampling points in the column direction are not within the target difference range, the interleaved noise units may be divided for each sampling point in the row direction.
Taking the example of dividing the interleaved noise units into the sampling points in the row direction, if the interleaved noise units can be determined in the row direction, the sampling points which are not divided into the interleaved noise units can be continuously divided into the interleaved noise units in the column direction for the remaining sampling points; considering that the types of the interleaving noise of the sampling points in the screen are mostly consistent, the remaining sampling points can not be divided into interleaving noise units in the column direction, so that the complexity of calculation is reduced, the processing speed of dividing the interleaving noise units is improved, that is, the types of the finally divided interleaving noise units are consistent, and the following is also taken as an example for illustration.
In other embodiments, taking the sample point 11 as an example, the sample point 11 may calculate the difference between the sample value of the sample point 11 and the sample value of the sample point 12 adjacent to the sample point 11 and the difference between the sample value of the sample point 11 and the sample value of the sample point 21 adjacent to the sample point respectively, and determine whether the two difference values are within the target difference value range according to the obtained two difference values.
When the difference value of the two sampling values is not in the target difference value range, the sampling point 11 does not belong to any interleaving noise unit. The difference in the sampled values of the sampling points 13 adjacent to the sampling point 12 in the row direction thereof can then be recalculated to determine whether there is a difference in the sampled values within the target difference range. If the sampling value difference value in the row direction is in the target difference value range, the type of the interleaving noise can be determined to be left-right interleaving, and the interleaving noise units are divided for the subsequent sampling points in the row direction; if the difference value of the sampling value in the row direction is not in the target difference value range, the difference value of the sampling point 22 adjacent to the sampling point 12 in the column direction can be recalculated, if the difference value of the sampling value in the column direction is in the target difference value range, the type of the interleaving noise can be determined as up-down interleaving, and the subsequent sampling points are divided into interleaving noise units in the column direction.
Illustratively, when the sampling value difference between the sampling points 12 and 13 is within the target difference range, the sampling points 12 and 13 are divided into the same interleaved noise unit. Then, whether the adjacent sampling points in the row meet the target difference range, such as the sampling point 14 and the sampling point 15, is sequentially judged, so that the sampling points in the row are divided into a plurality of staggered noise units. And judging whether sampling points capable of dividing the staggered noise units exist in the sampling points of the other rows or not, so that the sampling points in the area to be identified are divided into a plurality of staggered noise units in the row direction.
When one of the two sampling value differences is in the target difference range, for example, the sampling value differences of the sampling points 11 and 12 are not in the target difference range, and the sampling value differences of the sampling points 11 and 21 are in the target difference range, the sampling points 11 and 21 may be divided into an interleaved noise unit, and the type of interleaved noise is up-down interleaved. Then, it is determined whether the difference between the sampling values of the sampling points 31 and 41 is within the target difference range. And so on, so as to divide each sampling point in the area to be identified into a plurality of staggered noise units in the column direction.
When the difference value of the two sampling values is in the target difference value range, the row direction or the column direction can be arbitrarily selected to divide the staggered noise units for each sampling point in the area to be identified.
For convenience of explanation, the following will be exemplified by taking the type of interleaving noise as left-right interleaving.
Considering that there is still one sample point remaining after dividing the interleaved noise unit, referring to fig. 3, the interleaved noise unit P74 includes a second sample point 78 and a first sample point 79, and the sample point 710 is the last sample point of the row and is adjacent to the first sample point 79. In some embodiments, to increase the processing speed of dividing the interleaved noise units, the sampling points 710 may be filtered directly. By such an embodiment, one sample point can be made to belong to only one interleaved noise unit. In other embodiments, the sampling value difference between the sampling points 710 and 79 may be calculated, if the sampling value difference meets the target difference range, the sampling points 79 and 710 may be also divided into an interleaved noise unit P75, and at this time, the sampling points 79 respectively belong to the interleaved noise unit P74 and the interleaved noise unit P75, so that the reliability of the method may be improved.
By the embodiment, the sampling points of the area to be identified can be divided into a plurality of interleaving noise units, so that the interleaving noise area can be conveniently determined later.
Step S113, determining an interleaved noise region.
After the division of the interleaved noise units is completed, the interleaved noise region may be determined so that a noise reduction operation is performed on the interleaved noise region later.
As an alternative implementation, when determining the noise region, the interleaved noise units that are arranged in succession may be divided directly into one interleaved noise region. As shown in fig. 3, each interleaved noise unit in the region H is continuously arranged (the number of sampling points at intervals between adjacent interleaved noise units is zero), so that the interleaved noise units in the region H can be directly divided into the same noise region, and the range of the interleaved noise region is the region H, so that the processing speed of the noise reduction method can be improved.
In some embodiments, after determining one of the interleaved noise regions, the interleaved noise region may be directly noise reduced and then the other interleaved noise regions may be determined. In other embodiments, each of the interleaved noise regions may be denoised after all of the interleaved noise regions are determined. The specific execution sequence may be selected according to actual needs, which is not particularly limited in the present application.
In order to improve reliability and accuracy of the determination result of the interleaved noise region, as another optional implementation manner, in this embodiment of the present application, the region to be identified may be divided into a plurality of interleaved noise regions according to the characteristic that, in the same interleaved noise region, the difference value of the sampling values between the first sampling point and the second sampling point in each interleaved noise unit is similar, different interleaved noise regions are independent from each other, and noise intensity and distribution between the interleaved noise regions have no correlation. For each interleaved noise region, the standard deviation of the sampling values of the first sampling points and the standard deviation of the sampling values of the second sampling points in the interleaved noise region are smaller than the target threshold. Wherein the target threshold may be set as desired.
When the standard deviation of the sampling values of the first sampling points is calculated, the sampling values of the first sampling points (larger sampling points in the interleaving noise units) of each interleaving noise unit can be obtained first, then the average value of the sampling values of all the first sampling points is calculated, the sampling value of each first sampling point is subtracted from the average value, the square of the difference is calculated, the squares of all the differences are added and divided by the number of the first sampling points to obtain the variance, and square root operation is carried out on the square difference to obtain the standard deviation of the sampling values of the first sampling points. The method for calculating the standard deviation of the sampling value of the second sampling point is similar, and is not described in detail herein.
In some embodiments, to improve the reliability of the method, the target threshold may be set to be the product of the fluctuation ratio of the sampling point and the maximum sampling value of the sampling point, where the value of the fluctuation ratio of the sampling point depends on the stability and accuracy of the touch screen signal, alternatively, the value may be between 0% and 5% when the fluctuation ratio of the sampling point is set, and the worse the stability of the touch screen signal, the larger the set value of the fluctuation ratio of the sampling point.
Specifically, when determining the interleaved noise region, an interleaved noise unit (for example, the first interleaved noise unit P11) may be selected as an interleaved noise region, then it is determined whether the number of sampling points spaced between other interleaved noise units and the interleaved noise unit in the interleaved noise region is smaller than the target number, if so, the standard deviation of sampling values of each first sampling point and the standard deviation of sampling values of each second sampling point in the interleaved noise unit and the interleaved noise region are calculated, and if both standard deviations of sampling values are smaller than the target threshold, the interleaved noise unit is divided into the interleaved noise region. For other interleaved noise units that are not partitioned into the interleaved noise region, it may be determined whether the interleaved noise units may be partitioned into one or more interleaved noise regions in a similar manner as described above.
The target number may be set according to actual needs, and in consideration of the situation that the target number is set to be larger, although more interleaved noise points (including the first sampling point and the second sampling point) may be included, the duty ratio of non-interleaved noise points included in the range of the interleaved noise region in the region to be identified is also increased, so that the accuracy of the method for dividing the interleaved noise region is reduced. In some embodiments, the target number may be set to 2. For example, referring to fig. 3, the number of sampling points between the interleaved noise unit P73 formed by the first sampling points 75 and the second sampling points 76 and the adjacent interleaved noise unit P74 is 1, and if the standard deviation of the sampling values of each first sampling point and each second sampling point is smaller than the target threshold, the interleaved noise unit P73 and the interleaved noise unit P74 belong to the same noise region; if the number of sampling points of the interval between the interleaved noise units P71 and P41 is 2, the interleaved noise units P41 and P71 do not belong to the same interleaved noise region.
In order to reduce the computational complexity, in this embodiment of the present application, after the interleaving noise unit of each row is divided into a plurality of interleaving noise regions, for each interleaving noise region, it is determined whether there is an interleaving noise region with the number of sampling points spaced from the interleaving noise region being less than 2 in the column direction, and if there is an interleaving noise region, the standard deviation of sampling values of each first sampling point and the standard deviation of sampling values of each second sampling point in adjacent interleaving noise regions are calculated. In the case where both sample value standard deviations are smaller than the target threshold value, the interleaved noise region and the interleaved noise region adjacent thereto are merged into one interleaved noise region.
In fig. 3, by taking an example that each of the interleaved noise units in the first row belongs to a first interleaved noise region, each of the interleaved noise units in the second row belongs to a second interleaved noise region, each of the interleaved noise units in the third row belongs to a third interleaved noise region, each of the interleaved noise units in the fourth row belongs to a fourth interleaved noise region, each of the interleaved noise units in the seventh row can be divided into a fifth interleaved noise region and a sixth interleaved noise region, and the maximum number of sampling points of an interval between the interleaved noise units in the first interleaved noise region and the interleaved noise units in the second interleaved noise region in the column direction is less than 2, a standard deviation of sampling values of each of the first sampling points and a standard deviation of sampling values of each of the second sampling points in the first interleaved noise region and the second interleaved noise region are calculated.
And under the condition that the standard deviation of the two sampling values is smaller than the target threshold value, merging the second interleaving noise area into the first interleaving noise area, wherein the first interleaving noise area comprises interleaving noise units in the original first interleaving noise area and the second interleaving noise area. And then judging a third interleaving noise area, wherein sampling points of intervals between interleaving noise units in the area and the first interleaving noise area in the column direction are smaller than 2, and calculating the standard deviation of sampling values of all first sampling points and the standard deviation of sampling values of all second sampling points in the first interleaving noise area and the third interleaving noise area. If both sample value standard deviations are smaller than the target threshold, the third interleaved noise region may be merged into the first interleaved noise region.
And then judging the adjacent fourth interleaved noise region in a similar way to the third interleaved noise region, and combining the fourth interleaved noise region into the first interleaved noise region on the assumption that the standard deviation of two sampling values corresponding to the fourth interleaved noise region is smaller than a target threshold value.
And then, continuously judging the fifth interleaving noise area and the sixth interleaving noise area, wherein the number of sampling points of intervals between interleaving noise units in the two areas and interleaving noise units in the first interleaving noise area is more than or equal to 2, so as to determine that the fifth interleaving noise area and the sixth interleaving noise area do not belong to the first interleaving noise area. Then, after the number of sampling points of the interval between the fifth interleaved noise region and the sixth interleaved noise region is determined to be less than 2, the standard deviation of sampling values of each first sampling point and the standard deviation of sampling values of each second sampling point in the two regions are calculated, and if the standard deviation of the two sampling values is not equal to the target threshold value, the two regions do not belong to the same interleaved noise region. At this time, the region to be identified includes three interleaved noise regions, which are a first interleaved noise region, a fifth interleaved noise region, and a sixth interleaved noise region. The three regions may be regarded as the finally determined interleaved noise region, or the smallest circumscribed rectangular region corresponding to each of the three regions may be regarded as the finally determined interleaved noise region, for example, the smallest circumscribed rectangular region of the first interleaved noise region A1 is a region H, which is one finally determined interleaved noise region.
It will be appreciated that after each of the interleaved noise regions is determined, there may be some interleaved noise regions that include too few interleaved noise units, and in order to increase the computation speed of the noise reduction method, the interleaved noise regions having an interleaved noise unit number less than the interleaved noise unit threshold may be filtered out. The threshold value of the interleaving noise unit may be set according to actual needs, which is not particularly limited in this application.
Step S120, for each of the interleaved noise regions, performing noise reduction on the interleaved noise region when the density of the interleaved noise points in the interleaved noise region is greater than the density threshold.
After determining the interleaved noise regions, for each interleaved noise region, the density of interleaved noise points in the interleaved noise region may be calculated and the interleaved noise point density compared to a density threshold. In the case that the density of the interleaved noise points in the interleaved noise region is greater than the density threshold, noise reduction is performed on the interleaved noise region.
In the region to be identified, the 14 interleaved noise units divided by the first four rows of sampling points all belong to the same interleaved noise region, and referring to fig. 3, the range of the interleaved noise region is a region H, which is hereinafter referred to as an interleaved noise region H for convenience of description. The interleaved noise region H includes 40 samples, including 28 interleaved noise points and 12 non-interleaved noise points.
After the number of sampling points and the number of interleaving noise points in the interleaving noise region are obtained, the density of interleaving noise points in each region may be calculated according to a calculation formula npd=np/sp×100%, where NPD represents the density of interleaving noise points in the interleaving noise region, NP represents the number of interleaving noise points in the interleaving noise region, and SP represents the number of sampling points in the interleaving noise region. Taking the interleaved noise region H as an example, according to the above calculation formula, the interleaved noise point density npd=28/40×100% =70% of the interleaved noise region H.
The interleaved noise region H is then compared to a density threshold. The setting size of the density threshold influences the noise reduction strength (or noise reduction sensitivity) of the noise reduction method, and the value range of the density threshold is [0%,100% ]. For example, when the density of the interleaved noise points in the interleaved noise region is lower than the density threshold, it is determined that the interleaved noise does not affect the normal recognition of the touch point, so that noise reduction is not required. As the density threshold increases, the number of interleaved noise regions in which the density of interleaved points in the interleaved noise region is greater than or equal to the density threshold gradually decreases, so that the number of interleaved noise regions that subsequently need to be noise reduced decreases, and the corresponding noise reduction intensity decreases.
It should be noted that, the density threshold may be obtained from the touch electronic device, and the noise reduction strength required by different types of touch electronic devices may be different. The density threshold can also be set according to actual needs to improve the applicability of the method.
Taking the case that the density threshold is set to 50%, the density of the interleaved noise points in the interleaved noise region H is 70% and is greater than the density threshold, so that noise reduction can be performed on the interleaved noise region H.
In the specific noise reduction, as an alternative implementation manner, in the interleaved noise region, a certain value (such as an offset average value of each first sampling point) may be subtracted from a sampling value of each first sampling point, and a certain value (such as an offset average value of each second sampling point) may be added to a sampling value of each second sampling point, so as to implement noise reduction of the interleaved noise region.
In order to improve the accuracy of the noise reduction result, as an alternative implementation, noise reduction may be performed in the manner shown in fig. 4. As shown in fig. 4, the method may include the steps of:
step S121, according to the first noise intensity mean value and the target noise reduction intensity corresponding to each first sampling point in the interleaved noise region, the first target sampling point is selected from each first sampling point in the interleaved noise region.
First, the sum of the offset values of the first sampling points of all the interleaved noise points in the interleaved noise region H may be counted, and the first noise intensity average value may be calculated according to the formula blm=2×bl/SP. Wherein BLM represents a first noise intensity average value, BL represents a sum of offset values of first sampling points in the interleaved noise region H, and the offset value of each sampling point is an offset value of a sampling value of the sampling point with respect to the sampling point reference value S.
Then, a first target sampling point may be selected from the first sampling points of the interleaved noise region H according to the first noise intensity mean BLM. Optionally, the sampling value range of the first target sampling point may be: [ S+BLM-TH, S+DNTH+TH ]. The DNTH represents a target noise reduction intensity, and the value can be determined according to the target difference range, and can be any value in the target difference range, specifically, can be determined according to the noise reduction intensity requirement; TH represents the product of the fluctuation proportion of the sampling point and the maximum sampling value of the sampling point, and correspondingly, the first target sampling point with the sampling value in the range of [ S+BLM-TH, S+DNTH+TH ] can be screened out from the first sampling points.
It should be noted that the foregoing is merely an example, and is not intended to limit the present application. In some embodiments, the first noise intensity mean BLM may also be a mean of offset values of the first sampling points; the first noise intensity mean BLM may be two times the ratio of the sampling value mean/sampling value of each first sampling point to the sampling point number SP, and at this time, the sampling value range of the first target sampling point may be [ BLM-TH, dnth+th ]. In addition, in some embodiments, TH may not be considered in determining the sampling value range of the first target sampling point. The lower second noise intensity mean is similar to the sample value range of the second target sample point.
Step S122, screening the second target sampling points from the second sampling points of the interleaved noise region according to the second noise intensity mean value and the target noise reduction intensity corresponding to the second sampling points in the interleaved noise region.
Similar to the first noise strength threshold, the sum of the second sample point offset values of all the interleaved noise points in the interleaved noise region H may be counted first. And calculating a second noise intensity mean according to a calculation formula of bsm=2×bs/SP, wherein BSM represents the second noise intensity mean and BS represents the sum of offset values of the second sampling points in the interleaved noise region.
Then, a second target sampling point may be screened from the second sampling points of the interleaved noise region according to the second noise intensity mean BSM. The sampling value range of the second target sampling point may be: [ S-DNTH-TH, S-BSM+TH ]. Correspondingly, second target sampling points with sampling values in [ S-DNTH-TH, S-BSM+TH ] can be screened from the second sampling points.
Step S123, noise reduction is performed on each first target sampling point and each second target sampling point.
Specifically, the sampling value of each first target sampling point may be subtracted by the first noise intensity average value, and the sampling value of each second target sampling point may be added by the second noise intensity average value, so as to implement the noise reduction process.
Through the embodiment, the target interlacing areas with the interlacing noise point density larger than or equal to the density threshold value in each interlacing noise area can be subjected to noise reduction, so that the influence of the interlacing noise generated by electromagnetic interference on a sampling value of the touch screen can be reduced, and the risk that the touch screen recognizes the interlacing noise as touch can be reduced.
It can be understood that the steps in the noise reduction method can change the sequence without affecting the result.
The following exemplifies several specific examples, illustrating the noise reduction results of the present scheme.
Example 1: fig. 5 is a schematic diagram of partial touch sampling data before noise reduction at a certain moment in a touch-free state according to an embodiment of the present application. Fig. 6 is a schematic diagram of a result of noise reduction of touch sampling data locally at a certain moment in a touch-free state according to an embodiment of the present application.
As shown in fig. 5 and fig. 6, the single-row distributed interlacing noise in fig. 5 is obviously reduced in fig. 6, so that the interference influence of the interlacing noise close to the touch signal is reduced, the recognition degree of the touch signal is improved, and the occurrence of the situation that the interlacing noise is mistakenly recognized as touch is reduced.
Example 2: fig. 7 is a schematic diagram of a touch screen provided in the embodiment of the present application before noise reduction of a local sampling value of the screen at a certain moment in a 5-point touch state. Fig. 8 is a schematic diagram of a result of noise reduction of a local sampling value of a screen at a certain moment in a 5-point touch state of the touch screen according to the embodiment of the present application.
As shown in fig. 7 and 8, by screening the first target sampling point and the second target sampling point, the noise reduction method provided by the embodiment of the application can reduce noise in the staggered noise area, retain normal sampling point signals generated by touch operation, and automatically ignore small-amplitude noise points which do not interfere with recognition, so that better noise reduction effect is achieved, and user experience can be improved.
Those skilled in the art will appreciate that the above embodiments are exemplary and not intended to limit the present application. The order of execution of one or more of the above steps may be modified, if possible, or may be combined selectively to yield one or more other embodiments. Those skilled in the art can select any combination from the above steps according to the need, and all the steps do not depart from the spirit of the scheme of the present application.
According to the noise reduction method provided by the embodiment of the application, firstly, an interleaved noise area is determined according to touch sampling data, wherein the touch sampling data comprises a plurality of sampling points, each interleaved noise area comprises a plurality of interleaved noise units, each interleaved noise unit comprises a first sampling point and a second sampling point which are adjacent and have sampling value differences within a target difference range, and the number of sampling points at intervals between adjacent interleaved noise units in the same interleaved noise area is smaller than the target number; then, aiming at each staggered noise area, under the condition that the density of the staggered noise points in the staggered noise area is larger than a density threshold value, the staggered noise area is noise reduced, wherein the staggered noise points comprise a first sampling point and a second sampling point, so that the influence of the staggered noise on a sampling value of a touch screen can be reduced, the noise reduction effect on touch sampling data is improved, the risk that the touch screen mistakenly recognizes the staggered noise as touch is reduced, and the use experience of a user is improved. In addition, the method can adjust the noise reduction intensity of the touch sampling data by setting parameters such as a density threshold value and the like, so that the method can be suitable for electronic equipment with different operation performances, and the applicability and the practicability of the noise reduction method are improved.
Based on the same inventive concept, as an implementation of the above method, the embodiment of the present application provides a noise reduction device, where the embodiment of the device corresponds to the embodiment of the foregoing method, and for convenience of reading, the embodiment of the present application does not describe details in the embodiment of the foregoing method one by one, but it should be clear that the device in the embodiment can correspondingly implement all the details in the embodiment of the foregoing method.
Fig. 9 is a schematic structural diagram of a noise reduction device provided in an embodiment of the present application, and as shown in fig. 9, the device provided in this embodiment may include: a determination module 110 and a processing module 120.
The determining module 110 is configured to determine an interleaved noise region according to touch sampling data, where the touch sampling data includes a plurality of sampling points, each interleaved noise region includes a plurality of interleaved noise units, each interleaved noise unit includes a first sampling point and a second sampling point adjacent to each other, where a sampling value difference is within a target difference range, and the number of sampling points spaced between adjacent interleaved noise units in the same interleaved noise region is less than the target number.
The processing module 120 is configured to, for each of the interleaved noise regions, reduce noise in the interleaved noise region if a density of interleaved noise points in the interleaved noise region is greater than a density threshold, where the interleaved noise points include a first sampling point and a second sampling point.
As an optional implementation manner of this embodiment of the present application, for each interleaved noise region, a standard deviation of a sampling value of each first sampling point and a standard deviation of a sampling value of each second sampling point in the interleaved noise region are both smaller than a target threshold.
As an alternative implementation manner of the embodiment of the present application, the target threshold is a product of the fluctuation proportion of the sampling point and the maximum sampling value of the sampling point.
As an alternative implementation manner of the embodiment of the present application, the processing module 120 is specifically configured to:
according to the first noise intensity mean value and the target noise reduction intensity corresponding to each first sampling point in the staggered noise area, selecting a first target sampling point from each first sampling point in the staggered noise area;
screening second target sampling points from the second sampling points of the staggered noise area according to second noise intensity mean values and target noise reduction intensities corresponding to the second sampling points in the staggered noise area;
and denoising each first target sampling point and each second target sampling point.
As an optional implementation manner of the embodiment of the present application, the sampling value range of the first target sampling point is: [ S+BLM-TH, S+DNTH+TH ];
the sampling value range of the second target sampling point is as follows: [ S-DNTH-TH, S-BSM+TH ];
Wherein S represents a sampling point reference value, BLM represents a first noise intensity mean value, blm=2×bl/SP, BL represents a sum of offset values of each first sampling point in the interleaved noise region, and SP represents the number of sampling points; DNTH represents the target noise reduction intensity determined according to the target difference range, and TH represents the product of the fluctuation proportion of the sampling point and the maximum sampling value of the sampling point; BSM represents a second noise intensity mean, bsm=2×bs/SP, BS represents a sum of offset values of respective second sampling points in the interleaved noise region; the offset value of each sampling point is an offset value of the sampling point relative to the sampling point reference value.
As an alternative implementation manner of the embodiment of the present application, the processing module 120 is specifically configured to:
subtracting the first noise intensity mean value from the sampling value of each first target sampling point;
and adding the sampling value of each second target sampling point to the second noise intensity mean value.
As an optional implementation manner of the embodiment of the present application, the target difference range is: [ B,3B ], B represents the offset value of the allowable noise sampling value of the electronic device relative to the sampling point reference value; the target number is 2.
The noise reduction device provided in this embodiment may perform the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Based on the same inventive concept, the embodiment of the application also provides electronic equipment. Fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 10, the electronic device provided in the embodiment may include: a memory 210 and a processor 220, the memory 210 for storing a computer program; the processor 220 is configured to perform the method described in the method embodiments above when the computer program is invoked.
The electronic device provided in this embodiment may execute the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method described in the above method embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, hard Disk, or magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium may include: ROM or random access memory RAM, magnetic or optical disk, etc.
The naming or numbering of the steps in the present application does not mean that the steps in the method flow must be executed according to the time/logic sequence indicated by the naming or numbering, and the execution sequence of the steps in the flow that are named or numbered may be changed according to the technical purpose to be achieved, so long as the same or similar technical effects can be achieved.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/device and method may be implemented in other manners. For example, the apparatus/device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
In the description of the present application, unless otherwise indicated, "/" means that the associated object is an "or" relationship, e.g., a/B may represent a or B; the term "and/or" in this application is merely an association relation describing an association object, and means that three kinds of relations may exist, for example, a and/or B may mean: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural.
Also, in the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of the following" or similar expressions thereof, means any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A noise reduction method applied to an electronic device, comprising:
determining an interleaved noise region according to touch sampling data, wherein the touch sampling data comprises a plurality of sampling points, each interleaved noise region comprises a plurality of interleaved noise units, each interleaved noise unit comprises a first sampling point and a second sampling point which are adjacent, the sampling value difference value is in a target difference value range, and the number of sampling points at intervals between adjacent interleaved noise units in the same interleaved noise region is smaller than the target number;
for each interleaved noise region, denoising the interleaved noise region if the density of interleaved noise points in the interleaved noise region is greater than a density threshold, wherein the interleaved noise points comprise the first sampling point and the second sampling point.
2. The method of claim 1, wherein for each interleaved noise region, the standard deviation of the sample values for each of the first sample points and the standard deviation of the sample values for each of the second sample points in the interleaved noise region are less than a target threshold.
3. The method of claim 2, wherein the target threshold is a product of a sample point fluctuation ratio and a maximum sample value of the sample point.
4. The method of claim 1, wherein denoising the interleaved noise region comprises:
according to the first noise intensity mean value and the target noise reduction intensity corresponding to each first sampling point in the staggered noise area, first target sampling points are screened from each first sampling point in the staggered noise area;
screening a second target sampling point from the second sampling points of the staggered noise area according to a second noise intensity mean value corresponding to the second sampling points in the staggered noise area and the target noise reduction intensity;
and denoising each first target sampling point and each second target sampling point.
5. The method of claim 4, wherein the range of sample values for the first target sample point is: [ S+BLM-TH, S+DNTH+TH ];
The sampling value range of the second target sampling point is as follows: [ S-DNTH-TH, S-BSM+TH ];
wherein S represents a sampling point reference value, BLM represents a first noise intensity mean value, blm=2×bl/SP, BL represents a sum of offset values of each first sampling point in the interleaved noise region, and SP represents the number of sampling points; DNTH represents the target noise reduction intensity determined according to the target difference range, and TH represents the product of the fluctuation proportion of the sampling point and the maximum sampling value of the sampling point; BSM represents a second noise intensity mean, bsm=2×bs/SP, BS represents a sum of offset values of respective second sampling points in the interleaved noise region; the offset value of each sampling point is the offset value of the sampling point relative to the sampling point reference value.
6. The method of claim 4, wherein denoising each of the first target sample points and each of the second target sample points comprises:
subtracting the first noise intensity mean from the sampling value of each first target sampling point;
and adding the second noise intensity mean to the sampling value of each second target sampling point.
7. The method of any one of claims 1-6, wherein the target difference range is: [ B,3B ], B represents the offset value of the allowable noise sampling value of the electronic device relative to the sampling point reference value; the target number is 2.
8. A noise reduction device applied to an electronic apparatus, comprising: a determining module and a processing module;
the determining module is used for determining an interleaved noise region according to touch sampling data, wherein the touch sampling data comprises a plurality of sampling points, each interleaved noise region comprises a plurality of interleaved noise units, each interleaved noise unit comprises a first sampling point and a second sampling point, adjacent sampling value differences are in a target difference range, and the number of sampling points at intervals between adjacent interleaved noise units in the same interleaved noise region is smaller than the target number;
the processing module is configured to, for each interleaved noise region, reduce noise in the interleaved noise region if a density of interleaved noise points in the interleaved noise region is greater than a density threshold, where the interleaved noise points include the first sampling point and the second sampling point.
9. An electronic device, comprising: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of any of claims 1-7 when the computer program is invoked.
10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202311362110.8A 2023-10-19 2023-10-19 Noise reduction method, device, electronic equipment and computer readable storage medium Pending CN117555439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311362110.8A CN117555439A (en) 2023-10-19 2023-10-19 Noise reduction method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311362110.8A CN117555439A (en) 2023-10-19 2023-10-19 Noise reduction method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117555439A true CN117555439A (en) 2024-02-13

Family

ID=89815579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311362110.8A Pending CN117555439A (en) 2023-10-19 2023-10-19 Noise reduction method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117555439A (en)

Similar Documents

Publication Publication Date Title
US9965666B2 (en) Fingerprint recognition method, fingerprint recognition device and electronic device
CN108763346B (en) Abnormal point processing method for sliding window box type graph median filtering
WO2017041488A1 (en) Fingerprint ridge point recognition method and apparatus
CN114201069B (en) Touch processing device, system and method
CN115982602A (en) Photovoltaic transformer electrical fault detection method
CN111626360B (en) Method, apparatus, device and storage medium for detecting boiler fault type
CN105913429A (en) Calculating method for visual perception response time delay index of intelligent terminal user
CN111610428B (en) Parameter optimization method based on response aliasing measurement wavelet packet decomposition algorithm
CN117555439A (en) Noise reduction method, device, electronic equipment and computer readable storage medium
US10136156B2 (en) Directional motion vector filtering
CN104093351A (en) System and method for determining a baseline measurement for a biological response curve
CN117031294A (en) Battery multi-fault detection method, device and storage medium
CN116359201A (en) Medicine identification method, system, storage medium and electronic equipment
CN205657671U (en) Capacitanc touch button declares key system
CN115761213A (en) Target detection method and related device, electronic equipment and storage medium
CN112965964B (en) Wild value detection method and system for actually measured flight parameter data and computer related product
CN111929656B (en) Entropy value statistics-based noise estimation method for vehicle-mounted millimeter wave radar system
CN115221915A (en) Target electric signal detection method and device, terminal equipment and storage medium
CN113283316A (en) Switch mechanical fault diagnosis method, device and equipment based on sound signals
CN112819095B (en) Feature point matching method and device, intelligent terminal and computer readable storage medium
CN117170522B (en) High anti-interference method and device for household appliance touch panel and storage medium
CN116973860B (en) Radar echo signal self-adaptive mixed detection method and mixed detection device
CN110059706B (en) Detection method for single straight line in pepper-salt-rich noise environment
CN105743483A (en) Key judgement method and key judgement system for capacitive touch key
CN108710731B (en) Method for judging by-pass event by sections

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