Sensor detection method, computer equipment and computer program product
By determining the residual vibration interval of the ultrasonic signal in the ultrasonic sensor, the detection accuracy problem caused by the untimely convergence of the ultrasonic sensor's residual vibration is solved, and a higher obstacle detection accuracy is achieved.
Patent Information
- Application Number
- CN202411254749.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-06
AI Technical Summary
Some ultrasonic sensors do not converge in time after transmitting ultrasonic waves, resulting in the inability to distinguish the obstacle echo signal and the after vibration during close-range detection, affecting the detection accuracy.
By obtaining the ultrasonic signal after the ultrasonic sensor emits ultrasonic waves, the residual vibration interval of the ultrasonic signal is determined based on the cutting level, including the time from the time when the ultrasonic wave is emitted to the first drop to the cutting level, and the time when the signal rises to the cutting level again. Determine whether the ultrasonic after-vibration converges.
The accuracy of ultrasonic sensor after vibration detection is improved, obstacle misdetection is avoided, and the ability to identify ultrasonic signals is enhanced.
Smart Images

Figure CN119087444A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information processing technology, and in particular to a sensor detection method, a computer device, and a computer program product. Background Art
[0002] Ultrasonic sensors detect obstacles by emitting ultrasonic waves and detecting the echo signals of ultrasonic waves. However, after emitting ultrasonic waves, some ultrasonic sensors may fail to converge the residual vibration of the ultrasonic waves in time. This will make it impossible to distinguish whether the echo signal generated by the obstacle is the residual vibration of the ultrasonic wave during close-range detection, thus affecting the obstacle detection accuracy. Summary of the invention
[0003] The embodiments of the present disclosure at least provide a sensor detection method, a computer device, and a computer program product.
[0004] In a first aspect, an embodiment of the present disclosure provides a sensor detection method, including:
[0005] Acquire an ultrasonic signal collected after the ultrasonic sensor emits an ultrasonic wave;
[0006] Based on the cut-off level of the target time interval matching the current detection environment, the aftershock interval of the ultrasonic signal is determined; wherein the target time interval is a preset time interval after the ultrasonic wave is emitted, the aftershock interval includes a first interval from a first moment to a second moment, and a second interval after the first interval, both endpoints of which coincide with the cut-off level, the first moment is the moment of emitting the ultrasonic wave, and the second moment is the moment when the ultrasonic wave signal first drops to the cut-off level;
[0007] A residual vibration detection result of the ultrasonic sensor is determined based on the respective section lengths of the first section and the second section.
[0008] In a possible implementation manner, the method further includes determining a cutting level of a target time interval matching the current detection environment according to the following method:
[0009] Determine a signal interval matching the current detection environment;
[0010] A cutting level of the target time interval is determined within the signal interval.
[0011] In a possible implementation manner, determining the signal interval matching the current detection environment includes:
[0012] Before emitting ultrasonic waves, detecting the signal strength of the background noise of the ultrasonic sensor; determining the minimum signal strength based on a preset signal-to-noise ratio and the signal strength of the background noise; and,
[0013] The signal intensity of the standard rod at the edge of the calibrated field of view is determined as the maximum signal intensity;
[0014] The signal interval is determined based on the minimum signal strength and the maximum signal strength.
[0015] In a possible implementation manner, determining the cutting level of the target time interval within the signal interval includes:
[0016] Randomly select a cutting level from the signal interval as the cutting level of the target time interval; or,
[0017] A preset empirical cutting level corresponding to the target time interval is determined, and when the preset empirical cutting level is within the signal interval, the preset empirical cutting level is used as the cutting level of the target time interval.
[0018] In a possible implementation manner, the second interval includes a first sub-interval and a second sub-interval;
[0019] The first sub-interval is the interval from the second moment to the third moment, and the third moment is the moment when the ultrasonic signal continuously decreases and then rises to the cutting level again;
[0020] The second sub-interval is an interval from the third moment to the fourth moment, and the fourth moment is a moment when the ultrasonic signal rises and then drops to the cutting level again.
[0021] In a possible implementation manner, determining the residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval includes:
[0022] When the interval length of the first sub-interval is less than a first preset value and the interval length of the second sub-interval is less than a second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the interval lengths of the first interval and the second interval.
[0023] In a possible implementation manner, the method further includes:
[0024] When the interval length of the first subinterval is greater than or equal to a first preset value, and / or the interval length of the second subinterval is greater than or equal to a second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the interval length of the first interval.
[0025] In a possible implementation manner, determining the residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval includes:
[0026] When the sum of the interval length of the first interval and the interval length of the second interval is less than the residual vibration threshold, it is determined that the residual vibration detection result of the ultrasonic sensor is qualified.
[0027] In a second aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the machine-readable instructions are executed by the processor to perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.
[0028] In a third aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed, implements the method described in the above-mentioned first aspect, or any possible implementation manner of the first aspect.
[0029] The sensor detection method, computer device and computer program product provided by the embodiments of the present disclosure can determine the aftershock interval of the ultrasonic signal based on the cutting level after acquiring the ultrasonic signal collected after the ultrasonic sensor emits the ultrasonic wave. The aftershock interval includes not only a first interval from a first moment to a second moment, but also a second interval after the first interval. Through the second interval, it is possible to detect whether the ultrasonic aftershock has converged. In this way, when the aftershock detection result of the ultrasonic sensor is determined based on the respective interval lengths of the first interval and the second interval, the accuracy is higher.
[0030] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0032] Figure 1 A schematic diagram of an ultrasonic signal provided by an embodiment of the present disclosure is shown;
[0033] Figure 2 A flow chart of a sensor detection method provided by an embodiment of the present disclosure is shown;
[0034] Figure 3 A waveform diagram of an ultrasonic signal provided by an embodiment of the present disclosure is shown;
[0035] Figure 4 Another waveform diagram of an ultrasonic signal provided by an embodiment of the present disclosure is shown;
[0036] Figure 5 A schematic diagram of the architecture of a sensor detection device provided by an embodiment of the present disclosure is shown;
[0037] Figure 6 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents selected embodiments of the present disclosure.
[0039] After research, it was found that after some ultrasonic sensors transmit ultrasonic waves, the residual vibration of the ultrasonic wave may not converge in time. The reason may be that the probe is hollow due to poor glue filling. Generally, when performing residual vibration detection on ultrasonic sensors, it is only necessary to detect whether the time for the ultrasonic signal to drop to the cutting level after transmitting the ultrasonic wave is less than the preset time. However, after the ultrasonic signal drops to the cutting level, the residual vibration may not converge in time, causing the ultrasonic signal to rise again to exceed the cutting level.
[0040] like Figure 1 As shown, after the ultrasonic sensor is installed on the vehicle, the cutting level set on the actual vehicle is relatively small. At this time, if the residual vibration does not converge completely (that is, the residual vibration increases significantly after it decreases), due to the small cutting level, when the ultrasonic echo signal exceeds the cutting level, it will be determined that there is an obstacle. In the interval where the residual vibration does not converge completely as shown in the figure, if the residual vibration signal intensity exceeds the cutting level, the vehicle system will mistakenly think that it is an ultrasonic signal reflected by an obstacle, resulting in false obstacle detection. In fact, the ultrasonic signal reflected by the obstacle is the peak area that appears later.
[0041] In addition, in the related art, when performing residual vibration detection, since the echo intensity of obstacles at close range is relatively large, a larger cutoff level value is generally set when performing residual vibration detection on the ultrasonic sensor alone before being deployed on the actual vehicle. However, after the ultrasonic sensor is deployed on the actual vehicle, the software algorithm engineers may set a lower cutoff level for the close-range segment, so the problem of false alarm of obstacles may occur.
[0042] Based on the above research, the present disclosure provides a sensor detection method, a computer device and a computer program product. After obtaining the ultrasonic signal collected after the ultrasonic sensor emits the ultrasonic wave, the aftershock interval of the ultrasonic signal can be determined based on the cutting level. The aftershock interval includes not only a first interval from the first moment to the second moment, but also a second interval after the first interval. Through the second interval, whether the ultrasonic aftershock converges can be detected. In this way, when the aftershock detection result of the ultrasonic sensor is determined based on the respective interval lengths of the first interval and the second interval, the accuracy is higher.
[0043] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0044] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0045] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the personal information involved in the present disclosure (including but not limited to attribute information, facial images, etc.) is obtained with the authorization of the user. Specifically, it can be through a pop-up window in the page, information push, etc., sending a prompt message requesting authorization to the user, and obtaining the above personal information after the user agrees to the authorization.
[0046] To facilitate understanding of the present embodiment, a sensor detection method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the sensor detection method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the sensor detection method can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0047] See also Figure 2 FIG. 2 is a flow chart of a sensor detection method provided by an embodiment of the present disclosure, wherein the method includes steps 201 to 203, wherein:
[0048] Step 201: Acquire an ultrasonic signal collected after the ultrasonic sensor emits an ultrasonic wave.
[0049] Step 202: Determine the aftervibration interval of the ultrasonic signal based on the cut-off level of the target time interval matching the current detection environment.
[0050] Among them, the target time interval is a preset time interval after the ultrasonic wave is emitted, the aftershock interval includes a first interval from a first moment to a second moment, and a second interval after the first interval in which both endpoints coincide with the cutting level, the first moment is the moment when the ultrasonic wave is emitted, and the second moment is the moment when the ultrasonic wave signal first drops to the cutting level.
[0051] Step 203: Determine a residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval.
[0052] The following is a detailed description of the above steps.
[0053] For step 201,
[0054] Here, the ultrasonic sensor may be a sensor that is not deployed on an application device, and the application device may be, for example, an intelligent vehicle, an intelligent robot, etc.
[0055] The ultrasonic signal collected after the ultrasonic sensor transmits the ultrasonic wave may include a residual vibration signal of the ultrasonic wave transmitted by the ultrasonic sensor, and an echo signal reflected by an obstacle.
[0056] Optionally, the ultrasonic sensor may start collecting ultrasonic signals immediately after the ultrasonic sensor finishes emitting ultrasonic waves, continue collecting ultrasonic signals for a certain period of time after the ultrasonic sensor emits ultrasonic waves, and stop collecting ultrasonic signals after a certain period of time. The length of time for collecting ultrasonic signals may be related to the detection distance of the obstacle.
[0057] For step 202 and step 203,
[0058] Here, since aftershocks may be detected within a short period of time after the ultrasonic wave is emitted, when detecting the aftershock interval of the ultrasonic wave signal, detection may also be performed within a target time interval. The target time interval is a preset time interval after the ultrasonic wave occurs, which is a relatively short time interval, for example, 2 milliseconds after the ultrasonic wave is emitted.
[0059] The cutting level may be a threshold for detecting whether there is an obstacle. When the signal strength is greater than the cutting level, it may be determined that there is an obstacle. When the signal strength is less than or equal to the cutting level, it may be determined that there is no obstacle.
[0060] The cutting levels in different time intervals may be different. For example, for a close obstacle, the intensity of the reflected echo signal is higher, so the cutting level value can take a larger value, while for a long-distance obstacle, the intensity of the emitted echo signal is lower, so the cutting level value can take a smaller value.
[0061] It should be noted that the distance between the obstacle and the ultrasonic sensor is determined based on the time of receiving the echo signal. The longer the time from receiving the echo signal to transmitting the ultrasonic wave, the farther the obstacle is from the ultrasonic sensor. The shorter the time from receiving the echo signal to transmitting the ultrasonic wave, the closer the obstacle is to the ultrasonic sensor.
[0062] Optionally, the cutting levels under different detection environments may be different.
[0063] Exemplarily, when determining the cutting level of the target time interval matching the current detection environment, the signal interval matching the current detection environment may be determined first, and then the cutting level of the target time interval may be determined within the signal interval.
[0064] Specifically, when determining the signal interval matching the current detection environment, it may include:
[0065] Before emitting ultrasonic waves, detecting the signal strength of the background noise of the ultrasonic sensor; determining the minimum signal strength based on a preset signal-to-noise ratio and the signal strength of the background noise; and,
[0066] The signal intensity of the standard rod at the edge of the calibrated field of view is determined as the maximum signal intensity;
[0067] The signal interval is determined based on the minimum signal strength and the maximum signal strength.
[0068] Specifically, the interval formed by the minimum signal strength and the maximum signal strength may be the signal interval. The minimum signal strength is less than the maximum signal strength.
[0069] When determining the minimum signal strength, the product of the signal strength of the background noise and the preset signal-to-noise ratio can be used as the minimum signal strength. By setting the minimum signal strength in this way, it can be ensured that the cutting level is not affected by the background noise when detecting obstacles, thereby improving the detection accuracy.
[0070] When determining the maximum signal strength, ultrasonic waves may be emitted to a standard rod at the edge of the field of view, and then the signal strength reflected by the standard rod is detected. After multiple detections, the average of the signal strengths reflected by the standard rod is used as the signal strength of the calibrated standard rod.
[0071] By taking the signal strength of the standard rod at the edge of the field of view as the maximum value of the cutting level, it can be ensured that obstacles at the edge of the field of view can be detected smoothly, thereby improving the detection accuracy of obstacles.
[0072] In one possible implementation, when determining the cutting level of the target time interval within the signal interval, a cutting level can be randomly selected from the signal interval as the cutting level of the target time interval; or, a preset empirical cutting level corresponding to the target time interval is determined, and when the preset empirical cutting level is within the signal interval, the preset empirical cutting level is used as the cutting level of the target time interval.
[0073] If the preset empirical cutting level is outside the signal interval, a cutting level can be directly randomly selected from the signal interval as the cutting level of the target time interval. In the target time interval, the cutting level is a fixed value.
[0074] In another possible implementation, after determining the signal interval, when determining the cutting level of the target time interval within the signal interval, prompt information can be generated based on the signal interval and displayed, and the operator can input the cutting level within the signal interval based on the displayed prompt information.
[0075] It should be noted that the cut level applied when performing residual vibration detection on the ultrasonic sensor may be different from the cut level configured after the ultrasonic sensor is actually assembled on the actual vehicle, and the cut level applied when performing residual vibration detection on the ultrasonic sensor may be lower than the cut level configured after the ultrasonic sensor is actually assembled on the actual vehicle. After the cut level is determined, it can be used for residual vibration detection of multiple ultrasonic sensors in the same batch.
[0076] In this way, a smaller cutting level is used during residual vibration detection, and accurate detection can be achieved for residual vibration or residual residual vibration with smaller signal strength, thereby ensuring the factory quality of the ultrasonic sensor; and a larger cutting level is used after being assembled on the actual vehicle, which can avoid the influence of ultrasonic residual vibration on the obstacle detection accuracy and improve the obstacle detection accuracy.
[0077] The aftershock interval includes a first interval from a first moment to a second moment, and a second interval after the first interval whose two endpoints coincide with the cutting level. The first moment is the moment of emitting the ultrasonic wave, and the second moment is the moment when the ultrasonic wave signal first drops to the cutting level.
[0078] Here, the aftervibration in the first interval can be understood as the aftervibration of the normal decline of the ultrasonic wave, and the aftervibration in the second interval can be the aftervibration of the abnormal increase immediately after the normal decline of the ultrasonic wave, or the aftervibration in the second interval can be understood as the residual aftervibration.
[0079] Optionally, the second interval may include a first sub-interval and a second sub-interval, wherein the first sub-interval is an interval from the second moment to a third moment, the third moment being the moment when the ultrasonic signal continuously decreases and then rises again to the cutting level; the second sub-interval is an interval from the third moment to a fourth moment, the fourth moment being the moment when the ultrasonic signal rises and then drops again to the cutting level.
[0080] For example, the waveform of the ultrasonic signal detected after sending the ultrasonic wave is as follows: Figure 3 As shown, in the waveform diagram, the horizontal axis represents time, the vertical axis represents signal amplitude (or signal strength), and the cutting level is shown in the figure. The values of the cutting level in different time intervals are different, and the target time interval is the T interval.
[0081] exist Figure 3 In the figure, the ultrasonic signal first drops, then drops to the extreme point and then rises again, then stabilizes for a period of time after reaching the extreme point and then starts to drop again, and the moments of the horizontal axis corresponding to the intersection of the ultrasonic signal waveform and the cutting level are the first moment t1, the second moment t2, and the third moment t3. The interval from the starting position t0 to t1 is the first interval, the interval from t1 to t2 is the first sub-interval, and the interval from t2 to t3 is the second sub-interval.
[0082] Subsequently, from t4 to t5, although the signal strength of the ultrasonic signal also exceeds the cutting level, since the time interval from t4 to t5 is far away from the time when the ultrasonic signal is emitted (for example, the time interval from t4 to t0 exceeds the preset time length), the ultrasonic signal in this time interval is most likely an echo signal reflected by other objects and will not enter the process of residual vibration judgment.
[0083] Here, the interval from t1 to t2 and the interval from t2 to t3 are the intervals of residual vibration. By detecting the residual vibration, the performance of the ultrasonic sensor can be better detected and the obstacle detection accuracy can be improved.
[0084] When the second interval is detected in the ultrasonic signal, the ultrasonic signal in the second interval may be an echo signal reflected by an obstacle, or it may be a aftershock signal of the ultrasonic wave emitted by the ultrasonic sensor. Generally, the aftershock signal appears within a short time after the ultrasonic wave is emitted. Moreover, when performing the above-mentioned sensor detection, no obstacle is placed in front of the ultrasonic sensor. However, after the ultrasonic wave is emitted, objects at a long distance in the environment may also reflect the ultrasonic wave. Therefore, if the second interval is a time interval close to the time after the ultrasonic wave is emitted, the second interval can be determined as a time interval in which the aftershock signal exists.
[0085] In a possible implementation, when determining the residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval, it can be determined whether the interval length of the first sub-interval is less than a first preset value, and whether the interval length of the second sub-interval is less than a second preset value; when the interval length of the first sub-interval is less than the first preset value, and the interval length of the second sub-interval is less than the second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the respective interval lengths of the first interval and the second interval.
[0086] If the interval length of the first sub-interval is greater than or equal to the first preset value, and / or the interval length of the second sub-interval is greater than or equal to the second preset value, it means that the second interval is not a time interval in which a residual vibration signal exists. Therefore, when performing residual vibration detection of the ultrasonic sensor, the residual vibration detection result of the ultrasonic sensor can be determined only based on the interval length of the first interval.
[0087] Here, the first preset value and the second preset value may be calibrated values, or may be set according to historical experience values, which is not limited in the present disclosure.
[0088] In another possible implementation, the second interval may include 2N sub-intervals, where N is a positive integer greater than or equal to 1. When N is greater than 1, when the length of each of the multiple sub-intervals included in the second interval is less than the corresponding preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the length of each of the 2N sub-intervals included in the first interval and the second interval.
[0089] Here, the reason why the number of second subintervals included in the second interval exceeds two may be due to multiple aftershocks, for example, Figure 4 As shown, the second interval includes not only the first sub-interval t0-t1 and the second sub-interval t1-t2, but also the third sub-interval t3-t6 and the fourth sub-interval t6-t7.
[0090] Correspondingly, when the first sub-interval is less than the first preset value, the second sub-interval is less than the second preset value, the third sub-interval is less than the third preset value, and the fourth sub-interval is less than the fourth preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the respective interval lengths of the first interval, the first sub-interval, the second sub-interval, the third sub-interval and the fourth sub-interval.
[0091] When N is greater than 1, if, among the multiple sub-intervals included in the second interval, there is a sub-interval whose interval length is greater than or equal to the corresponding preset value, the residual vibration detection result of the ultrasonic sensor can be determined directly based on the interval lengths of each of the 2N sub-intervals included in the first interval.
[0092] Specifically, when determining the residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval, it can be detected whether the sum of the interval length of the first interval and the interval length of the second interval is less than the preset residual vibration threshold. If so, it can be determined that the residual vibration detection result of the ultrasonic sensor is qualified. If greater than or equal to, it can be determined that the residual vibration detection result of the ultrasonic sensor is unqualified.
[0093] In the case where the second interval includes the first sub-interval and the second sub-interval, the interval length of the second interval is the sum of the interval length of the first sub-interval and the interval length of the second sub-interval.
[0094] When the residual vibration detection result of the ultrasonic sensor is determined only based on the interval length of the first interval, it can be detected whether the interval length of the first interval is less than the preset residual vibration threshold. If it is less than, it can be determined that the residual vibration detection result of the ultrasonic sensor is qualified. If it is greater than or equal to, it can be determined that the residual vibration detection result of the ultrasonic sensor is unqualified.
[0095] Here, the residual vibration threshold is used to detect whether the residual vibration of the ultrasonic wave can drop below the cutting level within a specified time. Optionally, when judging the residual vibration detection result based on the sum of the interval lengths of the first interval and the second interval, the residual vibration threshold used when judging the residual vibration detection result based only on the interval length of the first interval can be the same threshold.
[0096] The sensor detection method provided by the embodiment of the present disclosure can determine the aftershock interval of the ultrasonic signal based on the cutting level after acquiring the ultrasonic signal collected after the ultrasonic sensor emits the ultrasonic wave. The aftershock interval includes not only a first interval from a first moment to a second moment, but also a second interval after the first interval. Through the second interval, it is possible to detect whether the ultrasonic aftershock has converged. In this way, when the aftershock detection result of the ultrasonic sensor is determined based on the respective interval lengths of the first interval and the second interval, the accuracy is higher.
[0097] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0098] Based on the same inventive concept, a sensor detection device corresponding to the sensor detection method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned sensor detection method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0099] Reference Figure 5 , which is a schematic diagram of the architecture of a sensor detection device provided by an embodiment of the present disclosure, the device comprises: an acquisition module 501, a first determination module 502, and a second determination module 503; wherein,
[0100] An acquisition module 501 is used to acquire an ultrasonic signal collected after the ultrasonic sensor emits an ultrasonic wave;
[0101] The first determination module 502 is used to determine the aftershock interval of the ultrasonic signal based on the cut-off level of the target time interval matching the current detection environment; wherein the target time interval is a preset time interval after the ultrasonic wave is emitted, the aftershock interval includes a first interval from a first moment to a second moment, and a second interval after the first interval in which both endpoints coincide with the cut-off level, the first moment is the moment when the ultrasonic wave is emitted, and the second moment is the moment when the ultrasonic wave signal first drops to the cut-off level;
[0102] The second determination module 503 is configured to determine a residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval.
[0103] In a possible implementation manner, the first determining module 502 is further configured to:
[0104] Determine a signal interval matching the current detection environment;
[0105] A cutting level of the target time interval is determined within the signal interval.
[0106] In a possible implementation manner, the first determining module 502 is configured to:
[0107] Before emitting ultrasonic waves, detecting the signal strength of the background noise of the ultrasonic sensor; determining the minimum signal strength based on a preset signal-to-noise ratio and the signal strength of the background noise; and,
[0108] The signal intensity of the standard rod at the edge of the calibrated field of view is determined as the maximum signal intensity;
[0109] The signal interval is determined based on the minimum signal strength and the maximum signal strength.
[0110] In a possible implementation manner, the first determining module 502 is configured to:
[0111] Randomly select a cutting level from the signal interval as the cutting level of the target time interval; or,
[0112] A preset empirical cutting level corresponding to the target time interval is determined, and when the preset empirical cutting level is within the signal interval, the preset empirical cutting level is used as the cutting level of the target time interval.
[0113] In a possible implementation manner, the second interval includes a first sub-interval and a second sub-interval;
[0114] The first sub-interval is the interval from the second moment to the third moment, and the third moment is the moment when the ultrasonic signal continuously decreases and then rises to the cutting level again;
[0115] The second sub-interval is an interval from the third moment to the fourth moment, and the fourth moment is a moment when the ultrasonic signal rises and then drops to the cutting level again.
[0116] In a possible implementation manner, the second determining module 503 is configured to:
[0117] When the interval length of the first sub-interval is less than a first preset value and the interval length of the second sub-interval is less than a second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the interval lengths of the first interval and the second interval.
[0118] In a possible implementation manner, the second determining module 503 is configured to:
[0119] When the interval length of the first subinterval is greater than or equal to a first preset value, and / or the interval length of the second subinterval is greater than or equal to a second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the interval length of the first interval.
[0120] In a possible implementation manner, the second determining module 503 is configured to:
[0121] When the sum of the interval length of the first interval and the interval length of the second interval is less than the residual vibration threshold, it is determined that the residual vibration detection result of the ultrasonic sensor is qualified.
[0122] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0123] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 6 As shown, it is a schematic diagram of the structure of a computer device 600 provided in an embodiment of the present disclosure, including a processor 601, a memory 602, and a bus 603. Among them, the memory 602 is used to store execution instructions, including a memory 6021 and an external memory 6022; the memory 6021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 601, and the data exchanged with the external memory 6022 such as a hard disk. The processor 601 exchanges data with the external memory 6022 through the memory 6021. When the computer device 600 is running, the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the following instructions:
[0124] Acquire an ultrasonic signal collected after the ultrasonic sensor emits an ultrasonic wave;
[0125] Based on the cut-off level of the target time interval matching the current detection environment, the aftershock interval of the ultrasonic signal is determined; wherein the target time interval is a preset time interval after the ultrasonic wave is emitted, the aftershock interval includes a first interval from a first moment to a second moment, and a second interval after the first interval, both endpoints of which coincide with the cut-off level, the first moment is the moment of emitting the ultrasonic wave, and the second moment is the moment when the ultrasonic wave signal first drops to the cut-off level;
[0126] A residual vibration detection result of the ultrasonic sensor is determined based on the respective section lengths of the first section and the second section.
[0127] In a possible implementation manner, in the instructions executed by the processor 601, the method further includes determining a cutting level of a target time interval matching the current detection environment according to the following method:
[0128] Determine a signal interval matching the current detection environment;
[0129] A cutting level of the target time interval is determined within the signal interval.
[0130] In a possible implementation manner, in the instruction executed by the processor 601, determining the signal interval matching the current detection environment includes:
[0131] Before emitting ultrasonic waves, detecting the signal strength of the background noise of the ultrasonic sensor; determining the minimum signal strength based on a preset signal-to-noise ratio and the signal strength of the background noise; and,
[0132] The signal intensity of the standard rod at the edge of the calibrated field of view is determined as the maximum signal intensity;
[0133] The signal interval is determined based on the minimum signal strength and the maximum signal strength.
[0134] In a possible implementation manner, in the instruction executed by the processor 601, determining the cut level of the target time interval within the signal interval includes:
[0135] Randomly select a cutting level from the signal interval as the cutting level of the target time interval; or,
[0136] A preset empirical cutting level corresponding to the target time interval is determined, and when the preset empirical cutting level is within the signal interval, the preset empirical cutting level is used as the cutting level of the target time interval.
[0137] In a possible implementation manner, in the instruction executed by the processor 601, the second interval includes a first sub-interval and a second sub-interval;
[0138] The first sub-interval is the interval from the second moment to the third moment, and the third moment is the moment when the ultrasonic signal continuously decreases and then rises to the cutting level again;
[0139] The second sub-interval is an interval from the third moment to the fourth moment, and the fourth moment is a moment when the ultrasonic signal rises and then drops to the cutting level again.
[0140] In a possible implementation manner, in the instruction executed by the processor 601, determining the residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval includes:
[0141] When the interval length of the first sub-interval is less than a first preset value and the interval length of the second sub-interval is less than a second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the interval lengths of the first interval and the second interval.
[0142] In a possible implementation manner, in the instruction executed by the processor 601, the method further includes:
[0143] When the interval length of the first subinterval is greater than or equal to a first preset value, and / or the interval length of the second subinterval is greater than or equal to a second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the interval length of the first interval.
[0144] In a possible implementation manner, in the instruction executed by the processor 601, determining the residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval includes:
[0145] When the sum of the interval length of the first interval and the interval length of the second interval is less than the residual vibration threshold, it is determined that the residual vibration detection result of the ultrasonic sensor is qualified.
[0146] The present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the sensor detection method described in the above method embodiment are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0147] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the sensor detection method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0148] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0149] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0150] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0151] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0152] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0153] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A sensor detection method, It is characterized in that include: Acquire an ultrasonic signal collected after the ultrasonic sensor emits an ultrasonic wave; Based on the cut-off level of the target time interval matching the current detection environment, the aftershock interval of the ultrasonic signal is determined; wherein the target time interval is a preset time interval after the ultrasonic wave is emitted, the aftershock interval includes a first interval from a first moment to a second moment, and a second interval after the first interval, both endpoints of which coincide with the cut-off level, the first moment is the moment of emitting the ultrasonic wave, and the second moment is the moment when the ultrasonic wave signal first drops to the cut-off level; A residual vibration detection result of the ultrasonic sensor is determined based on the respective section lengths of the first section and the second section.
2. The method according to claim 1, It is characterized in that The method further includes determining a cutting level of a target time interval matching the current detection environment according to the following method: Determine a signal interval matching the current detection environment; A cutting level of the target time interval is determined within the signal interval.
3. The method according to claim 2, It is characterized in that The determining of the signal interval matching the current detection environment includes: Before emitting ultrasonic waves, detecting the signal strength of the background noise of the ultrasonic sensor; determining the minimum signal strength based on a preset signal-to-noise ratio and the signal strength of the background noise; and, The signal intensity of the standard rod at the edge of the calibrated field of view is determined as the maximum signal intensity; The signal interval is determined based on the minimum signal strength and the maximum signal strength.
4. The method according to claim 2, It is characterized in that The step of determining the cutting level of the target time interval within the signal interval includes: Randomly select a cutting level from the signal interval as the cutting level of the target time interval; or, A preset empirical cutting level corresponding to the target time interval is determined, and when the preset empirical cutting level is within the signal interval, the preset empirical cutting level is used as the cutting level of the target time interval.
5. The method according to claim 1, It is characterized in that The second interval includes a first sub-interval and a second sub-interval; The first sub-interval is the interval from the second moment to the third moment, and the third moment is the moment when the ultrasonic signal continuously decreases and then rises to the cutting level again; The second sub-interval is an interval from the third moment to the fourth moment, and the fourth moment is a moment when the ultrasonic signal rises and then drops to the cutting level again.
6. The method according to claim 5, It is characterized in that The determining the residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval includes: When the interval length of the first sub-interval is less than a first preset value and the interval length of the second sub-interval is less than a second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the interval lengths of the first interval and the second interval.
7. The method according to claim 6, It is characterized in that The method further comprises: When the interval length of the first subinterval is greater than or equal to a first preset value, and / or the interval length of the second subinterval is greater than or equal to a second preset value, the residual vibration detection result of the ultrasonic sensor is determined based on the interval length of the first interval.
8. The method according to claim 1 or 6, It is characterized in that The determining the residual vibration detection result of the ultrasonic sensor based on the respective interval lengths of the first interval and the second interval includes: When the sum of the interval length of the first interval and the interval length of the second interval is less than the residual vibration threshold, it is determined that the residual vibration detection result of the ultrasonic sensor is qualified.
9. A computer device, It is characterized in that include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the machine-readable instructions are executed by the processor to perform the steps of the sensor detection method according to any one of claims 1 to 8.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed, the steps of the sensor detection method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Optimization method based on aftershock treatment of ultrasonic sensor
CN121325145A
An optimization method based on ultrasonic sensor aftershock processing
CN121325145B
