A water level monitoring method, device, electronic equipment and storage medium
By emitting a detection signal to the surface to be measured at a preset emission angle and acquiring the target signal in the reflected signal, the problem of high cost of water level monitoring in the existing technology is solved, and effective water level monitoring without a water level sensor is achieved.
Patent Information
- Application Number
- CN202311283844.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-09-28
AI Technical Summary
In the existing water level monitoring method, the detection signal of vertical scanning cannot bypass the curb stone, which leads to the need to install a water level sensor, which increases the monitoring cost.
By emitting a detection signal to the surface to be measured at a preset emission angle, and determining the water level based on the target signal in the reflected signal, the signal processing device is used to obtain the target signal in the reflected signal corresponding to the emission angle, thereby achieving water level monitoring and avoiding the need to set the water level. Sensor requirements.
It reduces the cost of water level monitoring and enables effective monitoring of water level without the need for water level sensors.
Smart Images

Figure CN117367541B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of water level monitoring, and in particular, relates to a water level monitoring method, device, electronic equipment and storage medium. Background Art
[0002] At present, the conventional water level monitoring method is to transmit a detection signal to the surface to be measured by vertical scanning through a signal transceiver such as a radar, and then determine the water level of the surface to be measured based on the reflected signal returned by the detection signal. Since the detection signal transmitted by vertical scanning cannot bypass the curbstone, it is necessary to set up a water level sensor to cooperate with the signal transceiver to monitor the water level, which increases the cost of water level monitoring. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a water level monitoring method, device, electronic device and storage medium to solve the technical problem of high cost of existing water level monitoring.
[0004] In a first aspect, an embodiment of the present application provides a water level monitoring method, comprising:
[0005] According to the preset transmission angle, the detection signal is transmitted to the surface to be tested;
[0006] After receiving a reflected signal returned based on the detection signal, acquiring a target signal corresponding to the emission angle contained in the reflected signal;
[0007] The water level of the surface to be measured is determined according to the target signal.
[0008] Optionally, the acquiring the target signal corresponding to the emission angle and contained in the reflection signal includes:
[0009] For each sub-signal included in the reflected signal, obtain a first signal strength of the sub-signal in the vertical direction and a second signal strength in the horizontal direction, determine a phase angle of the sub-signal according to the first signal strength and the second signal strength, and determine an angle between the sub-signal and the surface to be measured according to the phase angle;
[0010] Among the sub-signals, the sub-signal corresponding to the included angle between the sub-signals and the surface to be measured and the emission angle is determined as the target signal.
[0011] Optionally, determining the angle between the sub-signal and the surface to be measured according to the phase angle includes:
[0012] Acquire preset mapping relationship information, where the mapping relationship information records the correspondence between each preset phase angle of the signal and each preset angle, where the preset angle is the angle formed between the signal and the surface to be measured;
[0013] The angle between the sub-signal and the surface to be measured is determined according to the phase angle and the mapping relationship information.
[0014] Optionally, determining, among the sub-signals, a sub-signal corresponding to the angle between the sub-signals and the surface to be measured and the emission angle as the target signal includes:
[0015] Among the sub-signals, the sub-signal whose included angle with the surface to be measured and the emission angle are complementary angles are determined as the target signal.
[0016] Optionally, determining, among the sub-signals, a sub-signal corresponding to the angle between the sub-signals and the surface to be measured and the emission angle as the target signal includes:
[0017] Determining a target angle range according to the launch angle;
[0018] Among the sub-signals, the sub-signals whose included angle with the surface to be measured is within the target angle range are determined as the target signals.
[0019] Optionally, determining the water level of the surface to be measured according to the target signal includes:
[0020] Obtaining a propagation distance of the target signal;
[0021] The water level of the surface to be measured is determined according to the propagation distance and the emission angle.
[0022] Optionally, transmitting the detection signal to the surface to be tested at a preset transmission angle includes:
[0023] The detection signal is transmitted to the surface to be detected according to the transmission angle through a signal transceiver device arranged on a vertical pole at a preset height.
[0024] In a second aspect, an embodiment of the present application provides a water level monitoring device, comprising:
[0025] A detection signal transmitting unit, used to transmit a detection signal to the surface to be tested according to a preset transmission angle;
[0026] A first acquisition unit is used to acquire a target signal corresponding to the emission angle contained in the reflection signal after receiving a reflection signal returned based on the detection signal;
[0027] The first determining unit is used to determine the water level of the surface to be measured according to the target signal.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the water level monitoring method described in the first aspect above are implemented.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the water level monitoring method as described in any one of the first aspects above are implemented.
[0030] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a server, the server executes each step of the water level monitoring method as described in any one of the first aspects above.
[0031] The water level monitoring method, device, electronic device and storage medium provided in the embodiments of the present application have the following features:
[0032] Beneficial effects:
[0033] In the water level monitoring method provided in the embodiment of the present application, a detection signal is transmitted to the surface to be measured according to a preset transmission angle, and after receiving a reflection signal returned based on the detection signal, a target signal corresponding to the transmission angle contained in the reflection signal is obtained, and finally the water level of the surface to be measured is determined according to the target signal. The embodiment of the present application sets a certain signal transmission angle so that the detection signal can successfully bypass the curbstone, so that water level monitoring can be achieved according to the target signal corresponding to the transmission angle contained in the received reflection signal. The whole process does not require the setting of a water level sensor, which can reduce the cost of water level monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0035] Figure 1 A schematic diagram of a water level monitoring method of the prior art provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a flow chart of a water level monitoring method provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a water level detection method provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of a process for obtaining a target signal corresponding to a transmission angle contained in a reflection signal provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of a method for determining a phase angle of a sub-signal provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of the structure of a water level monitoring device provided in an embodiment of the present application;
[0041] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two, and "at least one", "one or more" refers to one, two or more. The terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, it is defined that the "first" and "second" features can explicitly or implicitly include one or more of the features.
[0043] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0044] See also Figure 1 , Figure 1 A schematic diagram of a water level monitoring method of the prior art provided in an embodiment of the present application. The prior art transmits a detection signal vertically to the surface to be measured by a radar, then obtains the reflection signal with the largest signal strength from each reflection signal, filters the reflection signals except the reflection signal with the largest signal strength as interference signals, and then determines the distance corresponding to the reflection signal with the largest signal strength as the distance between the radar and the surface to be measured, thereby determining the water level.
[0045] For example, Figure 1As shown, the radar transmits a detection signal a and receives a reflected signal returned by the detection signal a, and the radar transmits a detection signal b and receives a reflected signal returned by the detection signal b. Since the propagation distance of the detection signal a is shorter than the propagation distance of the detection signal b, the distance corresponding to the reflected signal returned by the detection signal a is determined as the distance between the radar and the surface to be measured, and then the water level is determined based on the distance between the radar and the surface to be measured.
[0046] It can be seen that when there is a curbstone directly below the radar, the detection signal emitted by the water level monitoring method in the prior art cannot bypass the curbstone, and the distance between the curbstone and the radar is usually smaller than the distance between the surface to be measured (water surface) and the radar, that is, the signal strength of the reflected signal reflected by the curbstone is the largest, so the distance between the curbstone and the radar will be mistakenly determined as the distance between the surface to be measured and the radar. Based on this, the prior art generally eliminates the interference of the curbstone by setting a water level sensor to cooperate with the radar to monitor the water level. The additional water level sensor increases the cost of water level monitoring.
[0047] In order to solve the technical problem of high water level monitoring cost in the prior art, an embodiment of the present application provides a water level monitoring method.
[0048] The water level monitoring method provided in the embodiment of the present application can be an electronic device, which can be arranged in a pole, and the pole can be installed on a curbstone. The electronic device can include a signal transceiver and a signal processing device; wherein the signal transceiver can be a radar, which is used to transmit a detection signal to the surface to be measured according to a preset transmission angle; the signal processing device can be used to receive a reflected signal returned based on the detection signal, and after receiving the reflected signal, obtain a target signal corresponding to the transmission angle contained in the reflected signal, and then determine the water level of the surface to be measured based on the target signal.
[0049] The water level monitoring method provided in the embodiment of the present application can be applied to solve the technical problem of high cost caused by the need to use a water level sensor in conjunction with a signal transceiver device to monitor the water level in the prior art. Specifically, the electronic device provided in the embodiment of the present application can be set in a vertical pole, and the vertical pole can be set in a curbstone on the surface to be tested, and then the various steps of the water level monitoring method provided in the embodiment of the present application can be performed by the electronic device, so that the emitted detection signal can bypass the curbstone, and there is no need to set a water level sensor, thereby reducing the cost of water level detection.
[0050] See also Figure 2 , Figure 2 The flowchart of a water level monitoring method provided in an embodiment of the present application is as follows. The water level monitoring method provided in an embodiment of the present application may include S101 to S103, which are described in detail as follows:
[0051] In S101, a detection signal is transmitted to the surface to be tested according to a preset transmission angle.
[0052] In the embodiment of the present application, the electronic device can transmit a detection signal to the surface to be tested at a preset transmission angle through a radar. Specifically, the detection signal can be transmitted to the surface to be tested at a preset transmission angle through a signal transceiver device arranged on a vertical pole at a preset height. For example, the signal transceiver device can be a radar.
[0053] Among them, the purpose of transmitting the detection signal to the surface to be tested through a preset transmission angle is to prevent the detection signal from being transmitted to the curbstone to eliminate the interference of the curbstone. Therefore, in practical applications, when pre-setting the specific value of the transmission angle, it is necessary to ensure that the transmitted detection signal can bypass the curbstone. The specific value of the transmission angle is not limited here.
[0054] Preferably, when the radar transmits the detection signal to the surface to be measured at a preset transmission angle, the radar can be tilted at a corresponding angle so that the radar can better receive the reflected signal.
[0055] See also Figure 3 , Figure 3 A schematic diagram of a water level detection method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the radar can transmit a detection signal c to the detection surface according to a preset transmission angle α.
[0056] In S102, after receiving a reflection signal returned based on the detection signal, a target signal corresponding to the emission angle contained in the reflection signal is acquired.
[0057] In an embodiment of the present application, after the electronic device transmits a detection signal through a radar, it can receive through the radar the radiation signal returned after the detection signal encounters a detection surface, and obtain the target signal included in the reflected signal through a signal processing device.
[0058] Since the radar will emit detection signals in all directions when it is working, there are multiple sub-signals in the received reflected signal, and there are multiple interference signals and a target signal in the multiple sub-signals, wherein the angle between the target signal and the surface to be measured corresponds to the preset emission angle. Based on this, the electronic device can process the received reflected signal through the signal processing device to obtain the target signal corresponding to the emission angle contained in the reflected signal.
[0059] For example, Figure 3As shown, the detection signal emitted by the radar may include detection signal c and detection signal d. After encountering an obstacle, detection signal c and detection signal d will return a reflected signal. In the embodiment of the present application, since the emission angle of detection signal c is a preset emission angle, the reflected signal returned by detection signal c is the target signal, while the reflected signal returned by detection signal d is an interference signal. It should be noted that the radar will also emit Figure 3 Among the detection signals not shown in the figure, only the reflected signal returned by the detection signal c is the target signal, and the reflected signals returned by the other detection signals are interference signals.
[0060] In a possible implementation, the Figure 4 Steps S201 to S202 are used to obtain the target signal corresponding to the transmission angle contained in the reflected signal. Figure 4 A schematic diagram of a process for obtaining a target signal corresponding to a transmission angle contained in a reflection signal provided in an embodiment of the present application is described in detail as follows:
[0061] In S201, for each sub-signal included in the reflected signal, a first signal strength of the sub-signal in the vertical direction and a second signal strength in the horizontal direction are obtained, a phase angle of the sub-signal is determined based on the first signal strength and the second signal strength, and an angle between the sub-signal and the surface to be measured is determined based on the phase angle.
[0062] In this implementation, the radar receives a reflected signal including multiple sub-signals. For each sub-signal contained in the reflected signal, the radar can obtain the first signal strength of the sub-signal in the vertical direction and the second signal strength in the horizontal direction. The signal processing device can determine the phase angle of the sub-signal based on the first signal strength and the second signal strength.
[0063] Specifically, for each sub-signal, the signal processing device can represent the first signal strength with the real part of the imaginary number, and represent the second signal strength with the imaginary part of the imaginary number, so as to obtain the target imaginary number, and represent the target imaginary number through a two-dimensional vector to obtain the two-dimensional vector corresponding to the target imaginary number, and then obtain the phase angle corresponding to the sub-signal based on the two-dimensional vector.
[0064] For example, see Figure 5 , Figure 5 A schematic diagram of a method for determining the phase angle of a sub-signal provided in an embodiment of the present application. Figure 5 As shown, vector C can be Figure 3 The two-dimensional vector corresponding to the reflected signal of the detection signal c shown, and the vector D can be Figure 3The two-dimensional vector corresponding to the reflected signal of the detection signal d shown in the figure has a larger modulus length of vector D due to the shorter propagation distance of the reflected signal of the detection signal d, and a shorter modulus length of vector C due to the longer propagation distance of the reflected signal of the detection signal c. The phase angle of vector C may be β, and the phase angle of vector D may be γ.
[0065] Based on this, the signal processing device can determine the phase angle of each sub-signal according to the first signal strength and the second signal strength of each sub-signal.
[0066] Afterwards, the signal processing device determines the angle between the sub-signal and the surface to be measured based on the phase angle of each sub-signal. Figure 3 As shown, the angle between the reflected signal of the detection signal c and the surface to be measured is δ, and the angle between the reflected signal of the detection signal d and the surface to be measured is ε.
[0067] In a possible implementation, the signal processing device can determine the angle between the sub-signal and the surface to be measured according to the phase angle through steps a and b. The details are as follows:
[0068] In step a, preset mapping relationship information is obtained.
[0069] The mapping relationship information records the corresponding relationship between each preset phase angle of the signal and each preset angle. The preset angle is the angle formed between the signal and the surface to be measured.
[0070] In this implementation, the signal processing device may obtain mapping relationship information of the corresponding relationship between each preset phase angle of the preset recording signal and each preset angle.
[0071] Specifically, the correspondence between the preset phase angle and the preset angle can be obtained and recorded in advance based on multiple experiments. When it is necessary to determine the angle between the sub-signal and the surface to be measured based on the phase angle of the sub-signal, the correspondence between the preset phase angle and the preset angle can be obtained.
[0072] In step b, the angle between the sub-signal and the surface to be measured is determined according to the phase angle and the mapping relationship information.
[0073] In this implementation, after acquiring the corresponding relationship between the preset phase angle and the preset included angle, the signal processing device can determine the included angle between the sub-signal and the surface to be measured according to the phase angle and the mapping relationship information.
[0074] Based on this, the signal processing device can obtain the angle between each sub-signal and the surface to be measured.
[0075] In S202, the sub-signal corresponding to the included angle between the to-be-measured surfaces and the emission angle among the sub-signals is determined as the target signal.
[0076] In the embodiment of the present application, after acquiring the angle between each sub-signal and the surface to be measured, the signal processing device can determine the sub-signal whose angle with the surface to be measured and the emission angle are complementary angles as the target signal.
[0077] Exemplarily, the angle between the reflected signal of detection signal c and the surface to be measured is δ, and the angle between the reflected signal of detection signal d and the surface to be measured is ε, δ and the emission angle α are complementary angles, so the reflected signal of detection signal c is determined as the target signal, and ε and the emission angle α are not complementary angles, so the reflected signal of detection signal d is determined as an interference signal.
[0078] In practical applications, due to the influence of various factors, the angle between the target signal and the surface to be measured and the transmission angle may not be a strict complementary angle relationship, and there may be a certain error. Based on this, the signal processing device can determine the target angle range in advance according to the transmission angle, and after obtaining the angle between each sub-signal and the surface to be measured, determine the sub-signal whose angle between the sub-signal and the surface to be measured is within the target angle range as the target signal.
[0079] For example, if the emission angle is 15°, the angle between the target signal and the surface to be measured should be 75°. However, there are errors due to the influence of various factors. Therefore, (74°, 76°) can be determined as the target angle range, and the sub-signal whose angle with the surface to be measured is within (74°, 76°) can be determined as the target signal.
[0080] In addition, the signal processing device may also determine the target phase angle range according to the transmission angle, and after determining the phase angle of each sub-signal, determine the sub-signal corresponding to the two-dimensional vector whose phase angle is within the target phase angle range as the target signal. Figure 5 As shown, the signal processing device can determine the target phase angle range in advance according to the transmission angle, such as Figure 5 The phase angle range between the phase angle corresponding to the two-dimensional vector E and the phase angle corresponding to the two-dimensional vector F. After determining the phase angle of each sub-signal, the reflected signal of the detection signal c corresponding to the two-dimensional vector C whose phase angle is within the target phase angle range is determined as the target signal, and the sub-signal corresponding to the two-dimensional vector (such as the two-dimensional vector D) whose phase angle is not within the target phase angle range is determined as the interference signal.
[0081] In S103, the water level of the surface to be measured is determined according to the target signal.
[0082] In the embodiment of the present application, after determining the target signal, the signal processing device can determine the water level of the surface to be measured according to the target signal.
[0083] In a possible implementation, the water level of the surface to be measured can be determined according to the target signal through steps c and d, as described in detail as follows:
[0084] In step c, the propagation distance of the target signal is obtained.
[0085] In this implementation, after determining that the target signal is a reflection signal of the detection signal c, the signal processing device can determine the propagation distance of the target signal, such as Figure 3 As shown, the propagation distance of the target signal can be e.
[0086] In step d, the water level of the surface to be measured is determined according to the propagation distance and the emission angle.
[0087] In this implementation, after determining the propagation distance of the target signal, the signal processing device can determine the distance between the radar and the detection surface according to the propagation distance of the target signal and the emission angle α, such as Figure 3 As shown, the distance between the radar and the detection surface may be f. After determining the distance f between the radar and the detection surface, the signal processing device may determine the water level according to the distance f between the radar and the detection surface and the pre-stored distance g between the radar and the road surface.
[0088] Specifically, since the water level monitoring method provided in the embodiment of the present application is to transmit a detection signal through a radar set on a vertical pole at a preset height, the distance g between the radar and the road surface is fixed. Based on this, the distance g between the radar and the road surface can be measured in advance and stored in the signal processing device. After determining the distance f between the radar and the detection surface (the water surface when there is water), the difference between the distance g between the radar and the road surface and the distance f between the radar and the detection surface can be used as the water level (that is, the height difference between the surface to be measured and the road surface).
[0089] It can be seen from the above that in the water level monitoring method provided in the embodiment of the present application, a detection signal is transmitted to the surface to be measured according to a preset transmission angle, and after receiving a reflection signal returned based on the detection signal, a target signal corresponding to the transmission angle contained in the reflection signal is obtained, and finally the water level of the surface to be measured is determined according to the target signal. The embodiment of the present application sets a certain signal transmission angle so that the detection signal can successfully bypass the curbstone, so that water level monitoring can be achieved according to the target signal corresponding to the transmission angle contained in the received reflection signal. The whole process does not require the setting of a water level sensor, which can reduce the cost of water level monitoring.
[0090] Based on the water level monitoring method provided in the above embodiment, the present application further provides a water level monitoring device for implementing the above method embodiment. Figure 6 , Figure 6 This is a schematic diagram of the structure of a water level monitoring device provided in an embodiment of the present application. Figure 6As shown, the water level monitoring device 60 may include a detection signal transmitting unit 61, a first acquiring unit 62 and a first determining unit 63, wherein:
[0091] The detection signal transmitting unit is used to transmit a detection signal to the surface to be tested according to a preset transmission angle.
[0092] The first acquisition unit is used to acquire a target signal corresponding to the emission angle contained in the reflection signal after receiving the reflection signal returned based on the detection signal.
[0093] The first determination unit is used to determine the water level of the surface to be measured according to the target signal.
[0094] Optionally, the first acquisition unit may include a second determination unit and a third determination unit.
[0095] The second determination unit is used to obtain, for each sub-signal included in the reflected signal, a first signal strength in the vertical direction and a second signal strength in the horizontal direction of the sub-signal, determine a phase angle of the sub-signal based on the first signal strength and the second signal strength, and determine an angle between the sub-signal and the surface to be measured based on the phase angle.
[0096] The third determination unit is used to determine, among the sub-signals, the sub-signal corresponding to the included angle between the surface to be measured and the emission angle as the target signal.
[0097] Optionally, the second determining unit includes a second acquiring unit and a fourth determining unit, wherein:
[0098] The second acquisition unit is used to acquire preset mapping relationship information, where the mapping relationship information records the correspondence between each preset phase angle of the signal and each preset angle, where the preset angle is the angle formed between the signal and the surface to be measured.
[0099] The fourth determination unit is used to determine the angle between the sub-signal and the surface to be measured according to the phase angle and the mapping relationship information.
[0100] Optionally, the third determining unit may be specifically configured to:
[0101] Among the sub-signals, the sub-signals whose included angle with the surface to be measured and the emission angle are complementary angles are determined as target signals.
[0102] Optionally, the third determining unit may include a fifth determining unit and a sixth determining unit, wherein:
[0103] The fifth determining unit is used to determine the target angle range according to the emission angle.
[0104] The sixth determination unit is used to determine, among the sub-signals, a sub-signal whose included angle with the surface to be measured is within the target angle range as a target signal.
[0105] Optionally, the first determining unit may include a third obtaining unit and a seventh determining unit, wherein:
[0106] The third acquisition unit is used to acquire the propagation distance of the target signal.
[0107] The seventh determination unit is used to determine the water level of the surface to be measured according to the propagation distance and the emission angle.
[0108] Optionally, the detection signal transmitting unit may be specifically used for:
[0109] The detection signal is transmitted to the surface to be detected according to the transmission angle through a signal transceiver device arranged on a vertical pole at a preset height.
[0110] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be specifically referred to the method embodiment part and will not be repeated here.
[0111] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 7 provided in this embodiment may include: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. For example, a program corresponding to the water level monitoring method. When the processor 70 executes the computer program 72, the steps applied to the water level monitoring method embodiment are implemented, for example Figure 2 S101 to S103 shown and Figure 4 Alternatively, when the processor 70 executes the computer program 72, the functions of each module / unit in the embodiment corresponding to the electronic device 7 are realized, for example Figure 6 The functions of the units 61 to 63 are shown.
[0112] Exemplarily, the computer program 72 may be divided into one or more modules / units, one or more modules / units are stored in the memory 71 and executed by the processor 70 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 72 in the electronic device 7. For example, the computer program 72 may be divided into a detection signal transmitting unit 61, a first acquisition unit 62, and a first determination unit 63. For the specific functions of each unit, please refer to Figure 6 The relevant descriptions in the corresponding embodiments are not repeated here.
[0113] Those skilled in the art will understand that Figure 7This is merely an example of the electronic device 7 and does not constitute a limitation on the electronic device 7 , which may include more or less components than those shown in the figure, or a combination of certain components, or different components.
[0114] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0115] The memory 71 may be an internal storage unit of the electronic device 7, such as a hard disk or memory of the electronic device 7. The memory 71 may also be an external storage device of the electronic device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card, etc., equipped on the electronic device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the electronic device 7. The memory 71 is used to store computer programs and other programs and data required by the electronic device. The memory 71 may also be used to temporarily store data that has been output or is to be output.
[0116] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the water level monitoring device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0117] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0118] An embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device implements the steps in the above-mentioned various method embodiments.
[0119] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0121] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A water level monitoring method, It is characterized in that include: According to the preset transmission angle, the detection signal is transmitted to the surface to be tested; After receiving a reflected signal returned based on the detection signal, acquiring a target signal corresponding to the emission angle contained in the reflected signal; Determining the water level of the surface to be measured according to the target signal; The acquiring the target signal corresponding to the emission angle contained in the reflection signal comprises: For each sub-signal included in the reflected signal, obtain a first signal strength of the sub-signal in the vertical direction and a second signal strength in the horizontal direction, determine a phase angle of the sub-signal according to the first signal strength and the second signal strength, and determine an angle between the sub-signal and the surface to be measured according to the phase angle; Determine, among the sub-signals, the sub-signal corresponding to the angle between the sub-signals and the surface to be measured and the emission angle as the target signal; The step of determining, among the sub-signals, the sub-signal corresponding to the angle between the sub-signals and the surface to be measured and the emission angle as the target signal comprises: Determine, among the sub-signals, the sub-signal whose included angle with the surface to be measured and the emission angle are complementary angles to each other as the target signal; The step of determining the angle between the sub-signal and the surface to be measured according to the phase angle comprises: Acquire preset mapping relationship information, where the mapping relationship information records the correspondence between each preset phase angle of the signal and each preset angle, where the preset angle is the angle formed between the signal and the surface to be measured; The angle between the sub-signal and the surface to be measured is determined according to the phase angle and the mapping relationship information.
2. The method according to claim 1, It is characterized in that Determining the water level of the surface to be measured according to the target signal includes: Obtaining a propagation distance of the target signal; The water level of the surface to be measured is determined according to the propagation distance and the emission angle.
3. The method according to any one of claims 1 to 2, It is characterized in that The step of transmitting a detection signal to the surface to be tested according to a preset transmission angle includes: The detection signal is transmitted to the surface to be detected according to the transmission angle through a signal transceiver device arranged on a vertical pole at a preset height.
4. A water level monitoring device, It is characterized in that include: A detection signal transmitting unit, used to transmit a detection signal to the surface to be tested according to a preset transmission angle; A first acquisition unit, configured to acquire, after receiving a reflection signal returned based on the detection signal, a target signal corresponding to the emission angle contained in the reflection signal; A first determining unit, used to determine the water level of the surface to be measured according to the target signal; The first acquisition unit is specifically used for: For each sub-signal included in the reflected signal, obtain a first signal strength of the sub-signal in the vertical direction and a second signal strength in the horizontal direction, determine a phase angle of the sub-signal according to the first signal strength and the second signal strength, and determine an angle between the sub-signal and the surface to be measured according to the phase angle; Determine, among the sub-signals, the sub-signal corresponding to the angle between the sub-signals and the surface to be measured and the emission angle as the target signal; The first acquisition unit is specifically used for: Determine, among the sub-signals, the sub-signal whose included angle with the surface to be measured and the emission angle are complementary angles to each other as the target signal; The first acquisition unit is specifically used for: Acquire preset mapping relationship information, where the mapping relationship information records the correspondence between each preset phase angle of the signal and each preset angle, where the preset angle is the angle formed between the signal and the surface to be measured; The angle between the sub-signal and the surface to be measured is determined according to the phase angle and the mapping relationship information.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, each step of the water level monitoring method according to any one of claims 1 to 3 is implemented.
6. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, each step of the water level monitoring method according to any one of claims 1 to 3 is implemented.
