CN112485226B - Interface detection method, device, equipment and computer equipment - Google Patents
Interface detection method, device, equipment and computer equipment Download PDFInfo
- Publication number
- CN112485226B CN112485226B CN202011236558.1A CN202011236558A CN112485226B CN 112485226 B CN112485226 B CN 112485226B CN 202011236558 A CN202011236558 A CN 202011236558A CN 112485226 B CN112485226 B CN 112485226B
- Authority
- CN
- China
- Prior art keywords
- signal
- detection
- preset
- frequency
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 310
- 238000005070 sampling Methods 0.000 claims abstract description 70
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims abstract description 49
- 238000002310 reflectometry Methods 0.000 claims abstract description 47
- 238000004364 calculation method Methods 0.000 claims abstract description 45
- 238000010183 spectrum analysis Methods 0.000 claims abstract description 38
- 230000003287 optical effect Effects 0.000 claims abstract description 33
- 238000000034 method Methods 0.000 claims abstract description 22
- 238000000926 separation method Methods 0.000 claims abstract description 17
- 238000006243 chemical reaction Methods 0.000 claims description 33
- 230000015654 memory Effects 0.000 claims description 19
- 239000007787 solid Substances 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 4
- 239000007788 liquid Substances 0.000 claims description 3
- 239000002689 soil Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005553 drilling Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000012535 impurity Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000000704 physical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 239000004576 sand Substances 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/17—Systems in which incident light is modified in accordance with the properties of the material investigated
- G01N21/47—Scattering, i.e. diffuse reflection
- G01N21/4738—Diffuse reflection, e.g. also for testing fluids, fibrous materials
Landscapes
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
- Geophysics And Detection Of Objects (AREA)
Abstract
The invention discloses an interface detection method, a device, equipment and computer equipment, wherein the method is applied to interface detection equipment, the interface detection equipment comprises a signal generation unit, the interface detection equipment sends a detection frequency signal to the signal generation unit, so that the signal generation unit generates a sine wave detection signal corresponding to the detection frequency signal, and the method comprises the following steps: the control signal generating unit generates a sine wave detection signal, and the sine wave detection signal is used for driving the light emitting unit to emit corresponding light signals; receiving an electrical signal corresponding to a reflected optical signal of the optical signal; processing an electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points of a first preset single frequency spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal; and determining a separation interface between different media according to the reflectivity of the surface to be detected.
Description
Technical Field
The present invention relates to the field of photoelectric detection technologies, and in particular, to an interface detection method, apparatus, device, and computer device.
Background
Interface detection refers to detection of a liquid-solid interface or a liquid-liquid interface or a solid-solid interface position, for example, when a snow layer is observed, a drill bit is required to drill downwards from the top end of snow to the junction of snow and soil, so that the section of the snow layer is vertically exposed to the inner wall of a drill hole, analysis and treatment are facilitated, and after the drill bit reaches the junction of the snow and soil, the drill bit should be stopped in time, so that impurities such as sand and soil are prevented from polluting the section of the snow layer. Therefore, the snow drilling device should judge whether the snow-soil interface is reached in time. Interface detection typically uses differences in the physical properties, such as reflectivity, of the adjacent interface media.
The reflectivity detection device in the related art includes: the control processing unit controls the light source to emit light with specific wavelength and intensity to irradiate the surface to be detected, the photoelectric sensor receives reflected light of the surface to be detected, the signal conditioner converts an output signal of the photoelectric sensor into a voltage signal, the control processing unit estimates the intensity of the reflected light by measuring the value of the voltage, and then qualitatively measures the reflectivity of the surface to be detected to determine whether a separation interface is reached. However, when the surface to be detected cannot meet the strict shading condition, direct or reflected ambient light can enter the photoelectric sensor as well, the detection of the reflected light is interfered, the calculation of the reflectivity is affected, and the interface detection accuracy is low.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect that the detection device in the prior art cannot exclude the influence of ambient light, so that the interface detection accuracy is low, and thus an interface detection method, device, equipment and computer equipment are provided.
According to a first aspect, an embodiment of the present invention discloses an interface detection method, applied to an interface detection device, where the interface detection device includes a signal generating unit, and the interface detection device sends a detection frequency signal to the signal generating unit, so that the signal generating unit generates a sine wave detection signal corresponding to the detection frequency signal, where a detection frequency corresponding to the detection frequency signal is different from an ambient light frequency in a current detection environment, and the method includes the following steps: the signal generation unit is controlled to generate a sine wave detection signal, and the sine wave detection signal is used for driving the light emitting unit to emit a corresponding light signal; receiving an electrical signal corresponding to a reflected optical signal of the optical signal; processing an electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points used for first preset single spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal; and determining a separation interface between different media according to the reflectivity of the surface to be detected.
Optionally, the detection frequency corresponding to the detection frequency signal is determined according to the following steps: acquiring any preset frequency, wherein the preset frequency is different from the frequency of the ambient light in the current detection environment; when receiving the reflected light signals of other equipment, processing the reflected light signals of the other equipment according to a second preset calculation parameter to obtain physical information of the reflected light signals of the other equipment, wherein the second preset calculation parameter comprises a second preset sampling frequency and sampling points used by second preset single frequency spectrum analysis, and the second preset sampling frequency is determined according to the preset frequency; and when the physical information of the reflected light signal meets a preset condition, taking the preset frequency as the detection frequency corresponding to the detection frequency signal.
Optionally, the method further comprises: and when the physical information of the reflected light signal does not meet the preset condition, repeating the steps of acquiring the preset frequency, processing the reflected light signal of the other equipment according to the second preset calculation parameter, and obtaining the physical information of the reflected light signal of the other equipment until the physical information of the reflected light signal meets the preset condition, and taking the preset frequency as the detection frequency corresponding to the detection frequency signal.
Optionally, the method further comprises: acquiring an initialization signal of interface detection equipment; and controlling the interface detection equipment to initialize according to the equipment initialization signal.
Optionally, the processing the electrical signal corresponding to the reflected light signal according to the first preset calculation parameter to obtain the reflectivity of the surface to be detected includes: converting the electric signal corresponding to the reflected light signal into a digital sequence according to the first preset sampling frequency; and carrying out spectrum analysis on the digital sequence according to the sampling points used by the first preset single spectrum analysis to obtain the reflectivity of the surface to be detected.
According to a second aspect, an embodiment of the present invention further discloses an interface detection apparatus, which is applied to an interface detection device, where the interface detection device includes a signal generating unit, and the interface detection device sends a detection frequency signal to the signal generating unit, so that the signal generating unit generates a sine wave detection signal corresponding to the detection frequency signal, where a detection frequency corresponding to the detection frequency signal is different from an ambient light frequency in a current detection environment, and the apparatus includes: the control module is used for controlling the signal generation unit to generate a sine wave detection signal, and the sine wave detection signal is used for driving the light emitting unit to emit a corresponding light signal; the receiving module is used for receiving an electric signal corresponding to the reflected optical signal of the optical signal; the processing module is used for processing the electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points used for first preset single spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal; and the determining module is used for determining the separation interface between different media according to the reflectivity of the surface to be detected.
According to a third aspect, an embodiment of the present invention further discloses an interface detection apparatus, including: a signal generating unit for emitting a sine wave detection signal; the light-emitting unit is connected with the signal generation unit and is used for emitting corresponding light signals according to the driving of the sine wave detection signals; a photoelectric conversion unit for converting a reflected optical signal of the optical signal into a corresponding electrical signal; and a processor, connected to the signal generating unit and the photoelectric conversion unit, respectively, for executing the steps of the interface detection method according to the first aspect or any implementation manner of the first aspect.
Optionally, the apparatus further comprises: and the voltage-current conversion unit is respectively connected with the signal generation unit and the light-emitting unit and is used for converting the sine wave detection signal into a current detection signal and then sending the current detection signal to the light-emitting unit.
Optionally, the photoelectric conversion unit includes a photodiode and a current-voltage conversion unit.
According to a fourth aspect, an embodiment of the present invention also discloses a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the interface detection method according to the first aspect or any alternative implementation of the first aspect.
According to a fifth aspect, the embodiment of the present invention further discloses a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of the interface detection method according to the first aspect or any optional implementation manner of the first aspect.
The technical scheme of the invention has the following advantages:
1. the interface detection method and the device are applied to interface detection equipment, the interface detection equipment comprises a signal generation unit, the interface detection equipment sends a detection frequency signal to the signal generation unit, so that the signal generation unit generates a sine wave detection signal corresponding to the detection frequency signal, the sine wave detection signal is generated by controlling the signal generation unit, and the sine wave detection signal is used for driving a light emitting unit to emit a corresponding light signal; receiving an electrical signal corresponding to a reflected optical signal of the optical signal; processing an electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points used for first preset single spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal; and determining a separation interface between different media according to the reflectivity of the surface to be detected. According to the invention, the sine wave detection signal with the preset detection frequency is generated by the control signal generation unit, only the preset detection frequency is concerned when the electric signal corresponding to the reflected light signal is processed according to the preset calculation parameter, and the change rate of the ambient light is different from the preset detection frequency, so that the influence of the ambient light is eliminated, and the interface detection accuracy is improved.
2. According to the interface detection equipment provided by the invention, the processor is used for sending the detection frequency signal to the signal generation unit, so that the signal generation unit sends out a corresponding sine wave detection signal; the light-emitting unit is connected with the signal generation unit and is used for emitting corresponding optical signals according to the driving of the sine wave detection signals; a photoelectric conversion unit for converting a reflected optical signal of the optical signal into a corresponding electrical signal; and the processor is respectively connected with the signal generation unit and the photoelectric conversion unit and is used for processing the electric signals corresponding to the reflected light signals according to the first preset calculation parameters to obtain the reflectivity of the surface to be detected, and determining the separation interfaces among different media according to the reflectivity of the surface to be detected. The interface detection device provided by the invention generates the sine wave detection signal with the preset detection frequency through the processor control signal generation unit, only the preset detection frequency is concerned when the electric signal corresponding to the reflected light signal is processed according to the preset calculation parameter, and the change rate of the ambient light is different from the preset detection frequency, so that the influence of the ambient light is eliminated, and the interface detection accuracy is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a specific example of an interface detection method according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of a specific example of an interface detection device in an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a specific example of an interface detection device in an embodiment of the present invention;
fig. 4 is a diagram showing a specific example of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, or can be communicated inside the two components, or can be connected wirelessly or in a wired way. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
The embodiment of the invention discloses an interface detection method, which is applied to interface detection equipment, wherein the interface detection equipment comprises a signal generation unit, the interface detection equipment sends a detection frequency signal to the signal generation unit, so that the signal generation unit generates a sine wave detection signal corresponding to the detection frequency signal, the detection frequency corresponding to the detection frequency signal is different from the frequency of ambient light in the current detection environment, as shown in fig. 1, and the method comprises the following steps:
S11: the control signal generating unit generates a sine wave detection signal, and the sine wave detection signal is used for driving the light emitting unit to emit corresponding light signals.
Illustratively, the interface detection device may include: the device comprises a signal generating unit, a light emitting unit, a photoelectric conversion unit and a processor, wherein the processor sends a detection frequency signal to the signal generating unit, so that the signal generating unit generates a sine wave detection signal corresponding to the detection frequency signal, the sine wave detection signal is used for driving the light emitting unit to emit a corresponding light signal, the photoelectric conversion unit receives a reflected light signal of the light signal and converts the reflected light signal into a voltage signal and sends the voltage signal to the processor for processing, and the photoelectric conversion unit can comprise a photodiode and a current-voltage conversion unit, wherein the photodiode is used for converting the reflected light signal of the light signal into a current signal, and the current-voltage conversion unit is used for converting the current signal into the voltage signal.
The sine wave detection signal can be the detection frequency f 0 A sine wave with amplitude A, DC offset B and stable phase. The detection frequency can be called from a memory for storing a plurality of preset frequencies, and can be set by a user according to actual conditions. It should be noted that the detection frequency cannot exceed the highest frequency that the light emitting unit and the photoelectric conversion unit can respond to, and the method for determining the detection frequency according to the embodiment of the present invention is not particularly limited, and those skilled in the art can select according to practical situations.
The light emitting unit may be a light emitting diode, and the amplitude and the dc offset must satisfy B >0.5A in order to ensure that the current transmitted to the light emitting diode is positive due to unidirectional conductivity of the diode.
S12: and receiving a voltage signal corresponding to the reflected light signal of the light signal.
The electrical signal is illustratively a voltage current signal. The electrical signal may be received from the photoelectric conversion unit through a wired or wireless network, and the method for receiving the electrical signal according to the embodiment of the present invention is not particularly limited, and may be set by those skilled in the art according to actual situations.
S13: and processing the electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points used for the first preset single spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal.
The first preset sampling frequency is illustratively determined according to the detection frequency corresponding to the detection frequency signal, specifically, the first preset sampling frequency f s Should satisfy f s >2f 0 . The number of sampling points used in the first preset single spectrum analysis may be 1024, and in order to increase the detection rate, the number of sampling points used in the first preset single spectrum analysis may be set to a larger value, so long as the number of sampling points used in the first preset single spectrum analysis is 2 N (N is a positive integer). The first preset calculated parameter at each detection may be different as long as the above requirements are met. The interface detection device emits sine wave detection signals in real time, and the surface to be detected is a surface detected in real time.
Processing the electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the reflectivity of the surface to be detected can be specifically: the method comprises the steps of firstly carrying out analog-to-digital conversion on an electric signal corresponding to a reflected light signal according to a first preset sampling frequency, converting the electric signal into a digital sequence, and then carrying out spectrum analysis on the digital sequence according to the number of sampling points used by first preset single spectrum analysis to obtain the reflectivity of the surface to be detected. The spectrum analysis method may be a fast fourier transform, and the spectrum analysis method is not particularly limited in the embodiment of the present invention, and may be selected by those skilled in the art according to practical situations.
Sampling points used when a first predetermined single spectrum analysis is performedNumber is 2 N When the digital sequence is subjected to spectrum analysis according to the sampling points used by the first preset single spectrum analysis, the calculation time is equivalent to 2 N-1 The magnitudes of the frequency components are used to qualitatively estimate the reflectivity of the surface to be inspected based on the magnitudes of the frequency components.
S14: and determining a separation interface between different media according to the reflectivity of the surface to be detected.
Illustratively, when the optical signals propagate in different media, the reflectivities of the reflected light are different, the interface detection device is utilized to send a sine detection signal to the surface to be detected in real time, and according to the reflectivities calculated in real time, when the reflectivities change greatly, the surface corresponding to the reflectivities is determined to be a separation interface between the different media.
The interface detection method provided by the invention is applied to interface detection equipment, the interface detection equipment comprises a signal generation unit, the interface detection equipment sends a detection frequency signal to the signal generation unit, so that the signal generation unit generates a sine wave detection signal corresponding to the detection frequency signal, the sine wave detection signal is generated by controlling the signal generation unit, and the sine wave detection signal is used for driving a light emitting unit to emit a corresponding light signal; receiving an electrical signal corresponding to a reflected optical signal of the optical signal; processing an electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points used for first preset single spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal; and determining a separation interface between different media according to the reflectivity of the surface to be detected. According to the invention, the sine wave detection signal with the preset detection frequency is generated by the control signal generation unit, only the preset detection frequency is concerned when the electric signal corresponding to the reflected light signal is processed according to the preset calculation parameter, and the change rate of the ambient light is different from the preset detection frequency, so that the influence of the ambient light is eliminated, and the interface detection accuracy is improved.
As an optional implementation manner of the embodiment of the present invention, when detecting a snow-soil interface in a certain area, in order to improve detection efficiency, a plurality of interface detection devices need to be used for detection at the same time, at this time, optical signals emitted by the plurality of interface detection devices may interfere with each other, so the plurality of interface detection devices need to use different frequencies as detection frequencies, so the detection frequencies corresponding to the detection frequency signals are determined by the following steps to avoid the interference of the plurality of interface detection devices:
firstly, any preset frequency is acquired, and the preset frequency is different from the frequency of the ambient light in the current detection environment.
The preset frequency may be preset and stored in a database, and may be directly called when in use, or may be optionally input to the interface detection device by an operator from one of the preset frequencies according to actual conditions.
And secondly, when the reflected light signals of other equipment are received, the reflected light signals of the other equipment are processed according to a second preset calculation parameter, so that physical information of the reflected light signals of the other equipment is obtained, the second preset calculation parameter comprises a second preset sampling frequency and the number of sampling points used for second preset single spectrum analysis, and the second preset sampling frequency is determined according to the preset frequency.
The physical information may be, for example, the intensity of the reflected light signal or the energy of the reflected light signal, which is not particularly limited in the embodiment of the present invention, and may be set by those skilled in the art according to practical situations.
The other devices may be other interface detection devices, and may also be other devices that emit light, such as a mobile phone terminal. When the reflected light signals of other devices are received, it is indicated that the reflected light of the other devices may affect the reflectivity determination of the interface detection device in the embodiment of the present invention, and therefore, the reflected light signals of the other devices are processed according to the second preset calculation parameters to determine whether the reflectivity of the interface detection device in the embodiment of the present invention is affected. The specific processing procedure is the same as the processing procedure of the electric signal of the reflected light signal by referring to the first preset calculation parameter, and will not be described herein again. The number of sampling points used by the second preset single spectrum analysis is the same as the number of sampling points used by the first preset single spectrum analysis, and can be set according to actual conditions. The second preset sampling frequency needs to be greater than 2 times the preset frequency.
And when the physical information of the reflected light signal meets the preset condition, taking the preset frequency as the detection frequency corresponding to the detection frequency signal.
For example, the preset condition may be determined according to different physical information, for example, when the physical information is energy, the preset condition may be whether the energy of the reflected light signal is 0; when the physical information is the intensity of the reflected light signal, the preset condition may be whether the intensity of the reflected light signal is smaller than a preset threshold, and the preset threshold may be set in advance. The preset conditions are not particularly limited in the embodiment of the present invention, and may be set by those skilled in the art according to actual situations. When the physical information of the reflected light signal meets the preset condition, the preset frequency is indicated not to be used by other equipment, and the preset frequency is directly used as the detection frequency corresponding to the detection frequency signal.
And when the physical information of the reflected light signals does not meet the preset condition, repeating the steps of acquiring the preset frequency and processing the reflected light signals of other equipment according to the second preset calculation parameters to obtain the physical information of the reflected light signals of the other equipment until the physical information of the reflected light signals meets the preset condition, and taking the preset frequency as the detection frequency corresponding to the detection frequency signal.
In an exemplary embodiment, when the physical information of the reflected light signal does not satisfy the preset condition, the preset frequency is indicated to be used by other devices, in order to avoid crosstalk between the interface detection devices and improve the reliability of interface detection, the steps of acquiring the preset frequency to when the reflected light signal of the other devices is processed according to the second preset calculation parameter to obtain the physical information of the reflected light signal of the other devices are repeatedly performed, and a new frequency is selected to perform detection until the physical information of the reflected light signal satisfies the preset condition, and the preset frequency is taken as the detection frequency corresponding to the detection frequency signal.
When the preset frequencies are used by other interface detection equipment, a prompt message is sent out, the interface detection equipment is closed or the newly set preset frequency is input again for detection, and the interface detection equipment is used after detection.
As an optional implementation manner of the embodiment of the present invention, each time the interface detection device is used for inspection, the interface detection device needs to be initialized, so the interface detection method further includes:
first, an initialization signal of an interface detection device is acquired.
Illustratively, the initialization signal may include a hardware initialization signal and a software initialization signal, wherein the hardware initialization may include power-on, self-checking, time-delay, etc., and the software initialization may include state reset, variable initialization values, loading device-related parameters, etc. The method for acquiring the initialization signal can be acquired by a user by pressing an associated button of the interface detection device. The embodiment of the invention does not limit the initializing signal and the acquiring method of the initializing signal, and the person skilled in the art can set the initializing signal according to the actual situation.
And secondly, controlling the interface detection equipment to initialize according to the equipment initialization signal.
For example, the interface detection device is controlled to be initialized according to the device initialization signal, and a control signal can be sent to corresponding software or hardware for the processor of the interface detection device according to the initialization signal to control the processor to perform corresponding initialization operation. For example, the processor sends a reset signal to the signal generating unit, and the signal generating unit is controlled to reset, so that the signal generating unit is prevented from generating the sine wave signal set last time.
According to the embodiment of the invention, the software and the hardware of the interface detection equipment are initialized, so that the preparation work is performed before the interface detection, and the interface detection efficiency is improved.
The embodiment of the invention also discloses an interface detection device which is applied to interface detection equipment, the interface detection equipment comprises a signal generation unit, the interface detection equipment sends a detection frequency signal to the signal generation unit, so that the signal generation unit generates a sine wave detection signal corresponding to the detection frequency signal, the detection frequency corresponding to the detection frequency signal is different from the frequency of the ambient light in the current detection environment, as shown in fig. 2, the interface detection device comprises:
a control module 21 for controlling the signal generating unit to generate a sine wave detection signal for driving the light emitting unit to emit a corresponding light signal; the specific implementation manner is shown in step S11 in the above embodiment, and will not be described herein.
A receiving module 22, configured to receive an electrical signal corresponding to a reflected optical signal of the optical signal; the specific implementation manner is shown in step S12 in the above embodiment, and will not be described herein.
The processing module 23 is configured to process an electrical signal corresponding to the reflected light signal according to a first preset calculation parameter, so as to obtain a reflectivity of the surface to be detected, where the first preset calculation parameter includes a first preset sampling frequency and a number of sampling points used for a first preset single spectrum analysis, and the first preset sampling frequency is determined according to a detection frequency corresponding to the detection frequency signal; the specific implementation manner is shown in step S13 in the above embodiment, and will not be described herein.
A determining module 24 for determining a separation interface between different media based on the reflectivity of the surface to be detected. The specific implementation manner is shown in step S14 in the above embodiment, and will not be described herein.
The interface detection device provided by the invention is applied to interface detection equipment, the interface detection equipment comprises a signal generation unit, the interface detection equipment sends a detection frequency signal to the signal generation unit, so that the signal generation unit generates a sine wave detection signal corresponding to the detection frequency signal, the sine wave detection signal is generated by controlling the signal generation unit, and the sine wave detection signal is used for driving a light emitting unit to emit a corresponding light signal; receiving an electrical signal corresponding to a reflected optical signal of the optical signal; processing an electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points used for first preset single spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal; and determining a separation interface between different media according to the reflectivity of the surface to be detected. According to the invention, the sine wave detection signal with the preset detection frequency is generated by the control signal generation unit, only the preset detection frequency is concerned when the electric signal corresponding to the reflected light signal is processed according to the preset calculation parameter, and the change rate of the ambient light is different from the preset detection frequency, so that the influence of the ambient light is eliminated, and the interface detection accuracy is improved.
The embodiment of the invention also discloses interface detection equipment, as shown in fig. 3, comprising:
the signal generating unit 31 is used for sending out sine wave detection signals.
The signal generating unit 31 may be a sine wave generator or a signal generator, and the signal generating unit 31 is not particularly limited in the embodiment of the present invention, and may be set by those skilled in the art according to practical situations. The signal generating unit 31 may emit a sine wave detection signal of a specific detection frequency, amplitude, and dc offset.
And a light emitting unit 32 connected to the signal generating unit 31 for emitting a corresponding light signal according to the driving of the sine wave detection signal.
The light emitting unit 32 may be a light emitting diode, for example, to emit a corresponding light signal according to driving of the sine wave detection signal. The light emitting diode should have a strong directivity to reduce light directly entering the photoelectric conversion unit 33 without being reflected by the surface to be detected. The light emitting diode should select a model with a peak wavelength that corresponds to the sensitive wavelength of the surface to be inspected.
The photoelectric conversion unit 33 is configured to convert a reflected optical signal of the optical signal into a corresponding electrical signal.
The electrical signal is illustratively a voltage signal. The photoelectric conversion unit 33 includes a photodiode 331 and a current-voltage conversion unit 332, the photodiode 331 converts a reflected light signal of a light signal into a current signal, and The current-voltage conversion unit 332 converts the current signal into a corresponding voltage signal according to a linear rule, and the proportionality coefficient should satisfy that the output voltage peak value is approximately equal to 2/3 of the highest voltage acceptable to the processor. And the bandwidth of the current-voltage conversion unit 332 should be greater than the detection frequency f 0 . The photodiode 331 should have weak directivity to better receive light emitted from the light emitting diode reflected by the surface to be detected. The sensitive wavelength of photodiode 331 should be matched to the light emitting diode.
The processor 34 is connected to the signal generating unit 31 and the photoelectric conversion unit 33, respectively, and is configured to perform the steps of the above-described interface detection method embodiment.
According to the interface detection equipment provided by the invention, the processor is used for sending the detection frequency signal to the signal generation unit, so that the signal generation unit sends out a corresponding sine wave detection signal; the light-emitting unit is connected with the signal generation unit and is used for emitting corresponding optical signals according to the sine wave detection signals; a photoelectric conversion unit for converting an electric signal corresponding to a reflected optical signal of the optical signal; and the processor is respectively connected with the signal generation unit and the photoelectric conversion unit and is used for processing the electric signals corresponding to the reflected light signals according to the first preset calculation parameters to obtain the reflectivity of the surface to be detected, and determining the separation interfaces among different media according to the reflectivity of the surface to be detected. The interface detection device provided by the invention generates the sine wave detection signal with the preset detection frequency through the processor control signal generation unit, only the preset detection frequency is concerned when the electric signal corresponding to the reflected light signal is processed according to the preset calculation parameter, and the change rate of the ambient light is different from the preset detection frequency, so that the influence of the ambient light is eliminated, and the interface detection accuracy is improved.
As an optional implementation manner of the embodiment of the present invention, the interface detection device further includes:
the voltage-current conversion unit 35 is connected to the signal generation unit 31 and the light emitting unit 32, and converts the sine wave detection signal into a current detection signal and sends the current detection signal to the light emitting unit 32.
Illustratively, the voltage-to-current conversion unit 35 will signalThe sine voltage from the number generating unit 31 is converted into current according to a linear rule, and the amplitude and DC offset in the sine wave detection signal should satisfy that B+0.5A is smaller than or equal to the minimum input of the voltage-current converting unit 35, and the bandwidth of the voltage-current converting unit 35 is larger than the detection frequency f 0 。
The embodiment of the present invention further provides a computer device, as shown in fig. 4, which may include a processor 41 and a memory 42, where the processor 41 and the memory 42 may be connected by a bus or other means, and in fig. 4, the connection is exemplified by a bus.
The processor 41 may be a central processing unit (Central Processing Unit, CPU). The processor 41 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above.
The memory 42 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the control module 21, the receiving module 22, the processing module 23, and the determining module 24 shown in fig. 2) corresponding to the interface detection method in the embodiment of the invention. The processor 41 executes various functional applications of the processor and data processing, i.e., implements the interface detection method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 42.
Memory 42 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created by the processor 41, etc. In addition, memory 42 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 42 may optionally include memory located remotely from processor 41, which may be connected to processor 41 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 42, which when executed by the processor 41, performs the interface detection method in the embodiment shown in fig. 1.
The details of the above computer device may be understood correspondingly with respect to the corresponding relevant descriptions and effects in the embodiment shown in fig. 1, which are not repeated here.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, where the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (RandomAccessMemory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.
Claims (8)
1. The interface detection method is applied to interface detection equipment, and the interface detection refers to detection of a liquid-solid interface or a liquid-liquid interface or a solid-solid interface position, and is characterized in that the interface detection equipment comprises a signal generation unit, a light-emitting unit and a processor, the processor sends a detection frequency signal to the signal generation unit, so that the signal generation unit generates a sine wave detection signal corresponding to the detection frequency signal, and the detection frequency corresponding to the detection frequency signal is different from the ambient light frequency in the current detection environment, and the method comprises the following steps:
the signal generation unit is controlled to generate a sine wave detection signal, and the sine wave detection signal is used for driving the light emitting unit to emit a corresponding light signal;
receiving an electrical signal corresponding to a reflected optical signal of the optical signal;
processing an electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points used for first preset single spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal; a first preset sampling frequency f s Satisfy f s >2f 0 Wherein f 0 Is the detection frequency; the sampling point number used by the first preset single spectrum analysis is 2 N N is a positive integer;
the processing the electric signal corresponding to the reflected light signal according to the first preset calculation parameter to obtain the reflectivity of the surface to be detected includes: performing analog-to-digital conversion on an electric signal corresponding to the reflected light signal according to a first preset sampling frequency, and converting the electric signal into a digital sequence; carrying out spectrum analysis on the digital sequence according to the number of sampling points used by the first preset single spectrum analysis to obtain the reflectivity of the surface to be detected;
determining a separation interface between different media according to the reflectivity of the surface to be detected, wherein the separation interface comprises: transmitting a sine detection signal to a surface to be detected in real time by using interface detection equipment, and determining that the surface corresponding to the reflectivity is a separation interface between different media when the reflectivity calculated in real time changes greatly;
the detection frequency corresponding to the detection frequency signal is determined according to the following steps:
(1) Acquiring any preset frequency, wherein the preset frequency is different from the frequency of the ambient light in the current detection environment;
(2) When receiving the reflected light signals of other equipment, processing the reflected light signals of the other equipment according to a second preset calculation parameter to obtain physical information of the reflected light signals of the other equipment, wherein the second preset calculation parameter comprises a second preset sampling frequency and sampling points used by second preset single spectrum analysis, the second preset sampling frequency is determined according to the preset frequency, the second preset sampling frequency needs a preset frequency which is more than 2 times, and the sampling points used by the second preset single spectrum analysis are the same as the sampling points used by the first preset single spectrum analysis; the other devices are other interface detection devices or other devices capable of emitting light; the physical information is the intensity of the reflected light signal or the energy of the reflected light signal;
(3) When the physical information of the reflected light signal meets a preset condition, taking the preset frequency as the detection frequency corresponding to the detection frequency signal;
when the physical information is energy, the preset condition is whether the energy of the reflected light signal is 0; when the physical information is the intensity of the reflected light signal, the preset condition is whether the intensity of the reflected light signal is smaller than a preset threshold value;
(4) And (3) when the physical information of the reflected light signal does not meet the preset condition, repeating the steps (1) - (2) until the physical information of the reflected light signal meets the preset condition, and taking the preset frequency as the detection frequency corresponding to the detection frequency signal.
2. The method according to claim 1, wherein the method further comprises:
acquiring an initialization signal of interface detection equipment;
and controlling the interface detection equipment to initialize according to the initialization signal.
3. An interface detection device is applied to interface detection equipment, and interface detection refers to detection of a liquid-solid interface or a liquid-liquid interface or a solid-solid interface position, and is characterized in that the interface detection equipment comprises a signal generation unit, a light emitting unit and a processor, the processor sends a detection frequency signal to the signal generation unit, so that the signal generation unit generates a sine wave detection signal corresponding to the detection frequency signal, and the detection frequency corresponding to the detection frequency signal is different from the frequency of ambient light in the current detection environment, and the device comprises:
The control module is used for controlling the signal generation unit to generate a sine wave detection signal, and the sine wave detection signal is used for driving the light emitting unit to emit a corresponding light signal;
the receiving module is used for receiving an electric signal corresponding to the reflected optical signal of the optical signal;
the processing module is used for processing the electric signal corresponding to the reflected light signal according to a first preset calculation parameter to obtain the reflectivity of the surface to be detected, wherein the first preset calculation parameter comprises a first preset sampling frequency and the number of sampling points used for first preset single spectrum analysis, and the first preset sampling frequency is determined according to the detection frequency corresponding to the detection frequency signal; a first preset sampling frequency f s Satisfy f s >2f 0 Wherein f 0 Is the detection frequency; the sampling point number used by the first preset single spectrum analysis is 2 N N is a positive integer;
the processing module specifically comprises: performing analog-to-digital conversion on an electric signal corresponding to the reflected light signal according to a first preset sampling frequency, and converting the electric signal into a digital sequence; carrying out spectrum analysis on the digital sequence according to the number of sampling points used by the first preset single spectrum analysis to obtain the reflectivity of the surface to be detected;
a determining module, configured to determine a separation interface between different media according to the reflectivity of the surface to be detected, including: transmitting a sine detection signal to a surface to be detected in real time by using interface detection equipment, and determining that the surface corresponding to the reflectivity is a separation interface between different media when the reflectivity calculated in real time changes greatly;
The detection frequency corresponding to the detection frequency signal is determined according to the following steps:
(1) Acquiring any preset frequency, wherein the preset frequency is different from the frequency of the ambient light in the current detection environment;
(2) When receiving the reflected light signals of other equipment, processing the reflected light signals of the other equipment according to a second preset calculation parameter to obtain physical information of the reflected light signals of the other equipment, wherein the second preset calculation parameter comprises a second preset sampling frequency and sampling points used by second preset single spectrum analysis, the second preset sampling frequency is determined according to the preset frequency, the second preset sampling frequency needs a preset frequency which is more than 2 times, and the sampling points used by the second preset single spectrum analysis are the same as the sampling points used by the first preset single spectrum analysis; the other devices are other interface detection devices or other devices capable of emitting light, and the physical information is the intensity of the reflected light signal or the energy of the reflected light signal;
(3) When the physical information of the reflected light signal meets a preset condition, taking the preset frequency as the detection frequency corresponding to the detection frequency signal;
When the physical information is energy, the preset condition is whether the energy of the reflected light signal is 0; when the physical information is the intensity of the reflected light signal, the preset condition is whether the intensity of the reflected light signal is smaller than a preset threshold value;
(4) And (3) when the physical information of the reflected light signal does not meet the preset condition, repeating the steps (1) - (2) until the physical information of the reflected light signal meets the preset condition, and taking the preset frequency as the detection frequency corresponding to the detection frequency signal.
4. An interface detection apparatus, characterized by comprising:
a signal generating unit for emitting a sine wave detection signal;
the light-emitting unit is connected with the signal generation unit and is used for emitting corresponding light signals according to the driving of the sine wave detection signals;
a photoelectric conversion unit for converting a reflected optical signal of the optical signal into a corresponding electrical signal;
a processor connected to the signal generating unit and the photoelectric conversion unit, respectively, the processor transmitting a detection frequency signal to the signal generating unit so that the signal generating unit generates a sine wave detection signal corresponding to the detection frequency signal, and the steps for performing the interface detection method according to any one of claims 1-2.
5. The apparatus of claim 4, wherein the apparatus further comprises:
and the voltage-current conversion unit is respectively connected with the signal generation unit and the light-emitting unit and is used for converting the sine wave detection signal into a current detection signal and then sending the current detection signal to the light-emitting unit.
6. The apparatus of claim 4, wherein the photoelectric conversion unit comprises a photodiode and a current-voltage conversion unit.
7. A computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the interface detection method of any of claims 1-2 when executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the interface detection method according to any of claims 1-2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011236558.1A CN112485226B (en) | 2020-11-06 | 2020-11-06 | Interface detection method, device, equipment and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011236558.1A CN112485226B (en) | 2020-11-06 | 2020-11-06 | Interface detection method, device, equipment and computer equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112485226A CN112485226A (en) | 2021-03-12 |
| CN112485226B true CN112485226B (en) | 2024-03-26 |
Family
ID=74929208
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011236558.1A Active CN112485226B (en) | 2020-11-06 | 2020-11-06 | Interface detection method, device, equipment and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112485226B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6379017A (en) * | 1986-09-24 | 1988-04-09 | Jgc Corp | Detection of interface in tank |
| JPH04301546A (en) * | 1991-03-28 | 1992-10-26 | Shimadzu Corp | Reflectance measuring apparatus |
| JPH05196566A (en) * | 1992-01-22 | 1993-08-06 | Tafuto:Kk | Fluid detection device and gas-liquid boundary detection device |
| JP2007198794A (en) * | 2006-01-24 | 2007-08-09 | Aloka Co Ltd | Interface detecting device and method, and volume measuring instrument and method |
| CN102135448A (en) * | 2010-12-31 | 2011-07-27 | 天津大学 | Surface reflectance spectrum measuring method capable of preventing ambient light interference |
| CN110988465A (en) * | 2019-12-05 | 2020-04-10 | 深圳市兆驰数码科技股份有限公司 | Frequency detection method and device for specific frequency sine wave signal and computer equipment |
-
2020
- 2020-11-06 CN CN202011236558.1A patent/CN112485226B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6379017A (en) * | 1986-09-24 | 1988-04-09 | Jgc Corp | Detection of interface in tank |
| JPH04301546A (en) * | 1991-03-28 | 1992-10-26 | Shimadzu Corp | Reflectance measuring apparatus |
| JPH05196566A (en) * | 1992-01-22 | 1993-08-06 | Tafuto:Kk | Fluid detection device and gas-liquid boundary detection device |
| JP2007198794A (en) * | 2006-01-24 | 2007-08-09 | Aloka Co Ltd | Interface detecting device and method, and volume measuring instrument and method |
| CN102135448A (en) * | 2010-12-31 | 2011-07-27 | 天津大学 | Surface reflectance spectrum measuring method capable of preventing ambient light interference |
| CN110988465A (en) * | 2019-12-05 | 2020-04-10 | 深圳市兆驰数码科技股份有限公司 | Frequency detection method and device for specific frequency sine wave signal and computer equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112485226A (en) | 2021-03-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106249104B (en) | A kind of detection device and method of communication cable shielding layer status monitoring | |
| WO2018176288A1 (en) | Laser radar and time measurement method based on laser radar | |
| US10256761B2 (en) | Monitoring health of electrical equipment | |
| US20220128658A1 (en) | Waveform reconstruction in a time-of-flight sensor | |
| JP2019501553A (en) | Cloud-based system and method for managing test configurations of cable test devices | |
| US10038401B2 (en) | Systems and methods for fault detection | |
| CN114488184B (en) | A laser radar control method, device, electronic device and storage medium | |
| WO2019214231A1 (en) | Faulty arc detection method, device and system | |
| US10075232B1 (en) | Detecting fiber optic breaks using autonomous vehicles | |
| CN112485226B (en) | Interface detection method, device, equipment and computer equipment | |
| CN112789507B (en) | Apparatus and method for testing device under test | |
| CN109244802A (en) | Mode locking operation interval detection system and its working method | |
| CN110764075B (en) | Laser radar receiving chip test system | |
| CN112368541A (en) | Time domain optical metrology and inspection of semiconductor devices | |
| CN113014313B (en) | Optical time domain reflectometer | |
| CN204705693U (en) | Small-sized Aviation cable fault detect orientator | |
| US10180452B2 (en) | Doorbell camera test tool | |
| US20250330121A1 (en) | Method and Apparatus for Detection of Faulty Connections of Photovoltaic Modules | |
| Zhang et al. | Experimental performance evaluation of bluetooth5 for in-building networks | |
| CN117433632A (en) | Detection method, device and system of photoelectric detector | |
| CN110146795A (en) | A device for automatic detection of insulator flashover fault | |
| CN207457106U (en) | Spectrometer detecting and controlling system and Handheld spectrometer | |
| CN116298827A (en) | Test method of infrared emission chip | |
| CN115776334B (en) | A content display device and content display method for an optical module electronic tag | |
| Wojtkowski et al. | Data acquisition system with GPRS transmission for monitoring temperature of RF Power Amplifiers |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |