Method and device for identifying signal validity and computer storage medium
Technical Field
The present invention relates to the field of signal identification, and in particular, to a method and apparatus for identifying signal validity and a computer storage medium.
Background
In the prior art, there are some ways to identify whether a signal is valid, such as determining parameters of the signal, etc., but this way needs to be performed in a manual-based manner, which is inefficient.
Disclosure of Invention
In view of the defects in the prior art, the present invention provides a method and apparatus for identifying validity of a signal, and a computer storage medium, which are used to identify whether the signal is valid.
Specifically, the present invention proposes the following specific examples:
the embodiment of the invention provides a method for identifying signal effectiveness, which comprises the following steps:
acquiring a oscillogram corresponding to a signal to be identified;
judging whether a preset abnormal waveform exists in the oscillogram within a preset time range corresponding to the front end or the rear end of the standard oscillogram by comparing the oscillogram with a preset standard oscillogram;
and if the judgment result is negative, determining that the signal to be identified is an effective signal.
In a specific embodiment, the standard waveform diagram sequentially comprises a top waveform, a descending waveform, a bottom waveform, an ascending waveform and a top waveform according to a time sequence; wherein the duration of the bottom waveform exceeds a preset time.
In a specific embodiment, the preset abnormal waveform is a waveform in which a difference between a bottom of the waveform and a bottom of the standard waveform diagram is greater than a preset threshold.
In a particular embodiment of the present invention,
the step of judging whether a preset abnormal waveform exists in the waveform diagram within a preset time range corresponding to the front end or the rear end of the standard waveform diagram by comparing the waveform diagram with a preset standard waveform diagram includes:
judging whether a waveform with a difference value of a standard waveform corresponding to the standard waveform diagram larger than a threshold exists in the forward feedback in the waveform diagram;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative and the backward end of the forward feedback is connected with a standard oscillogram, judging whether a waveform with a difference value larger than a threshold value from the standard waveform exists in a preset time range of the backward end of the standard waveform;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative, determining that the preset abnormal waveform does not exist.
In a specific embodiment, the method further comprises the following steps:
and if so, setting the waveform corresponding to the oscillogram to be invalid, and filtering the waveform.
The embodiment of the invention also provides a device for identifying the validity of the signal, which comprises:
the acquisition module is used for acquiring a oscillogram corresponding to the signal to be identified;
the judging module is used for judging whether a preset abnormal waveform exists in the oscillogram within a preset time range corresponding to the front end or the rear end of the standard oscillogram by comparing the oscillogram with a preset standard oscillogram;
and the determining module is used for determining the signal to be identified as an effective signal when the judgment result is negative.
In a specific embodiment, the standard waveform diagram sequentially comprises a top waveform, a descending waveform, a bottom waveform, an ascending waveform and a top waveform according to a time sequence; wherein the duration of the bottom waveform exceeds a preset time.
In a specific embodiment, the preset abnormal waveform is a waveform in which a difference between a bottom of the waveform and a bottom of the standard waveform diagram is greater than a preset threshold.
In a particular embodiment of the present invention,
the judging module is used for:
judging whether a waveform with a difference value of a standard waveform corresponding to the standard waveform diagram larger than a threshold exists in the forward feedback in the waveform diagram;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative and the backward end of the forward feedback is connected with a standard oscillogram, judging whether a waveform with a difference value larger than a threshold value from the standard waveform exists in a preset time range of the backward end of the standard waveform;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative, determining that the preset abnormal waveform does not exist.
The embodiment of the present invention further provides a computer storage medium, in which a computer program is stored, where the computer program is used to execute the following processes:
the method comprises the following steps that A, a oscillogram corresponding to a signal to be identified is obtained;
the process B is to judge whether a preset abnormal waveform exists in a preset time range corresponding to the front end or the rear end of the standard oscillogram in the oscillogram by comparing the oscillogram with a preset standard oscillogram;
and C, if the judgment result is negative, determining that the signal to be identified is an effective signal.
Therefore, the embodiment of the invention provides a method and a device for identifying signal validity and a computer storage medium, wherein the method comprises the following steps: acquiring a oscillogram corresponding to a signal to be identified; judging whether a preset abnormal waveform exists in the oscillogram within a preset time range corresponding to the front end or the rear end of the standard oscillogram by comparing the oscillogram with a preset standard oscillogram; and if the judgment result is negative, determining that the signal to be identified is an effective signal. Therefore, whether the signal is effective or not is identified by identifying the waveform, and the identification efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart illustrating a method for identifying signal validity according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a standard waveform in a method for identifying signal validity according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a signal to be identified in a method for identifying validity of a signal according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating an apparatus for identifying signal validity according to an embodiment of the present invention.
Detailed Description
Various embodiments of the present disclosure will be described more fully hereinafter. The present disclosure is capable of various embodiments and of modifications and variations therein. However, it should be understood that: there is no intention to limit the various embodiments of the disclosure to the specific embodiments disclosed herein, but rather, the disclosure is to cover all modifications, equivalents, and/or alternatives falling within the spirit and scope of the various embodiments of the disclosure.
Hereinafter, the term "includes" or "may include" used in various embodiments of the present disclosure indicates the presence of the disclosed functions, operations, or elements, and does not limit the addition of one or more functions, operations, or elements. Furthermore, as used in various embodiments of the present disclosure, the terms "comprising," "having," and their derivatives, are intended to be only representative of the particular features, integers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to one or more other features, integers, steps, operations, elements, components, or combinations of the foregoing.
In various embodiments of the disclosure, the expression "or" at least one of a or/and B "includes any or all combinations of the words listed simultaneously. For example, the expression "a or B" or "at least one of a or/and B" may include a, may include B, or may include both a and B.
Expressions (such as "first", "second", and the like) used in various embodiments of the present disclosure may modify various constituent elements in the various embodiments, but may not limit the respective constituent elements. For example, the above description does not limit the order and/or importance of the elements described. The foregoing description is for the purpose of distinguishing one element from another. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of various embodiments of the present disclosure.
It should be noted that: if it is described that one constituent element is "connected" to another constituent element, the first constituent element may be directly connected to the second constituent element, and a third constituent element may be "connected" between the first constituent element and the second constituent element. In contrast, when one constituent element is "directly connected" to another constituent element, it is understood that there is no third constituent element between the first constituent element and the second constituent element.
The term "user" used in various embodiments of the present disclosure may indicate a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).
The terminology used in the various embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the various embodiments of the present disclosure. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present disclosure belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined in various embodiments of the present disclosure.
Example 1
The embodiment 1 of the invention discloses a method for identifying signal validity, which comprises the following steps as shown in fig. 1:
step 101, obtaining a oscillogram corresponding to a signal to be identified;
102, comparing the oscillogram with a preset standard oscillogram to judge whether a preset abnormal waveform exists in the oscillogram within a preset time range corresponding to the front end or the rear end of the standard oscillogram;
and 103, if the judgment result is negative, determining that the signal to be identified is an effective signal.
Specifically, in one embodiment, the standard waveform diagram sequentially includes a top waveform, a falling waveform, a bottom waveform, a rising waveform, and a top waveform in time order; wherein the duration of the bottom waveform exceeds a preset time.
In a specific embodiment, the preset abnormal waveform is a waveform in which a difference between a bottom of the waveform and a bottom of the standard waveform diagram is greater than a preset threshold.
In a particular embodiment of the present invention,
the step of judging whether a preset abnormal waveform exists in the waveform diagram within a preset time range corresponding to the front end or the rear end of the standard waveform diagram by comparing the waveform diagram with a preset standard waveform diagram includes:
judging whether a waveform with a difference value of a standard waveform corresponding to the standard waveform diagram larger than a threshold exists in the forward feedback in the waveform diagram;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative and the backward end of the forward feedback is connected with a standard oscillogram, judging whether a waveform with a difference value larger than a threshold value from the standard waveform exists in a preset time range of the backward end of the standard waveform;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative, determining that the preset abnormal waveform does not exist.
In a specific embodiment, the method further comprises the following steps:
and if so, setting the waveform corresponding to the oscillogram to be invalid, and filtering the waveform.
In particular, the signal to be recognized is an invalid signal.
Specifically, a specific example is described, as shown in fig. 2, which is a waveform corresponding to a standard waveform diagram, and fig. 3 is a waveform diagram of a false touch trigger, where the waveform in fig. 3 has a forward feedback and a backward feedback.
Taking the example where a normal kick would produce a downward waveform, the monitored waveform would include a detected top, a downward trend, then a bottom (the bottom duration needs to be to a certain extent before it is a valid signal), then a detected rising edge, and finally a top. Specific waveforms are shown in fig. 2, and taking the determination of a valid kicking signal as an example, the middle waveform is determined to be a valid signal.
While in the waveform shown in fig. 3, the feed-forward is recorded, if there is a waveform one (or an unstable state) in the feed-forward, at this time, the subsequent waveform is filtered out, and the waveform two is discarded. If the first waveform does not exist, the second waveform is captured in the presence of the first waveform for the next 100ms, and if the third waveform (unstable state) occurs, the second waveform is also considered as an invalid waveform, and a valid signal is not generated.
Example 2
The embodiment 2 of the invention also discloses a device for identifying the validity of the signal, which comprises the following components:
an obtaining module 201, configured to obtain a waveform diagram corresponding to a signal to be identified;
a determining module 202, configured to determine whether a preset abnormal waveform exists in the oscillogram within a preset time range corresponding to a front end or a rear end of the standard oscillogram by comparing the oscillogram with a preset standard oscillogram;
and the determining module 203 is configured to determine that the signal to be identified is a valid signal when the determination result is negative.
In a specific embodiment, the standard waveform diagram sequentially comprises a top waveform, a descending waveform, a bottom waveform, an ascending waveform and a top waveform according to a time sequence; wherein the duration of the bottom waveform exceeds a preset time.
In a specific embodiment, the preset abnormal waveform is a waveform in which a difference between a bottom of the waveform and a bottom of the standard waveform diagram is greater than a preset threshold.
In a particular embodiment of the present invention,
the judging module is used for:
judging whether a waveform with a difference value of a standard waveform corresponding to the standard waveform diagram larger than a threshold exists in the forward feedback in the waveform diagram;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative and the backward end of the forward feedback is connected with a standard oscillogram, judging whether a waveform with a difference value larger than a threshold value from the standard waveform exists in a preset time range of the backward end of the standard waveform;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative, determining that the preset abnormal waveform does not exist.
In a specific embodiment, the apparatus further comprises:
and the filtering module is used for setting the waveform corresponding to the oscillogram to be invalid and filtering the waveform when the judgment result is yes.
Example 3
The embodiment 3 of the present invention further discloses a computer storage medium, in which a computer program is stored, where the computer program is used to execute the following processes:
the method comprises the following steps that A, a oscillogram corresponding to a signal to be identified is obtained;
the process B is to judge whether a preset abnormal waveform exists in a preset time range corresponding to the front end or the rear end of the standard oscillogram in the oscillogram by comparing the oscillogram with a preset standard oscillogram;
and C, if the judgment result is negative, determining that the signal to be identified is an effective signal.
In a specific embodiment, the standard waveform diagram sequentially comprises a top waveform, a descending waveform, a bottom waveform, an ascending waveform and a top waveform according to a time sequence; wherein the duration of the bottom waveform exceeds a preset time.
In a specific embodiment, the preset abnormal waveform is a waveform in which a difference between a bottom of the waveform and a bottom of the standard waveform diagram is greater than a preset threshold.
In a particular embodiment of the present invention,
the step of judging whether a preset abnormal waveform exists in the waveform diagram within a preset time range corresponding to the front end or the rear end of the standard waveform diagram by comparing the waveform diagram with a preset standard waveform diagram includes:
judging whether a waveform with a difference value of a standard waveform corresponding to the standard waveform diagram larger than a threshold exists in the forward feedback in the waveform diagram;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative and the backward end of the forward feedback is connected with a standard oscillogram, judging whether a waveform with a difference value larger than a threshold value from the standard waveform exists in a preset time range of the backward end of the standard waveform;
if the judgment result is yes, determining that a preset abnormal waveform exists;
if the judgment result is negative, determining that the preset abnormal waveform does not exist.
In a specific embodiment, the computer program is further configured to perform the following process:
and if so, setting the waveform corresponding to the oscillogram to be invalid, and filtering the waveform.
Therefore, the embodiment of the invention provides a method and a device for identifying signal validity and a computer storage medium, wherein the method comprises the following steps: acquiring a oscillogram corresponding to a signal to be identified; judging whether a preset abnormal waveform exists in the oscillogram within a preset time range corresponding to the front end or the rear end of the standard oscillogram by comparing the oscillogram with a preset standard oscillogram; and if the judgment result is negative, determining that the signal to be identified is an effective signal. Therefore, whether the signal is effective or not is identified by identifying the waveform, and the identification efficiency is improved.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned invention numbers are merely for description and do not represent the merits of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.